summaryrefslogtreecommitdiffstats
path: root/libacc/test
blob: 28b76553c020087e1240ba18b57b742a2c6a3809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
rm -f tests/acc
g++ acc.cpp disassem.cpp -g -ldl -o tests/acc && tests/acc tests/otcc.c -a x86 -d tests/otcc.out && diff tests/otcc.out tests/otcc.out-orig
if [ -x "tests/acc" ]; then
  tests/acc -S tests/returnval.c

  if [ "$(uname)" = "Linux" ]; then
    if [ "$(uname -m)" = "i686" ]; then
      echo "Linux i686. Testing otcc.c"
      tests/acc tests/otcc.c tests/otcc.c tests/returnval.c
    fi
  fi
fi