IogaMaster / warden

A self hostable nixpkgs review bot
MIT License
13 stars 1 forks source link

passthru.tests #1

Open IogaMaster opened 4 months ago

IogaMaster commented 4 months ago

https://github.com/NixOS/nixpkgs/pull/291395?notification_referrer_id=NT_kwDOBADZMbM5NjA1MzIxNjcyOjY3MTY0NDY1#issuecomment-1963064781

IogaMaster commented 4 months ago

@AndersonTorres what nix command should I use to run these tests? nix build --rebuild <nixpkgs-path>#<package-name>.passthru.tests

AndersonTorres commented 4 months ago

In that particular case I use something like

nix build --rebuild <nixpkgs-path>#live555.tests.vlc

or

nix build --rebuild <nixpkgs-path>#live555.passthru.tests.vlc

Without the .vlc part, Nix complains with

error: flake output attribute 'legacyPackages.x86_64-linux.live555.passthru.tests' is not a derivation or path

IogaMaster commented 4 months ago

It seems running nix run .#<pkg>.passthru.tests works But not for live555

IogaMaster commented 2 months ago

Update:

We will use nix search:

image

Then get after the passthru.tests strings to get attrs

nix search .#<pkg>.passthru.tests | sed 's/^.*passthru.//' | cut -f 1 -d " "