Add a hwloc test

This commit is contained in:
2020-12-04 11:18:44 +01:00
parent d70316a25a
commit 90d7c83261
3 changed files with 64 additions and 0 deletions

20
test/bugs/hwloc.nix Normal file
View File

@@ -0,0 +1,20 @@
{
stdenv
, hwloc
, strace
}:
stdenv.mkDerivation {
name = "hwloc-test";
src = ./.;
buildInputs = [ hwloc strace ];
buildPhase = ''
ls -l /sys
gcc -lhwloc hwloc.c -o hwloc
strace ./hwloc
'';
}