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