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