Add test subset
This commit is contained in:
parent
a83627890e
commit
67c692b648
22
default.nix
22
default.nix
@ -54,9 +54,6 @@ let
|
||||
dummy = callPackage ./bsc/dummy/default.nix {
|
||||
};
|
||||
|
||||
chroot = callPackage ./test/chroot.nix {
|
||||
};
|
||||
|
||||
clang-ompss2-unwrapped = callPackage ./bsc/llvm-ompss2/clang.nix {
|
||||
stdenv = pkgs.llvmPackages_10.stdenv;
|
||||
};
|
||||
@ -70,18 +67,13 @@ let
|
||||
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 {
|
||||
stdenv = stdenv-nanos6;
|
||||
nanos6 = nanos6-git;
|
||||
inherit mpi tampi;
|
||||
};
|
||||
|
||||
# Patched nix for deep cluster
|
||||
inherit (callPackage ./bsc/nix/default.nix {
|
||||
storeDir = "/nix/store";
|
||||
stateDir = "/nix/var";
|
||||
@ -90,6 +82,18 @@ let
|
||||
nix
|
||||
nixUnstable
|
||||
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
|
||||
|
@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ clang-ompss2 nanos6 ];
|
||||
|
||||
buildPhase = ''
|
||||
export NIX_DEBUG=6
|
||||
#export NIX_DEBUG=6
|
||||
clang -fompss-2 hello.c -o hello
|
||||
./hello
|
||||
clang -fompss-2 hello.cc -o hello
|
||||
|
20
test/security/internet.nix
Normal file
20
test/security/internet.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user