about summary refs log tree commit diff stats
path: root/tests/infrastructure/clean.awk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/infrastructure/clean.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/infrastructure/clean.awk b/tests/infrastructure/clean.awk
new file mode 100644
index 00000000..1208b1ef
--- /dev/null
+++ b/tests/infrastructure/clean.awk
@@ -0,0 +1,13 @@
+{
+    # Shell like comments
+    gsub(/^#.*$/, "", $0)
+
+    # Strip leading and trailing white space
+    gsub(/^[[:blank:]]*/, "", $0)
+    gsub(/[[:blank:]]*$/, "", $0)
+
+    # Only accept the line, if it contains something
+    if (NF) {
+        print $0
+    }
+}