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