Mercurial > hg > qcc
view make/selftest.sh @ 587:e790c9263068
Now that we pass selftest.sh again, fix a bug in the sanity test at the end.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 04 Apr 2008 00:18:36 -0500 |
parents | b3f6400d0046 |
children | 18192dd26583 |
line wrap: on
line source
#!/bin/bash TARGET=$1 CCNAME=${1}-tinycc if [ -z "$1" ] then TARGET=native CCNAME=tinycc fi echo -e "\npass one: cc -o tinycc" && make/make.sh $TARGET && mv $CCNAME test1cc && echo -e "\npass two: tinycc -o tinycc" && CC=./test1cc make/make.sh $TARGET && mv $CCNAME test2cc && echo -e "\npass three: tinycc -o tinycc -o tinycc" && CC=./test2cc make/make.sh $TARGET && echo -e "\nSanity check." && ./$CCNAME -E - </dev/null >/dev/null && echo success || echo test failed