File: add-testing.patch

package info (click to toggle)
acpica-unix 20160831-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 30,128 kB
  • sloc: ansic: 117,969; sh: 4,078; yacc: 3,709; makefile: 1,323; lex: 1,118
file content (27 lines) | stat: -rw-r--r-- 647 bytes parent folder | download
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
Index: acpica-unix-20160527/Makefile
===================================================================
--- acpica-unix-20160527.orig/Makefile
+++ acpica-unix-20160527/Makefile
@@ -20,3 +20,22 @@ else
 	include generate/unix/Makefile.config
 	include generate/unix/Makefile.common
 endif
+
+check:
+	# ASL tests
+	$(CURDIR)/tests/aslts.sh $(CURDIR)/tests/aslts $(CURDIR)/generate/unix
+
+	# misc tests
+	$(CURDIR)/debian/run-misc-tests.sh $(CURDIR) 20160831
+
+	# Template tests
+	cd $(CURDIR)/tests/templates
+	make
+	if [ -f diff.log ] ; \
+	then \
+		if [ -s diff.log ] ; \
+		then \
+			exit 1		# implies errors occurred ; \
+		fi ; \
+	fi
+