]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Always print reason when skipping test.
authorMark Wielaard <mjw@redhat.com>
Sat, 30 May 2015 21:00:40 +0000 (23:00 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 5 Jun 2015 12:41:20 +0000 (14:41 +0200)
Make sure the reason a test is SKIPPED is added to the test-suite.log.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/backtrace-subr.sh
tests/run-addr2line-i-demangle-test.sh
tests/run-backtrace-demangle.sh
tests/run-backtrace-native-biarch.sh
tests/run-backtrace-native-core-biarch.sh
tests/run-stack-demangled-test.sh
tests/test-subr.sh

index 94ee1f7d36382cfbe2411d22b674abc0fa6d7531..19878ac464edae754985606eedc61a58897467ab 100644 (file)
@@ -1,3 +1,16 @@
+2015-05-30  Mark Wielaard  <mjw@redhat.com>
+
+       * backtrace-subr.sh (check_native_core): Notice core file couldn't be
+       generated before skipping.
+       * run-addr2line-i-demangle-test.sh: Notice demangler is unsupported
+       before skipping.
+       * run-backtrace-demangle.sh: Likewise.
+       * run-stack-demangled-test.sh: Likewise.
+       * run-backtrace-native-biarch.sh: Notice biarch testing is disabled
+       before skipping.
+       * run-backtrace-native-core-biarch.sh: Likewise.
+       * test-subr.sh (testfiles): Notice how bunzip2 fails before skipping.
+
 2015-05-20  Mark Wielaard  <mjw@redhat.com>
 
        * run-addr2line-i-test.sh: Add pretty test.
index f04721cfffc31a12dd7bc8648d5631a02603a71f..790b4f4459bff523093ad9d99297e616593fcbea 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013 Red Hat, Inc.
+# Copyright (C) 2013, 2015 Red Hat, Inc.
 # This file is part of elfutils.
 #
 # This file is free software; you can redistribute it and/or modify
@@ -135,7 +135,7 @@ check_native_core()
   if [ -f core ]; then
     mv core "$core"
   fi
-  if [ ! -f "$core" ]; then exit 77; fi
+  if [ ! -f "$core" ]; then echo "No $core file generated"; exit 77; fi
 
   if [ "x$SAVED_VALGRIND_CMD" != "x" ]; then
     VALGRIND_CMD="$SAVED_VALGRIND_CMD"
index e709acfaf8aa9afd79e074f5843739bfab234fd9..1af85622e6a38f32e2ea417f7f454723f47d2b1e 100755 (executable)
@@ -16,6 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 if test -n "$ELFUTILS_DISABLE_DEMANGLE"; then
+  echo "demangler unsupported"
   exit 77
 fi
 
index 6e18e77f9655a1c5955ac87d12c89be794094b3a..71a7351816b5e21291a2a09c62ebba3cccd68004 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/bash
-# Copyright (C) 2014 Red Hat, Inc.
+# Copyright (C) 2014, 2015 Red Hat, Inc.
 # This file is part of elfutils.
 #
 # This file is free software; you can redistribute it and/or modify
@@ -16,6 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 if test -n "$ELFUTILS_DISABLE_DEMANGLE"; then
+  echo "demangler unsupported"
   exit 77
 fi
 
index 3a407c896241ebd9d339ee0a226067daebb00ff1..2afe38a5e8368052485b019fb6c9eee72778959c 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
+# Copyright (C) 2013, 2015 Red Hat, Inc.
 # This file is part of elfutils.
 #
 # This file is free software; you can redistribute it and/or modify
@@ -16,6 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 if test -n "$ELFUTILS_DISABLE_BIARCH"; then
+  echo "biarch testing disabled"
   exit 77
 fi
 
index fbd80256ef27e7b8f530239adf3995453a226b30..02552ce9a58a9c05007ca9c7877d2001cf7e358c 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
+# Copyright (C) 2013, 2015 Red Hat, Inc.
 # This file is part of elfutils.
 #
 # This file is free software; you can redistribute it and/or modify
@@ -16,6 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 if test -n "$ELFUTILS_DISABLE_BIARCH"; then
+  echo "biarch testing disabled"
   exit 77
 fi
 
index 0d9f8f3ed6b218ccc2d88c988f7cc7e3ce45560c..98f8ff8efc1979ffa338391f4953203455e11ba3 100755 (executable)
@@ -16,6 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 if test -n "$ELFUTILS_DISABLE_DEMANGLE"; then
+  echo "demangler unsupported"
   exit 77
 fi
 
index 5e796b4df02e61da99a03e5d8cafe3e815a4392e..f397aed1a64776599d3c9c5ebc22ba36ba4a9fe9 100644 (file)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2005-2014 Red Hat, Inc.
+# Copyright (C) 2005-2015 Red Hat, Inc.
 # This file is part of elfutils.
 #
 # This file is free software; you can redistribute it and/or modify
@@ -47,7 +47,7 @@ tempfiles()
 testfiles()
 {
   for file; do
-    bunzip2 -c ${abs_srcdir}/${file}.bz2 > ${file} 2>/dev/null || exit 77
+    bunzip2 -c ${abs_srcdir}/${file}.bz2 > ${file} || exit 77
     remove_files="$remove_files $file"
   done
 }