Added sanity tests for generated files
diff --git a/tools/munger/Makefile b/tools/munger/Makefile
index 5a04a1f..9984cc0 100644
--- a/tools/munger/Makefile
+++ b/tools/munger/Makefile
@@ -35,7 +35,6 @@
LINT_FILES := $(subst ${TARGET_DIR}/,lint/,${LINT_FILES})
all: ${GEN_FILES}
- @echo "Generated files"
# The core OpenFlow libraries generated from openflow.h
${TARGET_DIR}/ofp.py: ${OFP_DEP}
@@ -58,6 +57,9 @@
clean:
rm -rf ${GEN_FILES} ${LINT_FILES} ${DOC_DIR}/html/*
+test: all
+ (cd tests && python msg_test.py) > tests/msg_test.log
+
help:
@echo
@echo "Makefile for oftest source munger"
@@ -81,4 +83,4 @@
@echo "LINT_FILES: ${LINT_FILES}"
-.PHONY: all local install help doc lint clean
+.PHONY: all local install help doc lint clean test