OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
tools
/
lib
/
lockdep
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:16 AM
rwxr-xr-x
📄
Makefile
4.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
run_tests.sh
753 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
Editing: run_tests.sh
Close
#! /bin/bash # SPDX-License-Identifier: GPL-2.0 make &> /dev/null for i in `ls tests/*.c`; do testname=$(basename "$i" .c) gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null echo -ne "$testname... " if [ $(timeout 1 ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then echo "PASSED!" else echo "FAILED!" fi if [ -f "tests/$testname" ]; then rm tests/$testname fi done for i in `ls tests/*.c`; do testname=$(basename "$i" .c) gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null echo -ne "(PRELOAD) $testname... " if [ $(timeout 1 ./lockdep ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then echo "PASSED!" else echo "FAILED!" fi if [ -f "tests/$testname" ]; then rm tests/$testname fi done