[Mesa-dev] [PATCH 31/37] glsl/tests: remove any bashisms

Andreas Boll andreas.boll.dev at gmail.com
Fri Feb 24 15:05:24 UTC 2017


Reviewed-by: Andreas Boll <andreas.boll.dev at gmail.com>

2017-02-23 18:13 GMT+01:00 Emil Velikov <emil.l.velikov at gmail.com>:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  src/compiler/glsl/tests/optimization-test.sh | 4 ++--
>  src/compiler/glsl/tests/warnings-test.sh     | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/compiler/glsl/tests/optimization-test.sh b/src/compiler/glsl/tests/optimization-test.sh
> index 9cc3cae3a3..dc9740f69f 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 1bea466539..6a52d4064f 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
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list