From aab251435bf70c3216a368563871a3b9c3fc85ea Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Tue, 12 Feb 2013 18:26:15 +0000 Subject: [PATCH] Add bash script for running through all tests. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20552 e7fa87d3-cd2b-0410-9028-fcbf551c1848 --- Test/runlist.bat | 1 - Test/runtests | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) delete mode 100644 Test/runlist.bat create mode 100644 Test/runtests diff --git a/Test/runlist.bat b/Test/runlist.bat deleted file mode 100644 index 8d68a473..00000000 --- a/Test/runlist.bat +++ /dev/null @@ -1 +0,0 @@ -for /F "tokens=*" %%f in (testlist) do .\StandAlone.exe -i %%f diff --git a/Test/runtests b/Test/runtests new file mode 100644 index 00000000..c3e17467 --- /dev/null +++ b/Test/runtests @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +RUNCMD=../Build/Debug/glslang.exe +TARGETDIR=localout +BASEDIR=localbase + +while read t; do + echo Running $t... + b=`basename $t` + ./StandAlone -i $t > $TARGETDIR/$b.out + diff $BASEDIR/$b.out $TARGETDIR/$b.out +done < testlist