Add test subset
This commit is contained in:
@@ -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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user