Blame SOURCES/runtest.sh

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