[Piglit] [PATCH 3/5] variable-index-read/write.sh: Add a script for regenerating all of them.

Eric Anholt eric at anholt.net
Mon Jan 5 12:22:44 PST 2015


Manually running the command 4 times every time you want to touch the
scripts is terrible.
---
 tests/spec/glsl-1.10/variable-index-regen.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100755 tests/spec/glsl-1.10/variable-index-regen.sh

diff --git a/tests/spec/glsl-1.10/variable-index-regen.sh b/tests/spec/glsl-1.10/variable-index-regen.sh
new file mode 100755
index 0000000..3df8082
--- /dev/null
+++ b/tests/spec/glsl-1.10/variable-index-regen.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Run this script with ./variable-index-regen.sh to regenerate all the
+# variable-indexing scripts.
+
+(cd execution/variable-indexing &&
+	../../../glsl-1.10/variable-index-read.sh 1.10 &&
+	../../../glsl-1.10/variable-index-write.sh 1.10)
+
+(cd ../glsl-1.20/execution/variable-indexing &&
+	../../../glsl-1.10/variable-index-read.sh 1.20 &&
+	../../../glsl-1.10/variable-index-write.sh 1.20)
-- 
2.1.3



More information about the Piglit mailing list