blob: e8903139705f554d6df4efc1520381358d286eaf [file] [log] [blame]
Andrew Jefferyd0a85562023-04-18 06:22:39 +09301tests = [
Andrew Jefferyd0a85562023-04-18 06:22:39 +09302 'test-ringbuffer-boundary-poll',
3 'test-ringbuffer-boundary-read',
4 'test-ringbuffer-contained-offset-read',
5 'test-ringbuffer-contained-read',
6 'test-ringbuffer-poll-force',
7 'test-ringbuffer-read-commit',
8 'test-ringbuffer-simple-poll',
9]
10
11foreach t : tests
12 test(t, executable(t, f'@t@.c', c_args: [ '-DSYSCONFDIR=""' ],
13 include_directories: '..'))
14endforeach
Alexander Hansen1e04f442024-06-12 16:35:58 +020015
16tests_depend_iniparser = [
17 'test-client-escape',
18 'test-config-parse',
19 'test-config-parse-bytesize',
20 'test-config-resolve-console-id'
21]
22
23foreach ct : tests_depend_iniparser
24 test(
25 ct,
26 executable(
27 ct,
28 f'@ct@.c',
29 c_args: [ '-DSYSCONFDIR=""' ],
30 dependencies: [ iniparser_dep ],
31 include_directories: '..'
32 )
33 )
34endforeach
Andrew Jeffery29a8f982024-07-31 10:47:08 +093035
36socat = find_program('socat', native: true)
37
38meson.override_find_program('test-console-logs-to-file', files('test-console-logs-to-file'))
39test('test-console-logs-to-file',
40 find_program('test-console-logs-to-file'),
41 args: [ socat.full_path(), server.full_path() ],
42 depends: [ server ],
43 suite: 'itests'
44)
Alexander Hansen12bf4832024-08-02 10:24:56 +020045
Alexander Hansena30b7652024-08-02 14:49:10 +020046client_tests = [
47 'test-console-client-can-read',
48 'test-console-client-can-write',
49]
50
51foreach ct : client_tests
52 test(ct,
53 find_program(ct),
54 args: [ socat.full_path(), server.full_path(), client.full_path() ],
55 depends: [ server, client ],
56 suite: 'itests'
57 )
58endforeach