From f30d40ec44e7bb4dda5cdd75e9761d67288af4a7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 25 Sep 2021 15:14:45 +0200 Subject: Add unit-test for source language deduction. --- 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 8080d61..3d05e7f 100644 --- a/test/ctor.cc +++ b/test/ctor.cc @@ -37,6 +37,20 @@ BuildConfigurations ctorTestConfigs() "-DOUTPUT=\"tasks\"", }, }, + { + .type = TargetType::UnitTest, + .target = "source_type_test", + .sources = { + "source_type_test.cc", + "uunit/uunit.cc", + }, + .depends = {"libctor.a"}, + .cxxflags = { + "-std=c++17", "-O3", "-s", "-Wall", "-Werror", + "-I../src", "-Iuunit", + "-DOUTPUT=\"source_type\"", + }, + }, }; } } -- cgit v1.2.3