John Kessenich | aab2514 | 2013-02-12 18:26:15 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
John Kessenich | 4586dbd | 2013-08-05 15:52:03 +0000 | [diff] [blame] | 3 | TARGETDIR=localResults |
| 4 | BASEDIR=baseResults |
John Kessenich | 69f4b51 | 2013-09-04 21:19:27 +0000 | [diff] [blame^] | 5 | EXE=./glslangValidator.exe |
| 6 | |
| 7 | # |
| 8 | # isolated compilation tests |
| 9 | # |
John Kessenich | aab2514 | 2013-02-12 18:26:15 +0000 | [diff] [blame] | 10 | |
| 11 | while read t; do |
| 12 | echo Running $t... |
John Kessenich | 69f4b51 | 2013-09-04 21:19:27 +0000 | [diff] [blame^] | 13 | b=`basename $t` |
| 14 | $EXE -i $t > $TARGETDIR/$b.out |
John Kessenich | 8d2fe45 | 2013-08-05 16:36:49 +0000 | [diff] [blame] | 15 | diff -b $BASEDIR/$b.out $TARGETDIR/$b.out |
John Kessenich | b3338b3 | 2013-02-26 19:47:21 +0000 | [diff] [blame] | 16 | done < testlist |
John Kessenich | 69f4b51 | 2013-09-04 21:19:27 +0000 | [diff] [blame^] | 17 | |
| 18 | # |
| 19 | # grouped shaders for link tests |
| 20 | # |
| 21 | |
| 22 | function runLinkTest { |
| 23 | echo Running $*... |
| 24 | $EXE -i -l $* > $TARGETDIR/$1.out |
| 25 | diff -b $BASEDIR/$1.out $TARGETDIR/$1.out |
| 26 | } |
| 27 | |
| 28 | runLinkTest mains1.frag mains2.frag noMain1.geom noMain2.geom |
| 29 | runLinkTest noMain.vert mains.frag |