[mathicgb] 07/08: debian/tests/unittest: Use upstream unit tests for continuous integration.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Wed Jan 11 21:54:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository mathicgb.

commit 81ce0547bd766478c4d7429877c722e148b2df42
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Wed Jan 11 16:43:30 2017 -0500

    debian/tests/unittest: Use upstream unit tests for continuous integration.
---
 debian/tests/control  |  4 ++--
 debian/tests/unittest | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index 49cbe65..f92c40d 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
-Tests: build
+Tests: unittest
 Depends: build-essential, libmathic-dev, libmathicgb-dev, libmemtailor-dev,
- pkg-config
+ libgtest-dev, libtbb-dev, pkg-config
diff --git a/debian/tests/unittest b/debian/tests/unittest
new file mode 100755
index 0000000..252f92a
--- /dev/null
+++ b/debian/tests/unittest
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+CPPFLAGS = -std=gnu++11 -I./src -I/usr/src/gtest
+LDLIBS = $(shell pkg-config --libs mathicgb) -lpthread -ltbb
+VPATH = src/test
+CC = g++
+
+OBJS = Range.o gtestInclude.o testMain.o gb-test.o ideals.o poly-test.o \
+  ideals.hpp SparseMatrix.o QuadMatrixBuilder.o F4MatrixBuilder.o       \
+  F4MatrixReducer.o mathicgb.o PrimeField.o MonoMonoid.o Scanner.o MathicIO.o
+
+all: testMain
+	./testMain
+	@exit $$?
+
+testMain: $(OBJS)
+
+clean:
+	rm -f testMain *.o

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathicgb.git



More information about the debian-science-commits mailing list