commit 20b4b4f3ac2cb26a0e880a6fc9ac137e6dc409da
parent 672b39286b2ab228a10a2c6bd5089187f4057439
Author: Roberto Vargas <roberto.vargas@arm.com>
Date: Fri, 2 Nov 2018 08:26:08 +0000
[test] Add basic infraestructure for different types of tests
Diffstat:
8 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,10 +1,12 @@
PROJECTDIR = .
include scripts/rules.mk
+TESTS = functional fuzzing integration model unit
+
all: arch/$(ARCH)
-test: all FORCE
- @+cd test/ && $(MAKE) test
+test $(TESTS): all FORCE
+ @+cd test/ && $(MAKE) $@
arch/$(ARCH): src
diff --git a/test/Makefile b/test/Makefile
@@ -1,12 +1,12 @@
PROJECTDIR = ..
include $(PROJECTDIR)/scripts/rules.mk
-DIRS = unit
+DIRS = unit functional fuzzing integration model
all: $(DIRS)
$(DIRS): FORCE
- +@cd $@ && $(MAKE)
+ +@cd $@ && $(MAKE) test
clean test:
$(FORALL)
diff --git a/test/functional/Makefile b/test/functional/Makefile
@@ -0,0 +1,6 @@
+PROJECTDIR = ../..
+include $(PROJECTDIR)/scripts/rules.mk
+
+all: test
+
+test:
diff --git a/test/fuzzing/Makefile b/test/fuzzing/Makefile
@@ -0,0 +1,6 @@
+PROJECTDIR = ../..
+include $(PROJECTDIR)/scripts/rules.mk
+
+all: test
+
+test:
diff --git a/test/integration/Makefile b/test/integration/Makefile
@@ -0,0 +1,6 @@
+PROJECTDIR = ../..
+include $(PROJECTDIR)/scripts/rules.mk
+
+all: test
+
+test:
diff --git a/test/model/Makefile b/test/model/Makefile
@@ -0,0 +1,6 @@
+PROJECTDIR = ../..
+include $(PROJECTDIR)/scripts/rules.mk
+
+all: test
+
+test:
diff --git a/test/.gitignore b/test/unit/.gitignore
diff --git a/test/unit/test1/.gitignore b/test/unit/test1/.gitignore
@@ -1 +1,3 @@
hdl_*.c
+ramfw
+romfw