aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-extra/acpica/files/add-testing.patch
blob: 30447c8f7671dd950af7682bfe26a02645e1adbd (plain)
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
Index: acpica-unix/Makefile
===================================================================
--- acpica-unix.orig/Makefile	2013-01-31 15:25:49.000000000 -0700
+++ acpica-unix/Makefile	2013-01-31 15:25:49.000000000 -0700
@@ -14,3 +14,27 @@
 
 include generate/unix/Makefile.config
 include generate/unix/Makefile.common
+
+check:
+	cd tests
+
+	# ASL tests
+	$(CURDIR)/tests/aslts.sh $(CURDIR)/tests/aslts $(CURDIR)/generate/unix
+
+	# API Tests
+	$(CURDIR)/debian/run-aapits.sh $(CURDIR)/tests/aapits $(CURDIR)/generate/unix/bin
+
+	# misc tests
+	$(CURDIR)/debian/run-misc-tests.sh $(CURDIR) 20130626
+
+	# Template tests
+	cd $(CURDIR)/tests/templates
+	make
+	if [ -f diff.log ] ; \
+	then \
+		if [ -s diff.log ] ; \
+		then \
+			exit 1		# implies errors occurred ; \
+		fi ; \
+	fi
+