From 4b4fe9bb3d25ce1e2f149cbbf47fdb651d236ce2 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 7 Oct 2025 17:32:01 +0200 Subject: [PATCH] Add hwloc test with sys-devices feature --- overlay.nix | 2 +- test/bugs/hwloc.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/overlay.nix b/overlay.nix index 6d2af14b..d54ea481 100644 --- a/overlay.nix +++ b/overlay.nix @@ -62,7 +62,7 @@ let }; tests = rec { - #hwloc = callPackage ./test/bugs/hwloc.nix { }; # Broken, no /sys + hwloc = callPackage ./test/bugs/hwloc.nix { }; #sigsegv = callPackage ./test/reproducers/sigsegv.nix { }; hello-c = callPackage ./test/compilers/hello-c.nix { }; hello-cpp = callPackage ./test/compilers/hello-cpp.nix { }; diff --git a/test/bugs/hwloc.nix b/test/bugs/hwloc.nix index 2546d3d6..8dd73d37 100644 --- a/test/bugs/hwloc.nix +++ b/test/bugs/hwloc.nix @@ -6,6 +6,7 @@ stdenv.mkDerivation { name = "hwloc-test"; + requiredSystemFeatures = [ "sys-devices" ]; src = ./.; @@ -14,7 +15,7 @@ stdenv.mkDerivation { buildPhase = '' ls -l /sys gcc -lhwloc hwloc.c -o hwloc - strace ./hwloc + strace ./hwloc > $out ''; }