Add libusbwrapper for unit tests and UsbDevice unit tests
All checks were successful
Build ptprnt / build (push) Successful in 3m11s

This commit is contained in:
2025-10-21 20:12:52 +02:00
parent 6009f0421d
commit 7f0082ddbe
15 changed files with 1481 additions and 76 deletions

View File

@@ -9,6 +9,9 @@ test_sources = [
'printer_service_test/printer_service_test.cpp',
'p700_printer_test/p700_printer_test.cpp',
'fake_printer_test/fake_printer_test.cpp',
'cli_parser_test/cli_parser_test.cpp',
'ptouch_print_test/ptouch_print_test.cpp',
'usb_device_test/usb_device_test.cpp',
# Source files under test - graphics
'../src/graphics/Bitmap.cpp',
@@ -24,7 +27,14 @@ test_sources = [
'../src/printers/P700Printer.cpp',
'../src/printers/FakePrinter.cpp',
# Source files under test - CLI
'../src/cli/CliParser.cpp',
# Source files under test - Main app
'../src/PtouchPrint.cpp',
# Source files under test - USB
'../src/libusbwrap/LibusbWrapper.cpp',
'../src/libusbwrap/UsbDevice.cpp',
'../src/libusbwrap/UsbDeviceFactory.cpp',
]