Skip to content

Commit c309322

Browse files
committed
test default runs
1 parent ee2a8b6 commit c309322

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

ci/run_tests.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,25 @@ do
8989
done
9090
done
9191

92-
# Test building all test targets and with runner
92+
# Test building all targets and with runner
9393
if [[ "$(which time)" ]]; then
94-
cmdrun=( "test" "test --runner time" )
95-
for j in {0..1}
94+
targets=( "run" "run --example" "test" )
95+
names=( "run" "example" "test" )
96+
cmdrun=( " " " --runner time" )
97+
for j in {0..2}
9698
do
97-
rm -f *.txt
98-
"$fpm" ${cmdrun[$j]}
99-
# all tests should have run
100-
for k in ${cases[@]}
99+
for i in {0..1}
101100
do
102-
test -e test$k.txt
101+
rm -f *.txt
102+
"$fpm" ${targets[$j]}${cmdrun[$i]}
103+
# all targets should have run
104+
for k in ${cases[@]}
105+
do
106+
test -e ${names[$j]}$k.txt
107+
done
103108
done
104109
done
105110
fi
106-
107111
popd
108112

109113

0 commit comments

Comments
 (0)