From c50b7554cfd23b53107f2a2917a0be22a68b0c11 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 7 Jan 2025 07:26:39 +0100 Subject: Move readDeps function to its own file. --- test/ctor.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test/ctor.cc') diff --git a/test/ctor.cc b/test/ctor.cc index ccf1c31..1951a30 100644 --- a/test/ctor.cc +++ b/test/ctor.cc @@ -9,6 +9,25 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) { return { + { + .type = ctor::target_type::unit_test, + .system = ctor::output_system::build, + .target = "deps_test", + .sources = { + "deps_test.cc", + "testmain.cc", + "../src/deps.cc", + "../src/util.cc", + }, + .depends = { "testprog", }, + .flags = { + .cxxflags = { + "-std=c++20", "-O3", "-Wall", "-Werror", + "-I../src", "-Iuunit", + "-DOUTPUT=\"deps\"", + }, + }, + }, { .type = ctor::target_type::unit_test, .system = ctor::output_system::build, @@ -104,6 +123,7 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) .sources = { "../src/build.cc", "../src/configure.cc", + "../src/deps.cc", "../src/execute.cc", "../src/rebuild.cc", "../src/tasks.cc", -- cgit v1.2.3