aboutsummaryrefslogtreecommitdiff
path: root/test.sh
blob: 14f0145e328a950e875b4f0b0063c9f6550a2b88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if [ -z "$1" ]
then
    echo "Usage: $0 <path to .cup file>"
    exit 1
fi

set -xe

./compile.sh
./cupcc $@
./assemble.sh output.nasm

set +e

./a.out
echo "Exit status: $?"