NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.15k stars 1.47k forks source link

Cannot make tests #5794

Open nmattia opened 2 years ago

nmattia commented 2 years ago

Describe the bug

I cannot run functional tests as per the instructions.

Steps To Reproduce

[nix-shell:~/nix]$ make tests
make: Nothing to be done for 'tests'.

[nix-shell:~/nix]$ make nix_tests
make: *** No rule to make target 'nix_tests'.  Stop.

[nix-shell:~/nix]$ make tests/lang/eval-okay-fromTOML.exp
make: Nothing to be done for 'tests/lang/eval-okay-fromTOML.exp'.

[nix-shell:~/nix]$ make tests/lang/eval-okay-fromTOML.nix
make: Nothing to be done for 'tests/lang/eval-okay-fromTOML.nix'.

Additional context

The build (with make -j N) went fine.

nmattia commented 2 years ago

This works:

$ make tests/lang.sh.test
thufschmitt commented 2 years ago

The doc is still quite… sparse indeed.

[> nix-shell:~/nix]$ make tests

make: Nothing to be done for 'tests'.

[nix-shell:~/nix]$ make nix_tests make: *** No rule to make target 'nix_tests'. Stop.

That one is actually specified in the doc :wink: . The targets for running the tests are check (for the few unit tests) and installcheck for the functional tests

[nix-shell:~/nix]$ make tests/lang/eval-okay-fromTOML.exp make: Nothing to be done for 'tests/lang/eval-okay-fromTOML.exp'.

[nix-shell:~/nix]$ make tests/lang/eval-okay-fromTOML.nix make: Nothing to be done for 'tests/lang/eval-okay-fromTOML.nix'.

Yes, the test targets are of the form {stuff}.test where stuff is an element of the nix_tests list defined in tests/local.mk. Definitely needs some more docs

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info