aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/gen_output.fish
blob: 91db67b0617d80d1cf273b3d9b0484d0a843c7e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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