meson.build (1409B)
1 # crypto test suite 2 3 test_apps = [ 4 'cipher_driver', 5 'datatypes_driver', 6 'kernel_driver', 7 'env', 8 ] 9 10 if not use_openssl and not use_nss and not use_mbedtls 11 test_apps += ['sha1_driver'] 12 endif 13 14 foreach test_name : test_apps 15 test_exe = executable(test_name, 16 '@0@.c'.format(test_name), '../../test/getopt_s.c', '../../test/util.c', 17 include_directories: [config_incs, crypto_incs, srtp2_incs, test_incs], 18 dependencies: [srtp2_deps, syslibs], 19 link_with: libsrtp2_for_tests) 20 test(test_name, test_exe, args: ['-v']) 21 endforeach 22 23 if not use_openssl and not use_nss and not use_mbedtls 24 test_exe = executable('aes_calc', 25 'aes_calc.c', '../../test/getopt_s.c', '../../test/util.c', 26 include_directories: [config_incs, crypto_incs, srtp2_incs, test_incs], 27 dependencies: [srtp2_deps, syslibs], 28 link_with: libsrtp2_for_tests) 29 30 # data values used to test the aes_calc application for AES-128 31 k128 = '000102030405060708090a0b0c0d0e0f' 32 p128 = '00112233445566778899aabbccddeeff' 33 c128 = '69c4e0d86a7b0430d8cdb78070b4c55a' 34 test('aes_calc_128', test_exe, args: [k128, p128, c128]) 35 36 # data values used to test the aes_calc application for AES-256 37 k256 = '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' 38 p256 = '00112233445566778899aabbccddeeff' 39 c256 = '8ea2b7ca516745bfeafc49904b496089' 40 test('aes_calc_256', test_exe, args: [k256, p256, c256]) 41 endif