2020-04-10 06:08:50 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ "$#" -ne 2 ]; then
|
|
|
|
echo "Illegal number of parameters"
|
|
|
|
echo "Usage: ./run_iteratively <test_type> <test_suite>"
|
|
|
|
echo "e.g: ./run_iteratively mobile writer/shape_properties_spec.js"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
loop_count=10
|
2020-12-29 01:50:02 -06:00
|
|
|
command="make check-"$1" spec="$2
|
2020-04-10 06:08:50 -05:00
|
|
|
|
|
|
|
i=0
|
|
|
|
while $command
|
|
|
|
do
|
|
|
|
if [ $i -ge $loop_count ]
|
|
|
|
then
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
i=$((i+1))
|
|
|
|
done
|