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 ef4d4db
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ jobs:
needs: [ build-rust ]
runs-on: ubuntu-22.04

strategy:
matrix:
features:
- ""
- "sockets"
# strategy:
# matrix:
# features:
# - ""
# - "sockets"

steps:
- uses: actions/checkout@v3
Expand Down
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 ef4d4db

Please sign in to comment.