diff options
| author | Eddy Caron <eddy.caron@ens-lyon.fr> | 2024-03-21 12:01:56 +0100 |
|---|---|---|
| committer | Eddy Caron <eddy.caron@ens-lyon.fr> | 2024-03-21 12:01:56 +0100 |
| commit | 20dc0e79d444116387caad81ba28021dde72e771 (patch) | |
| tree | 0cd7a418b1bd92cb4f201b233a85eadb5797fb84 | |
| parent | 7880df025fad5985d103abd86ec40c9ba8ff77af (diff) | |
Add OSX compatibility fot run.sh
| -rwxr-xr-x | tests/run.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh index 4d30c7f..e7b7b0b 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -10,6 +10,7 @@ abort=1 for test in ${tests} do printf "%-50s%s %s" "- $(basename $test)" "=>" + echo $test cd $test testcmd="esds run platform.yaml" timeout $test_timeout ${testcmd} &> "$out" @@ -24,8 +25,15 @@ do exit 2 fi + # Ensure OSX compatibility + case "$OSTYPE" in + darwin*) optbase="-i" ;; + *) optbase="" ;; + esac + # Ensure test output - if [ "$(base64 $out)" = "$(base64 ./out)" ] + + if [ "$(base64 $optbase $out)" = "$(base64 $optbase ./out)" ] then echo "passed" else |
