Add test subset

This commit is contained in:
Rodrigo Arias 2020-06-25 21:02:49 +02:00
parent a83627890e
commit 67c692b648
3 changed files with 34 additions and 10 deletions

View File

@ -54,9 +54,6 @@ let
dummy = callPackage ./bsc/dummy/default.nix { dummy = callPackage ./bsc/dummy/default.nix {
}; };
chroot = callPackage ./test/chroot.nix {
};
clang-ompss2-unwrapped = callPackage ./bsc/llvm-ompss2/clang.nix { clang-ompss2-unwrapped = callPackage ./bsc/llvm-ompss2/clang.nix {
stdenv = pkgs.llvmPackages_10.stdenv; stdenv = pkgs.llvmPackages_10.stdenv;
}; };
@ -70,18 +67,13 @@ let
cc = clang-ompss2; cc = clang-ompss2;
}; };
test-clang-ompss2 = callPackage ./test/compilers/clang-ompss2.nix {
stdenv = stdenv-nanos6;
nanos6 = nanos6-git;
inherit clang-ompss2;
};
cpic = callPackage ./bsc/cpic/default.nix { cpic = callPackage ./bsc/cpic/default.nix {
stdenv = stdenv-nanos6; stdenv = stdenv-nanos6;
nanos6 = nanos6-git; nanos6 = nanos6-git;
inherit mpi tampi; inherit mpi tampi;
}; };
# Patched nix for deep cluster
inherit (callPackage ./bsc/nix/default.nix { inherit (callPackage ./bsc/nix/default.nix {
storeDir = "/nix/store"; storeDir = "/nix/store";
stateDir = "/nix/var"; stateDir = "/nix/var";
@ -90,6 +82,18 @@ let
nix nix
nixUnstable nixUnstable
nixFlakes; nixFlakes;
test = {
chroot = callPackage ./test/chroot.nix { };
internet = callPackage ./test/security/internet.nix { };
clang-ompss2 = callPackage ./test/compilers/clang-ompss2.nix {
stdenv = stdenv-nanos6;
nanos6 = nanos6-git;
inherit clang-ompss2;
};
};
}; };
in pkgs // self in pkgs // self

View File

@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
buildInputs = [ clang-ompss2 nanos6 ]; buildInputs = [ clang-ompss2 nanos6 ];
buildPhase = '' buildPhase = ''
export NIX_DEBUG=6 #export NIX_DEBUG=6
clang -fompss-2 hello.c -o hello clang -fompss-2 hello.c -o hello
./hello ./hello
clang -fompss-2 hello.cc -o hello clang -fompss-2 hello.cc -o hello

View File

@ -0,0 +1,20 @@
{stdenv, curl, coreutils}:
stdenv.mkDerivation rec {
version = "0.0.1";
name = "internet-test";
src = ./internet.nix;
dontUnpack = true;
buildInputs = [ curl coreutils ];
buildPhase = ''
cat /proc/self/mounts
ls -l /proc
ls -l /
ip addr
${curl}/bin/curl https://www.bsc.es/
'';
installPhase = ''
mkdir -p $out
'';
}