aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/gen_output.fish
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gen_output.fish')
-rwxr-xr-xtests/gen_output.fish17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/gen_output.fish b/tests/gen_output.fish
new file mode 100755
index 00000000..91db67b0
--- /dev/null
+++ b/tests/gen_output.fish
@@ -0,0 +1,17 @@
+#!/usr/bin/fish
+
+#
+# Generate output for a test script
+#
+# It is important that you verify that the generated
+# output is correct!
+#
+
+for i in $argv
+ set template_out (basename $i .in).out
+ set template_err (basename $i .in).err
+ set template_status (basename $i .in).status
+
+ fish <$i >$template_out ^$template_err
+ echo $status >$template_status
+end \ No newline at end of file