Skip to content

Commit

Permalink
test default runs
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Jun 20, 2024
1 parent ee2a8b6 commit c309322
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,25 @@ do
done
done

# Test building all test targets and with runner
# Test building all targets and with runner
if [[ "$(which time)" ]]; then
cmdrun=( "test" "test --runner time" )
for j in {0..1}
targets=( "run" "run --example" "test" )
names=( "run" "example" "test" )
cmdrun=( " " " --runner time" )
for j in {0..2}
do
rm -f *.txt
"$fpm" ${cmdrun[$j]}
# all tests should have run
for k in ${cases[@]}
for i in {0..1}
do
test -e test$k.txt
rm -f *.txt
"$fpm" ${targets[$j]}${cmdrun[$i]}
# all targets should have run
for k in ${cases[@]}
do
test -e ${names[$j]}$k.txt
done
done
done
fi

popd


Expand Down

0 comments on commit c309322

Please sign in to comment.