GNOME Bugzilla – Bug 755274
test-simplify uses bashism in /bin/sh script
Last modified: 2015-09-20 17:15:13 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
thanks!