Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / tools / lib / lockdep / run_tests.sh
blob2e570a188f1675588a92096e4673807008ecdd38
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
4 make &> /dev/null
6 for i in `ls tests/*.c`; do
7 testname=$(basename "$i" .c)
8 gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null
9 echo -ne "$testname... "
10 if [ $(timeout 1 ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then
11 echo "PASSED!"
12 else
13 echo "FAILED!"
15 if [ -f "tests/$testname" ]; then
16 rm tests/$testname
18 done
20 for i in `ls tests/*.c`; do
21 testname=$(basename "$i" .c)
22 gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null
23 echo -ne "(PRELOAD) $testname... "
24 if [ $(timeout 1 ./lockdep ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then
25 echo "PASSED!"
26 else
27 echo "FAILED!"
29 if [ -f "tests/$testname" ]; then
30 rm tests/$testname
32 done