diff options
author | Nicholas Sielicki <git@opensource.nslick.com> | 2022-11-05 19:42:05 -0500 |
---|---|---|
committer | Nicholas Sielicki <git@opensource.nslick.com> | 2022-11-05 20:12:13 -0500 |
commit | dba57a03626c9d33ad423de73afddadfcb742549 (patch) | |
tree | 929e1cc645ace72c20561b10317ab0079115338b /pkgs/tools/misc/bat-extras | |
parent | 76df7b5d94ed67710389953d92e1fa7ddeccff43 (diff) |
pkgs/tools/misc/bat-extras: fix tests
Add bash/fish/zsh to checkInputs
Diffstat (limited to 'pkgs/tools/misc/bat-extras')
-rw-r--r-- | pkgs/tools/misc/bat-extras/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/tools/misc/bat-extras/default.nix b/pkgs/tools/misc/bat-extras/default.nix index c586e514a7172..d076cd1026f1c 100644 --- a/pkgs/tools/misc/bat-extras/default.nix +++ b/pkgs/tools/misc/bat-extras/default.nix @@ -3,6 +3,10 @@ , coreutils , getconf , less +# tests +, bash +, zsh +, fish # batgrep , ripgrep # prettybat @@ -51,7 +55,7 @@ let # Run the library tests as they don't have external dependencies doCheck = true; - checkInputs = lib.optionals stdenv.isDarwin [ getconf ]; + checkInputs = [ bash fish zsh ] ++ (lib.optionals stdenv.isDarwin [ getconf ]); checkPhase = '' runHook preCheck # test list repeats suites. Unique them @@ -59,12 +63,12 @@ let while read -r action arg _; do [[ "$action" == "test_suite" && "$arg" == lib_* ]] && test_suites+=(["$arg"]=1) - done <<<"$(bash ./test.sh --compiled --list --porcelain)" + done <<<"$(./test.sh --compiled --list --porcelain)" (( ''${#test_suites[@]} != 0 )) || { echo "Couldn't find any library test suites" exit 1 } - bash ./test.sh --compiled $(printf -- "--suite %q\n" "''${!test_suites[@]}") + ./test.sh --compiled $(printf -- "--suite %q\n" "''${!test_suites[@]}") runHook postCheck ''; @@ -108,7 +112,7 @@ let dontBuild = true; # we've already built doCheck = true; - checkInputs = lib.optionals stdenv.isDarwin [ getconf ]; + checkInputs = [ bash fish zsh ] ++ (lib.optionals stdenv.isDarwin [ getconf ]); checkPhase = '' runHook preCheck bash ./test.sh --compiled --suite ${name} |