2 # SPDX-License-Identifier: GPL-2.0
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
15 if [ -f "tests/$testname" ]; then
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
29 if [ -f "tests/$testname" ]; then