First try for run_all_tests

This commit is contained in:
Théophile Bastian 2018-03-26 16:10:02 +02:00
parent e0689a967b
commit b85249eee2
1 changed files with 19 additions and 0 deletions

19
run_all_tests.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
base_dir="$(dirname "$(readlink -f "$0")")"
cd "$base_dir"
source ./env
eh_frame_check="$base_dir/eh_frame_check/testing/eh_frame_check.py"
glibc_base="$base_dir/glibc/build"
tests=\
$(find "$glibc_base" -executable -name 'test-*' -or -executable -name 'tst-*')
for tst in $tests; do
gdb -q -x "$eh_frame_check" \
-args $glibc_base/elf/ld-linux-x86-64.so.2 \
--library-path "$LIB_PATH" \
"$tst"
done