c3d17108bf
Change-Id: Ib817152deaa421bd25ae8c703edbf0cf2facd6fd Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99782 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
29 lines
529 B
Bash
Executable file
29 lines
529 B
Bash
Executable file
#!/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
|
|
|
|
if [ $1 = "mobile" ];
|
|
then
|
|
command="make check-mobile spec="$2
|
|
elif [ $1 = "desktop" ]; then
|
|
command="make check-desktop spec="$2
|
|
else
|
|
command="make check-multi spec="$2
|
|
fi
|
|
|
|
i=0
|
|
while $command
|
|
do
|
|
if [ $i -ge $loop_count ]
|
|
then
|
|
break
|
|
fi
|
|
i=$((i+1))
|
|
done
|