1 #!/bin/bash
2
3 set -e
4
5 # Have to comment out when testing non-0 return values
6 # from test programs:
7 # set -e # quit on errors
8
9 F=meow5
10
11 # rebuild
12 ./build.sh
13
14 # execute the 'foo' elf maker script in meow5!
15 #echo ': foo 42 exit ; make_elf foo' | ./$F
16 echo ': foo "foo\n" print exit ; make_elf foo' | ./$F
17
18 # debug it
19 #gdb foo -q --command=dbgfoo.gdb
20
21 # look at it with mez!
22 ../mez/mez
23
24 # try to run it
25 echo "Running..."
26 ./foo
27 echo "(Exited with code $?)"