Permalink
Browse files

#49 - run tests as part of package builds. Ignore failures. Respect D…

…EB_BUILD_OPTIONS=nocheck
  • Loading branch information...
1 parent 741231a commit f7a7e45183381d054338fd76d8d07c3b4beb4040 @rcoup rcoup committed Oct 3, 2012
@@ -15,8 +15,14 @@ else
export CFLAGS += -O3
endif
-override_dh_auto_test:
-
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ override_dh_auto_test:
+else:
+ override_dh_auto_test:
+ # the test suite does not 100% pass on all platforms/boost versions,
+ # but the output is useful :)
+ dh_auto_test; echo "Overall Test Exit Code: $?"
+endif
override_dh_auto_configure:
scons $(SCONS_FLAGS) CUSTOM_CXXFLAGS="$(CFLAGS)" configure
@@ -18,8 +18,14 @@ else
export CFLAGS += -O3
endif
-override_dh_auto_test:
-
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ override_dh_auto_test:
+else:
+ override_dh_auto_test:
+ # the test suite does not 100% pass on all platforms/boost versions,
+ # but the output is useful :)
+ dh_auto_test; echo "Overall Test Exit Code: $?"
+endif
override_dh_auto_configure:
scons $(SCONS_FLAGS) CUSTOM_CXXFLAGS="$(CFLAGS)" configure
@@ -18,8 +18,14 @@ else
export CFLAGS += -O3
endif
-override_dh_auto_test:
-
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ override_dh_auto_test:
+else:
+ override_dh_auto_test:
+ # the test suite does not 100% pass on all platforms/boost versions,
+ # but the output is useful :)
+ dh_auto_test; echo "Overall Test Exit Code: $?"
+endif
override_dh_auto_configure:
scons $(SCONS_FLAGS) CUSTOM_CXXFLAGS="$(CFLAGS)" configure
@@ -18,8 +18,14 @@ else
export CFLAGS += -O3
endif
-override_dh_auto_test:
-
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ override_dh_auto_test:
+else:
+ override_dh_auto_test:
+ # the test suite does not 100% pass on all platforms/boost versions,
+ # but the output is useful :)
+ dh_auto_test; echo "Overall Test Exit Code: $?"
+endif
override_dh_auto_configure:
scons $(SCONS_FLAGS) CUSTOM_CXXFLAGS="$(CFLAGS)" configure

0 comments on commit f7a7e45

Please sign in to comment.