summaryrefslogtreecommitdiff
path: root/test/ctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-25 15:14:45 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-25 15:14:45 +0200
commitf30d40ec44e7bb4dda5cdd75e9761d67288af4a7 (patch)
tree8383509abf4a6d0fafa233c2cd891df309f43b36 /test/ctor.cc
parent019ee9f3026a419cd25916974d32fe1ebcff9578 (diff)
Add unit-test for source language deduction.
Diffstat (limited to 'test/ctor.cc')
-rw-r--r--test/ctor.cc14
1 files changed, 14 insertions, 0 deletions
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\"",
+ },
+ },
};
}
}