mirror of
https://github.com/ilyakooo0/prybar.git
synced 2024-11-20 19:38:05 +03:00
e0d9a52986
* updated nix channel to match nixpkgs-replit's 22.11 channel * Fixed go build import version * prybar-nodejs doesn't really need node * update node version * updates * updates * fixed julia * changed to channel 22.11 * update * revert * downgraded ocaml * add libxcrypt for pythons * rewrite shebangs to allow running tests in nix dev shell * remove expect replacement * fixed shebang issues and simplified * revert shebang line change * added julia.pc file * changed rev
34 lines
609 B
Bash
Executable File
34 lines
609 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
stty cols 80
|
|
stty rows 20
|
|
|
|
tests=$(find ./tests ! -name '*.go' -printf '%P\n')
|
|
|
|
for t in ${tests}; do
|
|
if [[ $t != *.exp ]]; then
|
|
echo "$t:"
|
|
|
|
if [[ $t == 'nodejs' && $DISABLE_GO_TESTS != 1 ]]; then
|
|
|
|
go test ./tests/nodejs
|
|
fi
|
|
|
|
continue
|
|
fi
|
|
|
|
name=$(echo -n $t | sed -s 's/.*\/\(.*\).exp/\1/' | sed -s 's/_/ /g')
|
|
|
|
echo -n "... $name"
|
|
|
|
test_out=$(timeout 15 expect "./tests/$t" 2>&1)
|
|
if [[ $? != 0 ]]; then
|
|
echo -e "\n========== \"$t\" failed =========="
|
|
echo $test_out
|
|
exit 1;
|
|
fi
|
|
|
|
echo -ne '\r'
|
|
echo -e " \e[32m✓\e[0m $name"
|
|
done
|