1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#BLAKE2s = static_library('BLAKE2s', 'blake2s.c')
BLAKE2s_native = shared_library('BLAKE2s_native', 'blake2s.c', native: true)
kat = generator(python3,
arguments: '@INPUT@',
capture: true, output: '@BASENAME@.h'
)
test('BLAKE2s selftest',
executable('b2s_selftest', 'test/blake2s_selftest.c', link_with: BLAKE2s_native, native: true),
suite: 'BLAKE2'
)
test('BLAKE2s KAT',
executable('b2s_kat', ['test/blake2s_kat.c', kat.process('test/blake2s_kat.py')],
link_with: BLAKE2s_native, native: true),
suite: 'BLAKE2'
)
|