summaryrefslogtreecommitdiff
path: root/test/ctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-20 17:31:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-20 17:31:54 +0200
commitcb5f269b13429f0e1ffbc41426227983e5ccaeba (patch)
tree14e4bd292e1a16ff3d844e73a466ab051f7345d7 /test/ctor.cc
parent41ce3a4dcf5a03588b7c350445e73975c6b12ff7 (diff)
Simplify/fix task dependency calculation. And tasks unit-tests.
Diffstat (limited to 'test/ctor.cc')
-rw-r--r--test/ctor.cc18
1 files changed, 16 insertions, 2 deletions
diff --git a/test/ctor.cc b/test/ctor.cc
index aed3ee5..caa00ee 100644
--- a/test/ctor.cc
+++ b/test/ctor.cc
@@ -1,4 +1,4 @@
-#include "libctor.h"
+#include <libctor.h>
namespace
{
@@ -19,7 +19,21 @@ BuildConfigurations ctorTestConfigs()
"-I../src", "-Iuunit",
"-DOUTPUT=\"execute\"",
},
- }
+ },
+ {
+ .type = TargetType::UnitTest,
+ .target = "tasks_test",
+ .sources = {
+ "tasks_test.cc",
+ "uunit/uunit.cc",
+ },
+ .depends = {"libctor.a"},
+ .cxxflags = {
+ "-std=c++17", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"tasks\"",
+ },
+ },
};
}
}