aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-extra/acpica/files/add-testing.patch
blob: e0ffccf82cfbf92708586bd60a52c76d4ab53005 (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
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,25 @@
 
 include generate/unix/Makefile.config
 include generate/unix/Makefile.common
+
+check:
+	# 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) 20131115
+
+	# Template tests
+	cd $(CURDIR)/tests/templates
+	make
+	if [ -f diff.log ] ; \
+	then \
+		if [ -s diff.log ] ; \
+		then \
+			exit 1		# implies errors occurred ; \
+		fi ; \
+	fi
+