anchor.diff:  , coreutils
   , getconf
   , less
  +# tests
  +, bash
  +, zsh
  +, fish
   # batgrep
   , ripgrep
   # prettybat
  
positive.code:       while read -r action arg _; do
          [[ "$action" == "test_suite" && "$arg" == lib_* ]] &&
          test_suites+=(["$arg"]=1)
        done <<<"$(bash ./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[@]}")
        runHook postCheck
      '';
  
  
negative.code:       dontBuild = true; # we've already built
  
        doCheck = true;
        checkInputs = [ bash fish zsh ] ++ (lib.optionals stdenv.isDarwin [ getconf ]);
        checkPhase = ''
          runHook preCheck
          bash ./test.sh --compiled --suite ${name}
  