Add ability to run different regression levels with "make check"
authorMorgan Deters <mdeters@cs.nyu.edu>
Thu, 25 Apr 2013 19:43:16 +0000 (15:43 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Thu, 25 Apr 2013 19:43:16 +0000 (15:43 -0400)
test/regress/Makefile.am
test/regress/Makefile.levels [new file with mode: 0644]

index b92ab392e2e10df37f588db1638f520a6a151d89..f0cfe4301b085771406093aebd002406a1687ae0 100644 (file)
@@ -1,6 +1,8 @@
 SUBDIRS = regress0
 DIST_SUBDIRS = regress0 regress1 regress2 regress3
 
+@mk_include@ @srcdir@/Makefile.levels
+
 MAKEFLAGS = -k
 
 export VERBOSE = 1
@@ -12,7 +14,7 @@ regress3: regress0 regress1 regress2
 regress0 regress1 regress2 regress3:
        -cd $@ && $(MAKE) check
 
-# synonyms for "check" in this directory in this directory
+# synonyms for "check" in this directory
 .PHONY: regress test
 regress test: check
 
diff --git a/test/regress/Makefile.levels b/test/regress/Makefile.levels
new file mode 100644 (file)
index 0000000..f86bd4a
--- /dev/null
@@ -0,0 +1,11 @@
+# This Makefile fragment allows one to use "make check" but also specify
+# a regression level.
+ifeq ($(REGRESSION_LEVEL),1)
+SUBDIRS += regress1
+endif
+ifeq ($(REGRESSION_LEVEL),2)
+SUBDIRS += regress1 regress2
+endif
+ifeq ($(REGRESSION_LEVEL),3)
+SUBDIRS += regress1 regress2 regress3
+endif