Add a unit test.
This also changes the Jenkinsfile so the tests run on Jenkins.
Change-Id: Ib7fbc226e81a574e7068f5d1eba8491cdb523f17
diff --git a/t/greeting-test.cpp b/t/greeting-test.cpp
new file mode 100644
index 0000000..1719469
--- /dev/null
+++ b/t/greeting-test.cpp
@@ -0,0 +1,11 @@
+#include <mod/greeting.hpp>
+
+#define CATCH_CONFIG_MAIN
+#include <mod/3rdparty/catch/catch.hpp>
+
+TEST_CASE("greeting generation") {
+ using greeting::make_greeting;
+ REQUIRE(make_greeting("Matthias") == "Hello Matthias!");
+ REQUIRE(make_greeting("world") == "Hello world!");
+ REQUIRE(make_greeting("") == "Hello!");
+}