From a5585150f0ff8d27ddd22792f521f1374a3eedd8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 Jan 2023 08:37:29 +0100 Subject: Add env to execute function. --- test/ctor.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/ctor.cc') diff --git a/test/ctor.cc b/test/ctor.cc index 3649a10..ea5ae1e 100644 --- a/test/ctor.cc +++ b/test/ctor.cc @@ -9,6 +9,18 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) { return { + { + .type = ctor::target_type::unit_test, + .target = "testprog", + .sources = { + "testprog.cc", + }, + .flags = { + .cxxflags = { + "-std=c++20", "-O3", "-Wall", "-Werror", + }, + }, + }, { .type = ctor::target_type::unit_test, .target = "execute_test", @@ -16,7 +28,9 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) "execute_test.cc", "testmain.cc", "../src/execute.cc", + "../src/util.cc", }, + .depends = { "testprog", }, .flags = { .cxxflags = { "-std=c++20", "-O3", "-Wall", "-Werror", -- cgit v1.2.3