Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lablans committed Oct 6, 2023
1 parent 4db9787 commit d44ca72
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions dev/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash -e

SD=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

cd $SD

source beamdev noop

#function start() {
# trap "echo; echo; clean" EXIT
# start_bg
#}

#function test() {
# for test in test_*.sh; do
# echo "======="
# echo "=> $(basename $test) ..."
# source $test
# done
#
# echo -e " ${COL_GREEN}All tests have completed successfully.${COL_NONE}"
#}

case "$1" in
noci)
test
shift
cargo test $@
;;
ci)
# start
# test
shift
for testbin in $SD/../testbinaries/*; do
chmod +x $testbin
$testbin
done
;;
*)
echo "Usage: $0 noci|ci"
exit 1
;;
esac

0 comments on commit d44ca72

Please sign in to comment.