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 89
89
done
90
90
done
91
91
92
- # Test building all test targets and with runner
92
+ # Test building all targets and with runner
93
93
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}
96
98
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}
101
100
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
103
108
done
104
109
done
105
110
fi
106
-
107
111
popd
108
112
109
113
You can’t perform that action at this time.
0 commit comments