mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-18 12:20:58 +01:00
migrate to codeberg (#21)
This commit is contained in:
54
tests/meson.build
Normal file
54
tests/meson.build
Normal file
@@ -0,0 +1,54 @@
|
||||
# -*-python-*-
|
||||
|
||||
# genheader statictest buffertest sample pipetest decodertest
|
||||
|
||||
fs = import('fs')
|
||||
|
||||
binaries = [
|
||||
'gencheader',
|
||||
'statictest',
|
||||
'buffertest',
|
||||
'sample',
|
||||
'pipetest',
|
||||
'decodertest',
|
||||
'mangle',
|
||||
'invalidkeys',
|
||||
'pwhashes',
|
||||
'streamtest',
|
||||
]
|
||||
|
||||
configs = [
|
||||
'cppunittests.cfg',
|
||||
'iotests.cfg',
|
||||
'jsonunittests.cfg',
|
||||
'keys.cfg',
|
||||
'pyunittests.cfg',
|
||||
'stresstests.cfg',
|
||||
'unittests.cfg',
|
||||
'md5',
|
||||
'jot',
|
||||
'bart.pub',
|
||||
'key-alicia-pub',
|
||||
'key-alicia-sec',
|
||||
'key-bobby-pub',
|
||||
'key-bobby-sec'
|
||||
]
|
||||
|
||||
foreach binary: binaries
|
||||
executable(
|
||||
binary,
|
||||
binary + '.c',
|
||||
include_directories: [pcp_inc],
|
||||
dependencies: [libpcp_dep, pcp_deps],
|
||||
)
|
||||
endforeach
|
||||
|
||||
foreach config: configs
|
||||
cp = fs.copyfile(config)
|
||||
endforeach
|
||||
|
||||
unittest = find_program('unittests.sh', '.')
|
||||
|
||||
test('C tests', unittest, args : ['unittests.cfg'])
|
||||
test('IO tests', unittest, args : ['iotests.cfg'])
|
||||
test('JSON tests', unittest, args : ['jsonunittests.cfg'])
|
||||
Reference in New Issue
Block a user