All checks were successful
Build ptprnt / build (push) Successful in 2m28s
47 lines
1.3 KiB
Meson
47 lines
1.3 KiB
Meson
# 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',
|
|
'label_builder_test/label_builder_test.cpp',
|
|
'printer_service_test/printer_service_test.cpp',
|
|
'p700_printer_test/p700_printer_test.cpp',
|
|
'fake_printer_test/fake_printer_test.cpp',
|
|
|
|
# Source files under test - graphics
|
|
'../src/graphics/Bitmap.cpp',
|
|
'../src/graphics/Monochrome.cpp',
|
|
'../src/graphics/Label.cpp',
|
|
'../src/graphics/LabelBuilder.cpp',
|
|
|
|
# Source files under test - core
|
|
'../src/core/PrinterService.cpp',
|
|
'../src/core/PrinterDriverFactory.cpp',
|
|
|
|
# Source files under test - printers
|
|
'../src/printers/P700Printer.cpp',
|
|
'../src/printers/FakePrinter.cpp',
|
|
|
|
# Source files under test - USB
|
|
'../src/libusbwrap/UsbDevice.cpp',
|
|
'../src/libusbwrap/UsbDeviceFactory.cpp',
|
|
]
|
|
|
|
test_exe = executable(
|
|
'ptprnt_tests',
|
|
sources: test_sources,
|
|
include_directories: incdir,
|
|
dependencies: [
|
|
gmock_dep, # GMock includes GTest
|
|
usb_dep,
|
|
log_dep,
|
|
pangocairo_dep,
|
|
cli11_dep,
|
|
],
|
|
)
|
|
|
|
# Single test that runs all test suites
|
|
test('all_tests', test_exe)
|