executables.bats 308 B

1234567891011121314
  1. #!/usr/bin/env -S bats
  2. @test "find non executables in bin directory" {
  3. run find bin -not -executable
  4. [ "$status" -eq 0 ]
  5. [ -z "$output" ]
  6. }
  7. @test "run jenkins-nix-version" {
  8. run bin/executable_jenkins-nix-version hello
  9. [ "$status" -eq 0 ]
  10. [[ "$output" == */nix/store/*-hello-* ]]
  11. }