add test execution to Makefile git-svn-id: svn://coreboot.org/openbios/fcode-utils@97 f158a5a8-5612-0410-a976-696ce0be7e32
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
diff --git a/Makefile b/Makefile
index 0e42454..0f641bb 100644
--- a/Makefile
+++ b/Makefile
@@ -35,13 +35,20 @@ clean:
make -C toke clean
make -C detok clean
make -C romheaders clean
+ make -C testsuite clean
distclean: clean
make -C toke distclean
make -C detok distclean
make -C romheaders distclean
+ make -C testsuite distclean
+tests: all
+ cp toke/toke testsuite
+ cp detok/detok testsuite
+ cp romheaders/romheaders testsuite
+ make -C testsuite all
-.PHONY: all clean distclean toke detok romheaders
+.PHONY: all clean distclean toke detok romheaders tests
diff --git a/testsuite/Makefile b/testsuite/Makefile
new file mode 100644
index 0000000..2ee36a5
--- /dev/null
+++ b/testsuite/Makefile
@@ -0,0 +1,16 @@
+all:
+ @echo "starting testsuite"
+ @csh AutoExec
+
+
+clean:
+ find . -name "*.DeTok" -exec rm -f \{\} \;
+ find . -name "*.Log" -a ! -name "*..OldTkzr.Log" -exec rm -f \{\} \;
+ find . -name "*.fc" -exec rm -f \{\} \;
+ find . -name "*.fl" -exec rm -f \{\} \;
+ find . -name "*.RomHdr" -exec rm -f \{\} \;
+ find . -name "*.P" -exec rm -f \{\} \;
+ find . -name "*.missing" -exec rm -f \{\} \;
+
+distclean: clean
+ rm -f toke detok romheaders
diff --git a/toke/Makefile b/toke/Makefile
index ad5b680..c58ee20 100644
--- a/toke/Makefile
+++ b/toke/Makefile
@@ -30,7 +30,7 @@ INCLUDES = -I../shared
# No coverage:
#CFLAGS = -O2 -g -Wall
-CFLAGS = -Os -Wall -Wno-pointer-sign -DSYS_IS_GNU_Linux
+CFLAGS = -Os -Wall -Wno-pointer-sign -fno-strict-aliasing -DSYS_IS_GNU_Linux
LDFLAGS =
# Coverage: