You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
387 B
Bash
34 lines
387 B
Bash
![]()
3 years ago
|
#!/bin/bash
|
||
|
|
||
|
#
|
||
|
# trying to run a maximum of ugly code
|
||
|
#
|
||
|
|
||
|
for trial in $(./t -l)
|
||
|
do
|
||
|
|
||
|
printf "============ %-10s ============\n" $trial
|
||
|
|
||
|
make t
|
||
|
error=$?
|
||
|
if [ 0 -ne $error ]
|
||
|
then
|
||
|
echo "make error is " $error
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
|
||
|
./t -v $trial
|
||
|
error=$?
|
||
|
if [ 0 -ne $error ]
|
||
|
then
|
||
|
echo "run error is " $error
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
printf "\t=== return code %d\n" $error
|
||
|
echo
|
||
|
sleep 10
|
||
|
|
||
|
done
|