Skip to content

Commit 0cf3a9f

Browse files
committed
add test
1 parent 6cb9a74 commit 0cf3a9f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ci/run_tests.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,30 @@ do
8181
echo "$filename"
8282
"$fpm" ${cmdrun[$j]} $filename
8383
test -e $filename.txt
84+
# non-i-th tests should not have run
8485
for k in ${others[@]}
8586
do
8687
test ! -e ${targets[$k]}$k.txt
8788
done
8889
done
8990
done
91+
92+
# Test building all test targets
93+
cmdrun=( "test" "test --runner time" )
94+
for j in {0..1}
95+
do
96+
rm -f *.txt
97+
"$fpm" ${cmdrun[$j]}
98+
# all tests should have run
99+
for k in ${cases[@]}
100+
do
101+
test -e test$k.txt
102+
done
103+
done
104+
90105
popd
91106

107+
92108
pushd auto_discovery_off
93109
"$fpm" build
94110
"$fpm" run --target auto_discovery_off

0 commit comments

Comments
 (0)