1firmware_tests = [
2  'handler',
3  'stat',
4  'canhandle',
5  'write',
6  'writemeta',
7  'open',
8  'close',
9  'sessionstat',
10  'commit',
11  'state_notyetstarted',
12  'state_uploadinprogress',
13  'state_verificationpending',
14  'state_verificationstarted',
15  'state_verificationcompleted',
16  'state_updatepending',
17  'state_updatestarted',
18  'state_updatecompleted',
19  'state_notyetstarted_tarball',
20  'multiplebundle',
21  'json',
22  'skip']
23
24foreach t : firmware_tests
25  test(
26    t,
27    executable(
28      t.underscorify(), 'firmware_' + t + '_unittest.cpp',
29      build_by_default: false,
30      implicit_include_directories: false,
31      include_directories: [root_inc, bmc_test_inc, firmware_inc],
32      dependencies:
33        [firmware_dep, image_mock_dep, triggerable_mock_dep, gtest, gmock]))
34endforeach
35
36file_handler_test = executable(
37  'file_handler',
38  'file_handler_unittest.cpp',
39  build_by_default: false,
40  implicit_include_directories: false,
41  include_directories: [root_inc, bmc_inc, bmc_test_inc, firmware_inc],
42  dependencies: [common_dep, blobs_dep, gtest, gmock])
43test('file_handler', file_handler_test)
44