From 13148250ce0e27cc8145f6ddaa8339f08a5ef993 Mon Sep 17 00:00:00 2001 From: Serhei Makarov Date: Thu, 8 May 2025 18:30:49 -0400 Subject: [PATCH] Revert "tests/run-stack-live-test.sh: prototype 'live' eu-stack testing" This reverts commit deca125665a76cf024bd063ff4f477cb675ad41e. --- tests/Makefile.am | 3 +- tests/run-stack-live-test.sh | 64 ------------------------------------ 2 files changed, 1 insertion(+), 66 deletions(-) delete mode 100755 tests/run-stack-live-test.sh diff --git a/tests/Makefile.am b/tests/Makefile.am index ecd514c7..00ba754d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -191,8 +191,7 @@ TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \ run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \ run-backtrace-core-aarch64.sh run-backtrace-core-sparc.sh \ run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \ - run-stack-demangled-test.sh run-stack-live-test.sh \ - run-readelf-zx.sh run-readelf-zp.sh \ + run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \ run-readelf-arm-flags.sh \ run-readelf-addr.sh run-readelf-str.sh \ run-readelf-multi-noline.sh \ diff --git a/tests/run-stack-live-test.sh b/tests/run-stack-live-test.sh deleted file mode 100755 index 808421bb..00000000 --- a/tests/run-stack-live-test.sh +++ /dev/null @@ -1,64 +0,0 @@ -#! /bin/sh -# Copyright (C) 2025 Red Hat, Inc. -# This file is part of elfutils. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# elfutils is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -. $srcdir/test-subr.sh - -# Depending on whether we are running make check or make installcheck -# the actual binary name under test might be different. It is used in -# the error message, which we also try to match. -if test "$elfutils_testrun" = "installed"; then -STACKCMD=${bindir}/`program_transform stack` -else -STACKCMD=${abs_top_builddir}/src/stack -fi - -# TODO(REVIEW): Can we make the data-scrubbing generic enough -# (across multiple eu-stack/eu-stacktrace test cases) to move -# to test_subr.sh? -# -# TODO(REVIEW): Better shell-isms for comparing file and regex? -# \(\s\e\d\)\+\i\s\a\d\d\i\c\t\e\d\\t\o\b\a\ck\s\l\a\s\h\e\s -testrun_compare_fuzzy() -{ - outfile="${1##*/}.out" - testrun_out $outfile "$@" - sed -i 's/\(PID\|TID\|#[0-9]\+\)\( \+\)\(\(0x\)\?[0-9a-f]\+\)/\1\2nn/g' $outfile - diff -u $outfile - -} - -# TODO: Need to scrub more data (e.g. GLIBC_ bits), -# and use a program whose inner content we control: -sleep 10 & -PID=$! -testrun_compare_fuzzy ${abs_top_builddir}/src/stack -p $PID <