File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 8989 done
9090done
9191
92- # Test building all test targets and with runner
92+ # Test building all targets and with runner
9393if [[ " $( 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}
9698do
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
104109done
105110fi
106-
107111popd
108112
109113
You can’t perform that action at this time.
0 commit comments