remove-dependencies #20
@@ -1,51 +1,29 @@
|
||||
tests = [
|
||||
[
|
||||
'bitmap_test',
|
||||
'bitmap_test_exe',
|
||||
['../src/graphics/Bitmap.cpp', 'bitmap_test/bitmap_test.cpp'],
|
||||
],
|
||||
[
|
||||
'monochrome_test',
|
||||
'monochrome_test_exe',
|
||||
[
|
||||
'../src/graphics/Monochrome.cpp',
|
||||
# Consolidated test binary - all tests in one executable for faster linking
|
||||
|
||||
test_sources = [
|
||||
# Test files
|
||||
'bitmap_test/bitmap_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(
|
||||
test.get(0),
|
||||
executable(
|
||||
test.get(1),
|
||||
sources: test.get(2),
|
||||
test_exe = executable(
|
||||
'ptprnt_tests',
|
||||
sources: test_sources,
|
||||
include_directories: incdir,
|
||||
dependencies: [
|
||||
gtest_dep,
|
||||
gmock_dep, # GMock includes GTest
|
||||
usb_dep,
|
||||
log_dep,
|
||||
pangocairo_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