Fixes 'make check' on distros where bash is not at /bin/bash.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
args = ['../../glsl_test', 'optpass', '--quiet', '--input-ir', optimization]
test_file = '{0}.opt_test'.format(test_name)
with open(test_file, 'w') as f:
- f.write('#!/bin/bash\n#\n# This file was generated by create_test_cases.py.\n#\n')
+ f.write('#!/usr/bin/env bash\n#\n# This file was generated by create_test_cases.py.\n#\n')
f.write(doc_string)
f.write('{0} <<EOF\n'.format(bash_quote(*args)))
f.write('{0}\nEOF\n'.format(input_str))
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
-#!/bin/bash
+#!/usr/bin/env bash
if [ ! -z "$srcdir" ]; then
compare_ir=`pwd`/tests/compare_ir