]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - tools/lib/lockdep/run_tests.sh
Input: wm97xx: add new AC97 bus support
[mirror_ubuntu-focal-kernel.git] / tools / lib / lockdep / run_tests.sh
1 #! /bin/bash
2
3 make &> /dev/null
4
5 for i in `ls tests/*.c`; do
6 testname=$(basename "$i" .c)
7 gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null
8 echo -ne "$testname... "
9 if [ $(timeout 1 ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then
10 echo "PASSED!"
11 else
12 echo "FAILED!"
13 fi
14 if [ -f "tests/$testname" ]; then
15 rm tests/$testname
16 fi
17 done
18
19 for i in `ls tests/*.c`; do
20 testname=$(basename "$i" .c)
21 gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null
22 echo -ne "(PRELOAD) $testname... "
23 if [ $(timeout 1 ./lockdep ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then
24 echo "PASSED!"
25 else
26 echo "FAILED!"
27 fi
28 if [ -f "tests/$testname" ]; then
29 rm tests/$testname
30 fi
31 done