glsl/tests: remove any bashisms
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 22 Feb 2017 19:54:58 +0000 (19:54 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 10 Mar 2017 14:12:48 +0000 (14:12 +0000)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/glsl/tests/optimization-test.sh
src/compiler/glsl/tests/warnings-test.sh

index 9cc3cae3a35daf9b606680efecca8bd826bbfa64..dc9740f69f4e4c52232f90cca51778fbb0f32fa2 100755 (executable)
@@ -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
index 1bea46653940a0dd522d28fa34408e87eef5d030..6a52d4064f8829ff67fa845f7b92e1caa0af3026 100755 (executable)
@@ -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