1tests = [ 2 '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 15 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 35 36socat = find_program('socat', native: true) 37 38server_tests = [ 39 'test-console-logs-to-file', 40 'test-console-socket-read', 41 'test-console-socket-write', 42 'test-multiple-consoles', 43] 44 45foreach st : server_tests 46 test(st, 47 find_program(st), 48 args: [ socat.full_path(), server.full_path() ], 49 depends: [ server ], 50 suite: 'itests' 51 ) 52endforeach 53 54client_tests = [ 55 'test-console-client-can-read', 56 'test-console-client-can-write', 57] 58 59foreach ct : client_tests 60 test(ct, 61 find_program(ct), 62 args: [ socat.full_path(), server.full_path(), client.full_path() ], 63 depends: [ server, client ], 64 suite: 'itests' 65 ) 66endforeach 67