2022-08-08 04:55:17 +08:00
|
|
|
source_path = '../src/'
|
|
|
|
|
|
|
|
test_libreq = shared_library('test_libreq',
|
|
|
|
sources : [
|
|
|
|
source_path + 'config.cpp',
|
|
|
|
source_path + 'utils.cpp',
|
2022-12-31 05:49:07 +08:00
|
|
|
source_path + 'cpu.cpp',
|
2022-08-08 04:55:17 +08:00
|
|
|
source_path + 'disk.cpp',
|
|
|
|
source_path + 'drivers.cpp',
|
|
|
|
source_path + 'widgets.cpp',
|
|
|
|
source_path + 'follow_process_log.cpp',
|
2022-09-12 07:04:48 +08:00
|
|
|
source_path + 'initcpio.cpp',
|
2022-08-08 04:55:17 +08:00
|
|
|
source_path + 'crypto.cpp',
|
|
|
|
source_path + 'misc.cpp',
|
|
|
|
source_path + 'simple_tui.cpp',
|
|
|
|
source_path + 'tui.cpp',
|
|
|
|
],
|
|
|
|
include_directories : [include_directories(source_path)],
|
|
|
|
dependencies: deps
|
|
|
|
)
|
|
|
|
|
|
|
|
executable(
|
|
|
|
'test-exec-interactive',
|
|
|
|
files('unit-exec-interactive.cpp'),
|
|
|
|
dependencies: deps,
|
|
|
|
link_with: [test_libreq],
|
|
|
|
include_directories: [include_directories(source_path)],
|
|
|
|
install: false)
|
|
|
|
|
|
|
|
executable(
|
|
|
|
'test-process-tailing',
|
|
|
|
files('unit-proccess-tailing.cpp'),
|
|
|
|
dependencies: deps,
|
|
|
|
link_with: [test_libreq],
|
|
|
|
include_directories: [include_directories(source_path)],
|
|
|
|
install: false)
|
2022-09-12 07:04:48 +08:00
|
|
|
|
|
|
|
executable(
|
|
|
|
'test-initcpio',
|
|
|
|
files('unit-initcpio.cpp'),
|
|
|
|
dependencies: deps,
|
|
|
|
link_with: [test_libreq],
|
|
|
|
include_directories: [include_directories(source_path)],
|
|
|
|
install: false)
|