Commit 2d06e2b2c8784081af38497feb48f0a510e81ab8

Stefan Reinauer 2006-10-15T16:37:02

add test execution to Makefile git-svn-id: svn://coreboot.org/openbios/fcode-utils@97 f158a5a8-5612-0410-a976-696ce0be7e32

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: