Commit c2f6216 1 parent c0250d7 commit c2f6216 Copy full SHA for c2f6216
File tree 6 files changed +27
-71
lines changed
6 files changed +27
-71
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.22)
3
3
4
4
project (MatGui)
5
5
6
+ enable_testing ()
7
+
6
8
add_library (MatGui SHARED matgui.cpp)
7
9
8
10
add_subdirectory (lib/sdlpp)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,21 +3,30 @@ cmake_minimum_required(VERSION 3.22)
3
3
4
4
enable_testing ()
5
5
6
- function (test testname)
7
- add_executable (${testname} -test ${testname} -test .cpp)
8
6
9
- target_include_directories (${testname} -test PRIVATE tests)
7
+ add_executable (
8
+ matgui-tests
9
+ font-test .cpp
10
+ shadertranslate-test .cpp
11
+ signal-test .cpp
12
+ mls-unit-test /test_main.cpp
13
+ )
10
14
11
- target_link_libraries (${testname} -test
12
- MatGui
13
- SDL2_image
14
- )
15
+ target_include_directories (
16
+ matgui-tests
17
+ PRIVATE
18
+ tests
19
+ )
20
+
21
+ add_test (
22
+ NAME matgui-tests
23
+ COMMAND matgui-tests
24
+ )
25
+
26
+ target_link_libraries (
27
+ matgui-tests
28
+ MatGui
29
+ SDL2_image
30
+ )
15
31
16
- add_test (NAME ${testname} -test
17
- COMMAND ${testname} -test
18
- )
19
- endfunction ()
20
32
21
- test (font)
22
- test (shadertranslate)
23
- test (signal)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ BitmapFontData bepData("xx\nxx\n");
19
19
20
20
} // namespace
21
21
22
- TEST_SUIT_BEGIN
22
+ TEST_SUIT_BEGIN (MatguiFont)
23
23
24
24
TEST_CASE(" concat chars" ) {
25
25
auto a = getFontDataVector (" a" );
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ string lastLine(string code) {
25
25
}
26
26
} // namespace
27
27
28
- TEST_SUIT_BEGIN
28
+ TEST_SUIT_BEGIN (MatguiShaderTranslate)
29
29
30
30
TEST_CASE(" frag color/out" ) {
31
31
constexpr auto code = //
You can’t perform that action at this time.
0 commit comments