Remove the test binary split
All checks were successful
Build ptprnt / build (push) Successful in 2m54s
All checks were successful
Build ptprnt / build (push) Successful in 2m54s
This commit is contained in:
@@ -1,51 +1,29 @@
|
|||||||
tests = [
|
# Consolidated test binary - all tests in one executable for faster linking
|
||||||
[
|
|
||||||
'bitmap_test',
|
test_sources = [
|
||||||
'bitmap_test_exe',
|
# Test files
|
||||||
['../src/graphics/Bitmap.cpp', 'bitmap_test/bitmap_test.cpp'],
|
'bitmap_test/bitmap_test.cpp',
|
||||||
],
|
|
||||||
[
|
|
||||||
'monochrome_test',
|
|
||||||
'monochrome_test_exe',
|
|
||||||
[
|
|
||||||
'../src/graphics/Monochrome.cpp',
|
|
||||||
'monochrome_test/monochrome_test.cpp',
|
'monochrome_test/monochrome_test.cpp',
|
||||||
],
|
'label_test/label_test.cpp',
|
||||||
],
|
|
||||||
|
# Source files under test
|
||||||
|
'../src/graphics/Bitmap.cpp',
|
||||||
|
'../src/graphics/Monochrome.cpp',
|
||||||
|
'../src/graphics/Label.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
foreach test : tests
|
test_exe = executable(
|
||||||
test(
|
'ptprnt_tests',
|
||||||
test.get(0),
|
sources: test_sources,
|
||||||
executable(
|
|
||||||
test.get(1),
|
|
||||||
sources: test.get(2),
|
|
||||||
include_directories: incdir,
|
include_directories: incdir,
|
||||||
dependencies: [
|
dependencies: [
|
||||||
gtest_dep,
|
gmock_dep, # GMock includes GTest
|
||||||
usb_dep,
|
usb_dep,
|
||||||
log_dep,
|
log_dep,
|
||||||
pangocairo_dep,
|
pangocairo_dep,
|
||||||
cli11_dep,
|
cli11_dep,
|
||||||
],
|
],
|
||||||
),
|
|
||||||
)
|
|
||||||
endforeach
|
|
||||||
|
|
||||||
# Label test requires GMock for mocking Cairo/Pango
|
|
||||||
test(
|
|
||||||
'label_test',
|
|
||||||
executable(
|
|
||||||
'label_test_exe',
|
|
||||||
sources: ['../src/graphics/Label.cpp', 'label_test/label_test.cpp'],
|
|
||||||
include_directories: incdir,
|
|
||||||
dependencies: [
|
|
||||||
gmock_dep,
|
|
||||||
gtest_dep,
|
|
||||||
usb_dep,
|
|
||||||
log_dep,
|
|
||||||
pangocairo_dep,
|
|
||||||
cli11_dep,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Single test that runs all test suites
|
||||||
|
test('all_tests', test_exe)
|
||||||
|
|||||||
Reference in New Issue
Block a user