summaryrefslogtreecommitdiff
path: root/test/ctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-14 07:46:43 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-14 07:46:43 +0200
commitba04d2889a4e017c6043bac9951f722e60b63bc5 (patch)
tree1267f9264dfe81aadeac46446ee6122a5abe5190 /test/ctor.cc
parentf7fda8ca8841552b54ce72ed8ca9156cc09368d0 (diff)
Add suport for building and running unittests with the 'check' target.
Diffstat (limited to 'test/ctor.cc')
-rw-r--r--test/ctor.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/ctor.cc b/test/ctor.cc
new file mode 100644
index 0000000..aed3ee5
--- /dev/null
+++ b/test/ctor.cc
@@ -0,0 +1,28 @@
+#include "libctor.h"
+
+namespace
+{
+BuildConfigurations ctorTestConfigs()
+{
+ return
+ {
+ {
+ .type = TargetType::UnitTest,
+ .target = "execute_test",
+ .sources = {
+ "execute_test.cc",
+ "uunit/uunit.cc",
+ "../src/execute.cc",
+ },
+ .cxxflags = {
+ "-std=c++17", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"execute\"",
+ },
+ }
+ };
+}
+}
+
+// Convenience macro
+REG(ctorTestConfigs);