prybar/run_tests
Toby Ho e0d9a52986
Updated nixpkgs to 22.11 channel (#102)
* 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
2022-12-09 17:17:50 -05:00

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