From: Emil Velikov Date: Wed, 22 Feb 2017 19:54:58 +0000 (+0000) Subject: glsl/tests: remove any bashisms X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3782f2b7a324efa0963d3b8f6ea8879106e80ab;p=mesa.git glsl/tests: remove any bashisms Signed-off-by: Emil Velikov Reviewed-by: Andreas Boll Reviewed-by: Eric Engestrom --- diff --git a/src/compiler/glsl/tests/optimization-test.sh b/src/compiler/glsl/tests/optimization-test.sh index 9cc3cae3a35..dc9740f69f4 100755 --- a/src/compiler/glsl/tests/optimization-test.sh +++ b/src/compiler/glsl/tests/optimization-test.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh if [ ! -z "$srcdir" ]; then compare_ir=`pwd`/tests/compare_ir.py @@ -35,7 +35,7 @@ echo "" echo "$pass/$total tests returned correct results" echo "" -if [[ $pass == $total ]]; then +if [ $pass = $total ]; then exit 0 else exit 1 diff --git a/src/compiler/glsl/tests/warnings-test.sh b/src/compiler/glsl/tests/warnings-test.sh index 1bea4665394..6a52d4064f8 100755 --- a/src/compiler/glsl/tests/warnings-test.sh +++ b/src/compiler/glsl/tests/warnings-test.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # Execute several shaders, and check that the InfoLog outcome is the expected. @@ -24,7 +24,7 @@ echo "" echo "$pass/$total tests returned correct results" echo "" -if [[ $pass == $total ]]; then +if [ $pass = $total ]; then exit 0 else exit 1