Skip to content

Commit

Permalink
run in a loop, don't stop on error
Browse files Browse the repository at this point in the history
  • Loading branch information
mpollmeier committed Jul 27, 2023
1 parent 8742768 commit 704c7b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions testDistro.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e #stop on error
# set -e #stop on error
# set -x #verbose on

readonly SCRIPT_ABS_PATH=$(readlink -f "$0")
Expand All @@ -8,8 +8,14 @@ readonly REPO_ROOT=$SCRIPT_ABS_DIR

echo "staging joern"
pushd $REPO_ROOT
sbt -Dsbt.log.noformat=true clean joerncli/stage querydb/createDistribution
tests/frontends-tests.sh
sbt -Dsbt.log.noformat=true clean joerncli/stage

# run test 10 times - sometimes fails...
for i in {0..9}; do
echo "XX0 run $i start"
tests/frontends-tests.sh
echo "XX0 run $i end"
done
popd

echo "success. go analyse some code"

0 comments on commit 704c7b8

Please sign in to comment.