summaryrefslogtreecommitdiff
path: root/test/ctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-05-27 09:50:35 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-09 22:29:32 +0200
commitf5b09df9c88d49c95fd0c0ef7b3670b40634ca5c (patch)
tree3b5e78254b88e5546bf8e041226ad90db1d512c2 /test/ctor.cc
parent7a16146600384272baf7fb2fc0fc64f59b17ffe9 (diff)
WIP: automatic externalsexternals
Diffstat (limited to 'test/ctor.cc')
-rw-r--r--test/ctor.cc20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/ctor.cc b/test/ctor.cc
index c24ded7..fd97c80 100644
--- a/test/ctor.cc
+++ b/test/ctor.cc
@@ -67,7 +67,9 @@ BuildConfigurations ctorTestConfigs(const Settings& settings)
"../src/build.cc",
"../src/configure.cc",
"../src/execute.cc",
+ "../src/externals_manual.cc",
"../src/rebuild.cc",
+ "../src/search.cc",
"../src/tasks.cc",
"../src/task.cc",
"../src/task_ar.cc",
@@ -76,7 +78,6 @@ BuildConfigurations ctorTestConfigs(const Settings& settings)
"../src/task_ld.cc",
"../src/task_so.cc",
"../src/util.cc",
- "../src/externals_manual.cc",
},
.flags = {
.cxxflags = {
@@ -86,6 +87,23 @@ BuildConfigurations ctorTestConfigs(const Settings& settings)
.ldflags = { "-pthread" },
},
},
+ {
+ .type = TargetType::UnitTest,
+ .target = "search_test",
+ .sources = {
+ "../src/search.cc",
+ "search_test.cc",
+ "testmain.cc",
+ },
+ .flags = {
+ .cxxflags = {
+ "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"search\"",
+ },
+ .ldflags = { "-pthread" },
+ },
+ },
};
}
}