Add -threads option to runtest.sh

This commit is contained in:
Tom Stellard 2018-06-07 16:20:52 +00:00
parent 17f7a4dd8e
commit ce2fad80e1
3 changed files with 32 additions and 4 deletions

View File

@ -8,7 +8,7 @@
Name: libomp
Version: 6.0.1
Release: 0.1.rc%{rc_ver}%{?dist}
Release: 0.2.rc%{rc_ver}%{?dist}
Summary: OpenMP runtime for clang
License: NCSA
@ -132,6 +132,9 @@ install -m 0755 %{SOURCE1} %{buildroot}%{_datadir}/libomp
%{_datadir}/libomp
%changelog
* Thu Jun 07 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-0.2.rc1
- Add -threads option to runtest.sh
* Fri May 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
- 6.0.1-rc1 Release

View File

@ -1,8 +1,33 @@
#!/bin/bash
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
set -x
lit -v --config-prefix clang /usr/share/libomp/src/runtime/test
lit $threads_arg -v --config-prefix clang /usr/share/libomp/src/runtime/test
fail=$?
lit -v --config-prefix gcc /usr/share/libomp/src/runtime/test
lit $threads_arg -v --config-prefix gcc /usr/share/libomp/src/runtime/test
exit $fail || $?

View File

@ -8,4 +8,4 @@
tests:
- libomp-regression-tests:
dir: ./
run: /usr/share/libomp/runtest.sh
run: /usr/share/libomp/runtest.sh -threads 8