summaryrefslogtreecommitdiffstats
path: root/systemtest/testOutputGen.awk
diff options
context:
space:
mode:
authorConstantin Jucovschi <cj@ubuntu.localdomain>2009-04-24 07:20:22 -0400
committerConstantin Jucovschi <cj@ubuntu.localdomain>2009-04-24 07:20:22 -0400
commit8f27e65bddd7d4b8515ce620fb485fdd78fcdf89 (patch)
treebd328a4dd4f92d32202241b5e3a7f36177792c5f /systemtest/testOutputGen.awk
downloadrasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.tar.gz
rasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.tar.xz
rasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.zip
Initial commitv8.0
Diffstat (limited to 'systemtest/testOutputGen.awk')
-rw-r--r--systemtest/testOutputGen.awk19
1 files changed, 19 insertions, 0 deletions
diff --git a/systemtest/testOutputGen.awk b/systemtest/testOutputGen.awk
new file mode 100644
index 0000000..f29b104
--- /dev/null
+++ b/systemtest/testOutputGen.awk
@@ -0,0 +1,19 @@
+BEGIN { testSection = 0; }
+# ignore empty lines
+/^$/ { next; }
+
+# ignore oid lines
+/^ *Oid\.*:*/ { next; }
+
+# turn on flag
+/^-- Testbed start block.*/ { testSection = 1; }
+
+# turn off flag
+/^-- Testbed end block.*/ { testSection = 0; }
+
+# print lines in test section
+testSection==1 { print $0; next; }
+
+# print lines starting with -- Testbed
+/^-- Testbed .*/ { print $0; }
+