2014-10-01 00:06:56 +00:00
|
|
|
#!/usr/bin/env fish
|
2005-09-20 13:31:55 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Generate output for a test script
|
|
|
|
#
|
2010-09-18 02:18:26 +00:00
|
|
|
# It is important that you verify that the generated
|
2005-09-20 13:31:55 +00:00
|
|
|
# output is correct!
|
|
|
|
#
|
|
|
|
|
|
|
|
for i in $argv
|
2020-05-15 05:56:06 +00:00
|
|
|
set -l template_out (basename $i .in).out
|
|
|
|
set -l template_err (basename $i .in).err
|
|
|
|
set -l template_status (basename $i .in).status
|
2005-09-20 13:31:55 +00:00
|
|
|
|
2018-04-01 20:43:05 +00:00
|
|
|
fish <$i >$template_out 2>$template_err
|
|
|
|
echo $status >$template_status
|
2014-10-01 00:06:56 +00:00
|
|
|
end
|