summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-26 17:31:54 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-26 17:31:54 +0200
commita133a74c8905c58721a2ae129c02c264bf6b3b09 (patch)
tree7e4d9f83318c331fbd161ca993082641b03eaedf /pkgs/test
parent454eefa63b6f8fbd68139affd46d086e0d869ee3 (diff)
downloadnixpkgs-a133a74c8905c58721a2ae129c02c264bf6b3b09.tar
nixpkgs-a133a74c8905c58721a2ae129c02c264bf6b3b09.tar.gz
nixpkgs-a133a74c8905c58721a2ae129c02c264bf6b3b09.tar.bz2
nixpkgs-a133a74c8905c58721a2ae129c02c264bf6b3b09.tar.lz
nixpkgs-a133a74c8905c58721a2ae129c02c264bf6b3b09.tar.xz
nixpkgs-a133a74c8905c58721a2ae129c02c264bf6b3b09.tar.zst
nixpkgs-a133a74c8905c58721a2ae129c02c264bf6b3b09.zip
Remove cruft
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/rpath/builder.sh79
-rw-r--r--pkgs/test/rpath/default.nix18
-rw-r--r--pkgs/test/rpath/src/hello1.c7
-rw-r--r--pkgs/test/rpath/src/hello2.cc7
-rw-r--r--pkgs/test/rpath/src/hello3.c9
-rw-r--r--pkgs/test/rpath/src/text.c4
-rw-r--r--pkgs/test/simple/default.nix17
7 files changed, 0 insertions, 141 deletions
diff --git a/pkgs/test/rpath/builder.sh b/pkgs/test/rpath/builder.sh
deleted file mode 100644
index 2bf62462146..00000000000
--- a/pkgs/test/rpath/builder.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-export NIX_DEBUG=1
-
-source $stdenv/setup
-
-mkdir $out
-mkdir $out/bin
-
-
-# 1: link statically against glibc.
-res=$out/bin/hello1
-gcc -static $src/hello1.c -o $res
-
-case $(ldd $res) in
-  *"not a dynamic executable"*)
-        ;;
-  *)
-        echo "$res not statically linked!"
-        exit 1
-esac
-
-
-# 2: link dynamically against glibc.
-res=$out/bin/hello2
-gcc $src/hello1.c -o $res
-
-case $(ldd $res) in
-  */store/*glibc*/lib/libc.so*/store/*glibc*/lib/ld-linux.so*)
-        ;;
-  *)
-        echo "$res not dynamically linked / bad rpath!"
-        exit 1
-        ;;
-esac
-
-
-# 3: link C++ dynamically against glibc / libstdc++.
-res=$out/bin/hello3
-g++ $src/hello2.cc -o $res
-
-case $(ldd $res) in
-  */store/*gcc*/lib/*libstdc++*/store/*glibc*/lib/libm*/store/*gcc*/lib/libgcc_s*/store/*glibc*/lib/libc.so*/store/*glibc*/lib/ld-linux.so*)
-        ;;
-  *)
-        echo "$res not dynamically linked / bad rpath!"
-        exit 1
-        ;;
-esac
-
-
-# 4: build dynamic library locally, link against it, copy it.
-res=$out/bin/hello4
-mkdir bla
-gcc -shared $src/text.c -o bla/libtext.so 
-gcc $src/hello3.c -o $res -L$(pwd)/bla -ltext
-mkdir $out/lib
-
-case $(ldd $res) in
-  */tmp*)
-        echo "$res depends on file in /tmp!"
-        exit 1
-        ;;
-esac
-
-cp bla/libtext.so $out/lib
-
-case $(ldd $res) in
-  */store/*glibc*/lib/libc.so*/store/*glibc*/lib/ld-linux.so*)
-        ;;
-  *)
-        echo "$res not dynamically linked / bad rpath!"
-        exit 1
-        ;;
-esac
-
-
-# Run the programs we just made.
-for i in $out/bin/*; do
-    $i
-done
diff --git a/pkgs/test/rpath/default.nix b/pkgs/test/rpath/default.nix
deleted file mode 100644
index f0903420c96..00000000000
--- a/pkgs/test/rpath/default.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-let {
-  system = "i686-linux";
-
-  stdenvs = (import ../../system/stdenvs.nix) {
-    inherit system;
-    allPackages = import ../../system/all-packages-generic.nix;
-  };
-
-  stdenv = stdenvs.stdenvLinuxBoot2;
-
-  test = stdenv.mkDerivation {
-    name = "rpath-test";
-    builder = ./builder.sh;
-    src = ./src;
-  };
-
-  body = test;
-}
diff --git a/pkgs/test/rpath/src/hello1.c b/pkgs/test/rpath/src/hello1.c
deleted file mode 100644
index c44d7c4a936..00000000000
--- a/pkgs/test/rpath/src/hello1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char * * argv)
-{
-    printf("Hello World!\n");
-    return 0;
-}
diff --git a/pkgs/test/rpath/src/hello2.cc b/pkgs/test/rpath/src/hello2.cc
deleted file mode 100644
index 0dc34766f5f..00000000000
--- a/pkgs/test/rpath/src/hello2.cc
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <iostream>
-
-int main(int argc, char * * argv)
-{
-    std::cout << "Hello World!\n";
-    return 0;
-}
diff --git a/pkgs/test/rpath/src/hello3.c b/pkgs/test/rpath/src/hello3.c
deleted file mode 100644
index 2b2308360da..00000000000
--- a/pkgs/test/rpath/src/hello3.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <stdio.h>
-
-char * text();
-
-int main(int argc, char * * argv)
-{
-    printf(text());
-    return 0;
-}
diff --git a/pkgs/test/rpath/src/text.c b/pkgs/test/rpath/src/text.c
deleted file mode 100644
index 3d85ca23f79..00000000000
--- a/pkgs/test/rpath/src/text.c
+++ /dev/null
@@ -1,4 +0,0 @@
-char * text()
-{
-    return "Hello World!\n";
-}
diff --git a/pkgs/test/simple/default.nix b/pkgs/test/simple/default.nix
deleted file mode 100644
index b7d9446bac7..00000000000
--- a/pkgs/test/simple/default.nix
+++ /dev/null
@@ -1,17 +0,0 @@
-let {
-  system = "i686-linux";
-
-  stdenvs = (import ../../system/stdenvs.nix) {
-    inherit system;
-    allPackages = import ../../system/all-packages-generic.nix;
-  };
-
-  stdenv = stdenvs.stdenvNix;
-
-  test = stdenv.mkDerivation {
-    name = "simple-test";
-    builder = ./builder.sh;
-  };
-
-  body = test;
-}