Use commandline options instead of ENV variables

This commit is contained in:
Dan Sinclair
2019-10-16 13:08:48 -04:00
parent 7d623e1c90
commit 3290d38011
2 changed files with 19 additions and 21 deletions

View File

@@ -1,9 +1,14 @@
#!/usr/bin/env bash
TARGETDIR=${GLSLANG_TEST_RESULTS:-localResults}
# Arguments:
# 1- TargetDirectory, where to write test results and intermediary files
# 2- Path to glslangValidator
# 3- Path to spirv-remap
TARGETDIR=${1:-localResults}
BASEDIR=baseResults
EXE=${GLSLANG_PATH:-../build/install/bin/glslangValidator}
REMAPEXE=${SPIRV_REMAP_PATH:-../build/install/bin/spirv-remap}
EXE=${2:-../build/install/bin/glslangValidator}
REMAPEXE=${3:-../build/install/bin/spirv-remap}
HASERROR=0
mkdir -p $TARGETDIR