tAdded empty boost unit test - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 1847983be9497ba71c1a730e0f56fc1caf9dcb5f
DIR parent 6be8b36e5ce5d77511a239d32c52e486d037209d
HTML Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Mon, 17 Dec 2012 20:17:36 +0100
Added empty boost unit test
Diffstat:
M src/Makefile | 3 +++
A src/boost-unit-tests.cpp | 16 ++++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
---
DIR diff --git a/src/Makefile b/src/Makefile
t@@ -111,6 +111,9 @@ folders: ../output ../img_out ../input
../img_out:
mkdir $@
+unittest: boost-unit-tests.cpp sphere.h
+ $(CC) -lboost_unit_test_framework $< -o $@
+
doc:
$(MAKE) -C ../doc
edit:
DIR diff --git a/src/boost-unit-tests.cpp b/src/boost-unit-tests.cpp
t@@ -0,0 +1,16 @@
+// Include the boost unit testing framework,
+// requires -lboost_unit_test_framework when linking
+#include <boost/test/included/unit_test.hpp>
+
+#include "sphere.h"
+
+// define the name of the test suite
+BOOST_AUTO_TEST_SUITE (spheretest)
+
+BOOST_AUTO_TEST_SUITE (inittest)
+{
+ DEM testDEM();
+}
+
+BOOST_AUTO_TEST_SUITE_END()
+