2018-03-28 06:01:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-06-04 22:14:36 +00:00
|
|
|
usage() {
|
|
|
|
echo "usage: `basename $0` [OPTIONS]"
|
|
|
|
echo " --threads NUM The number of threads to use for running tests."
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
threads_arg=''
|
|
|
|
|
|
|
|
while [ $# -gt 0 ]; do
|
|
|
|
case $1 in
|
|
|
|
--threads)
|
|
|
|
shift
|
|
|
|
threads_arg="--threads $1"
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
echo "unknown option: $1"
|
|
|
|
echo ""
|
|
|
|
usage
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
|
2018-03-28 06:01:07 +00:00
|
|
|
set -x
|
|
|
|
|
2018-06-04 22:14:36 +00:00
|
|
|
lit $threads_arg -v --config-prefix clang /usr/share/libomp/src/runtime/test
|
2018-03-28 06:01:07 +00:00
|
|
|
fail=$?
|
2018-06-04 22:14:36 +00:00
|
|
|
lit $threads_arg -v --config-prefix gcc /usr/share/libomp/src/runtime/test
|
2018-03-28 06:01:07 +00:00
|
|
|
exit $fail || $?
|