After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755274 - test-simplify uses bashism in /bin/sh script
test-simplify uses bashism in /bin/sh script
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.17.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-09-19 20:47 UTC by Andreas Henriksson
Modified: 2015-09-20 17:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Henriksson 2015-09-19 20:47:27 UTC
I'm running into test failures while building gtk+ 3.17.9 because of test-simplify using #!/bin/sh while relying on bash features. Can we switch it to use #!/bin/bash (or get rid of bashism)?

For reference:

make[4]: Entering directory '/build/gtk+3.0-15GllF/gtk+3.0-3.17.9/debian/build/shared/testsuite/tools'
cp /build/gtk+3.0-15GllF/gtk+3.0-3.17.9/./testsuite/tools/test-simplify.in test-simplify
TEST: test-simplify... (pid=5756)
test-simplify: 7: test-simplify: shopt: not found
test-simplify: 8: test-simplify: Syntax error: "(" unexpected
FAIL: test-simplify



gtk+3.0-3.17.9$ checkbashisms ./testsuite/tools/test-simplify.in
possible bashism in ./testsuite/tools/test-simplify.in line 7 (shopt):
shopt -s nullglob
possible bashism in ./testsuite/tools/test-simplify.in line 13 (bash arrays, ${name[0|*|@]}):
for t in ${TESTS[*]}; do
Comment 1 Andreas Henriksson 2015-09-20 17:15:13 UTC
thanks!