From bca87ed8a200b8845e82b06fa94e69cd637dfea3 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 16 Jun 2020 00:25:47 +0200 Subject: [PATCH] tests: Use #/usr/bin/env bash in scripts that use bash Some systems don't have bash in /bin. Signed-off-by: Mark Wielaard --- config/ChangeLog | 4 +++ config/upload-release.sh | 2 +- tests/ChangeLog | 30 +++++++++++++++++++++++ tests/coverage.sh | 2 +- tests/run-ar.sh | 2 +- tests/run-backtrace-core-aarch64.sh | 2 +- tests/run-backtrace-core-i386.sh | 2 +- tests/run-backtrace-core-ppc.sh | 2 +- tests/run-backtrace-core-s390.sh | 2 +- tests/run-backtrace-core-s390x.sh | 2 +- tests/run-backtrace-core-sparc.sh | 2 +- tests/run-backtrace-core-x32.sh | 2 +- tests/run-backtrace-core-x86_64.sh | 2 +- tests/run-backtrace-data.sh | 2 +- tests/run-backtrace-demangle.sh | 2 +- tests/run-backtrace-dwarf.sh | 2 +- tests/run-backtrace-fp-core-aarch64.sh | 2 +- tests/run-backtrace-fp-core-i386.sh | 2 +- tests/run-backtrace-fp-core-ppc64le.sh | 2 +- tests/run-backtrace-fp-core-x86_64.sh | 2 +- tests/run-backtrace-native-biarch.sh | 2 +- tests/run-backtrace-native-core-biarch.sh | 2 +- tests/run-backtrace-native-core.sh | 2 +- tests/run-backtrace-native.sh | 2 +- tests/run-debuginfod-find.sh | 2 +- tests/run-deleted.sh | 2 +- tests/run-dwelf_elf_e_machine_string.sh | 2 +- tests/run-large-elf-file.sh | 2 +- tests/run-lfs-symbols.sh | 2 +- tests/run-linkmap-cut.sh | 2 +- 30 files changed, 62 insertions(+), 28 deletions(-) diff --git a/config/ChangeLog b/config/ChangeLog index 2ad93702f..459f75288 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2020-06-16 Mark Wielaard + + * upload-release.sh: Use /usr/bin/env bash. + 2020-06-11 Mark Wielaard * elfutils.spec.in: Update for 0.189. diff --git a/config/upload-release.sh b/config/upload-release.sh index b52642ea8..18c91c0ec 100755 --- a/config/upload-release.sh +++ b/config/upload-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Must be run in the source directory. # Should have passed make distcheck. diff --git a/tests/ChangeLog b/tests/ChangeLog index e5d9196bb..05220bd7c 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,33 @@ +2020-06-16 Mark Wielaard + + * coverage.sh: Use /usr/bin/env bash. + * run-ar.sh: Likewise. + * run-backtrace-core-aarch64.sh: Likewise. + * run-backtrace-core-i386.sh: Likewise. + * run-backtrace-core-ppc.sh: Likewise. + * run-backtrace-core-s390.sh: Likewise. + * run-backtrace-core-s390x.sh: Likewise. + * run-backtrace-core-sparc.sh: Likewise. + * run-backtrace-core-x32.sh: Likewise. + * run-backtrace-core-x86_64.sh: Likewise. + * run-backtrace-data.sh: Likewise. + * run-backtrace-demangle.sh: Likewise. + * run-backtrace-dwarf.sh: Likewise. + * run-backtrace-fp-core-aarch64.sh: Likewise. + * run-backtrace-fp-core-i386.sh: Likewise. + * run-backtrace-fp-core-ppc64le.sh: Likewise. + * run-backtrace-fp-core-x86_64.sh: Likewise. + * run-backtrace-native-biarch.sh: Likewise. + * run-backtrace-native-core-biarch.sh: Likewise. + * run-backtrace-native-core.sh: Likewise. + * run-backtrace-native.sh: Likewise. + * run-debuginfod-find.sh: Likewise. + * run-deleted.sh: Likewise. + * run-dwelf_elf_e_machine_string.sh: Likewise. + * run-large-elf-file.sh: Likewise. + * run-lfs-symbols.sh: Likewise. + * run-linkmap-cut.sh: Likewise. + 2020-06-11 Mark Wielaard * Makefile.am (nlist-test): Add GCOV flags when necessary. diff --git a/tests/coverage.sh b/tests/coverage.sh index 01d292cc3..448d43ba1 100755 --- a/tests/coverage.sh +++ b/tests/coverage.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash if [ "x$1" = "x-v" ]; then verbose=yes diff --git a/tests/run-ar.sh b/tests/run-ar.sh index fb9394d5c..656f1d1ab 100755 --- a/tests/run-ar.sh +++ b/tests/run-ar.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-aarch64.sh b/tests/run-backtrace-core-aarch64.sh index a29a6613d..41221d365 100755 --- a/tests/run-backtrace-core-aarch64.sh +++ b/tests/run-backtrace-core-aarch64.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-i386.sh b/tests/run-backtrace-core-i386.sh index 7294ec3d9..c497f4aa3 100755 --- a/tests/run-backtrace-core-i386.sh +++ b/tests/run-backtrace-core-i386.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-ppc.sh b/tests/run-backtrace-core-ppc.sh index 555ac3522..1a51046c4 100755 --- a/tests/run-backtrace-core-ppc.sh +++ b/tests/run-backtrace-core-ppc.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-s390.sh b/tests/run-backtrace-core-s390.sh index d3b6dc9c5..ce3afb931 100755 --- a/tests/run-backtrace-core-s390.sh +++ b/tests/run-backtrace-core-s390.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-s390x.sh b/tests/run-backtrace-core-s390x.sh index c3e236d4b..39450c146 100755 --- a/tests/run-backtrace-core-s390x.sh +++ b/tests/run-backtrace-core-s390x.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-sparc.sh b/tests/run-backtrace-core-sparc.sh index 60399baa6..2f39e7453 100755 --- a/tests/run-backtrace-core-sparc.sh +++ b/tests/run-backtrace-core-sparc.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2015 Oracle, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-x32.sh b/tests/run-backtrace-core-x32.sh index 2ad76bcf1..e6144b352 100755 --- a/tests/run-backtrace-core-x32.sh +++ b/tests/run-backtrace-core-x32.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) H.J. Lu , 2015. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-x86_64.sh b/tests/run-backtrace-core-x86_64.sh index d00cd6d69..49248015c 100755 --- a/tests/run-backtrace-core-x86_64.sh +++ b/tests/run-backtrace-core-x86_64.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-data.sh b/tests/run-backtrace-data.sh index 3062c3044..f67a43ef9 100755 --- a/tests/run-backtrace-data.sh +++ b/tests/run-backtrace-data.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-demangle.sh b/tests/run-backtrace-demangle.sh index 2d2532400..403a48527 100755 --- a/tests/run-backtrace-demangle.sh +++ b/tests/run-backtrace-demangle.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2014, 2015 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-dwarf.sh b/tests/run-backtrace-dwarf.sh index 8834048a2..7ed795d8e 100755 --- a/tests/run-backtrace-dwarf.sh +++ b/tests/run-backtrace-dwarf.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-fp-core-aarch64.sh b/tests/run-backtrace-fp-core-aarch64.sh index fda88d372..397e3c3a3 100755 --- a/tests/run-backtrace-fp-core-aarch64.sh +++ b/tests/run-backtrace-fp-core-aarch64.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 The Qt Company # This file is part of elfutils. # diff --git a/tests/run-backtrace-fp-core-i386.sh b/tests/run-backtrace-fp-core-i386.sh index c58ff532f..43f859fe6 100755 --- a/tests/run-backtrace-fp-core-i386.sh +++ b/tests/run-backtrace-fp-core-i386.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-fp-core-ppc64le.sh b/tests/run-backtrace-fp-core-ppc64le.sh index 326ca342d..345b8dbe8 100755 --- a/tests/run-backtrace-fp-core-ppc64le.sh +++ b/tests/run-backtrace-fp-core-ppc64le.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-fp-core-x86_64.sh b/tests/run-backtrace-fp-core-x86_64.sh index 348eb1836..12f44c4bf 100755 --- a/tests/run-backtrace-fp-core-x86_64.sh +++ b/tests/run-backtrace-fp-core-x86_64.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 The Qt Company # This file is part of elfutils. # diff --git a/tests/run-backtrace-native-biarch.sh b/tests/run-backtrace-native-biarch.sh index 2afe38a5e..928698303 100755 --- a/tests/run-backtrace-native-biarch.sh +++ b/tests/run-backtrace-native-biarch.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013, 2015 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-native-core-biarch.sh b/tests/run-backtrace-native-core-biarch.sh index 02552ce9a..232742571 100755 --- a/tests/run-backtrace-native-core-biarch.sh +++ b/tests/run-backtrace-native-core-biarch.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013, 2015 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-native-core.sh b/tests/run-backtrace-native-core.sh index cb025a566..db95895f2 100755 --- a/tests/run-backtrace-native-core.sh +++ b/tests/run-backtrace-native-core.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-native.sh b/tests/run-backtrace-native.sh index ddae345da..823c41179 100755 --- a/tests/run-backtrace-native.sh +++ b/tests/run-backtrace-native.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh index 7faad3317..f0c77c517 100755 --- a/tests/run-debuginfod-find.sh +++ b/tests/run-debuginfod-find.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2019-2020 Red Hat, Inc. # This file is part of elfutils. diff --git a/tests/run-deleted.sh b/tests/run-deleted.sh index 0f6476212..a1ec1ecf5 100755 --- a/tests/run-deleted.sh +++ b/tests/run-deleted.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2014 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-dwelf_elf_e_machine_string.sh b/tests/run-dwelf_elf_e_machine_string.sh index ba6d0e630..658f229f4 100755 --- a/tests/run-dwelf_elf_e_machine_string.sh +++ b/tests/run-dwelf_elf_e_machine_string.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Test to make sure all EM values in elf.h are recognized # Copyright (C) 2019 Red Hat, Inc. # This file is part of elfutils. diff --git a/tests/run-large-elf-file.sh b/tests/run-large-elf-file.sh index cbe306159..667d24d80 100755 --- a/tests/run-large-elf-file.sh +++ b/tests/run-large-elf-file.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2019 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-lfs-symbols.sh b/tests/run-lfs-symbols.sh index b65391b6a..7398e7f43 100755 --- a/tests/run-lfs-symbols.sh +++ b/tests/run-lfs-symbols.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2015 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-linkmap-cut.sh b/tests/run-linkmap-cut.sh index de2bc7cc7..053b96dca 100755 --- a/tests/run-linkmap-cut.sh +++ b/tests/run-linkmap-cut.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2014 Red Hat, Inc. # This file is part of elfutils. # -- 2.47.2