diff --git a/run_all_tests.sh b/run_all_tests.sh new file mode 100755 index 0000000..55a76a6 --- /dev/null +++ b/run_all_tests.sh @@ -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