1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/lib/compression/wscript_build
Douglas Bagnall c2db7fda4e lib/comression: convert test_lzxpress_plain to cmocka
Mainly so I can go

 make bin/test_lzxpress_plain && bin/test_lzxpress_plain
 valgrind bin/test_lzxpress_plain
 rr bin/test_lzxpress_plain
 rr replay

in a tight loop.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2022-12-01 22:56:39 +00:00

21 lines
713 B
Python

#!/usr/bin/env python
bld.SAMBA_SUBSYSTEM('LZXPRESS',
deps='replace talloc stable_sort samba-debug',
source='lzxpress.c lzxpress_huffman.c'
)
bld.SAMBA_BINARY('test_lzx_huffman',
source='tests/test_lzx_huffman.c',
deps=('cmocka replace LZXPRESS'
' samba-util'),
local_include=False,
for_selftest=True)
bld.SAMBA_BINARY('test_lzxpress_plain',
source='tests/test_lzxpress_plain.c',
deps=('cmocka replace LZXPRESS'
' samba-util'),
local_include=False,
for_selftest=True)