summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-27 14:25:39 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-30 23:48:59 +1100
commitd6299d2667909487986782afc596cca45f2cbdac (patch)
treed49e4059f36639ba3061de76b4fd23f10e8dee31 /lib/replace/wscript
parent0d45d97540df3b826c62bdd8e1ab29cde1f7f758 (diff)
downloadsamba-d6299d2667909487986782afc596cca45f2cbdac.tar.gz
samba-d6299d2667909487986782afc596cca45f2cbdac.tar.bz2
samba-d6299d2667909487986782afc596cca45f2cbdac.zip
replace: create a private replace-test library
used by replace_testuite and smbtorture
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 8786eca872..9340ded1a9 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -407,13 +407,16 @@ def build(bld):
private_library=True,
deps='crypt dl nsl socket rt')
- TEST_SOURCES = '''test/testsuite.c test/main.c test/strptime.c
- test/os2_delete.c test/getifaddrs.c'''
-
+ bld.SAMBA_LIBRARY('replace-test',
+ source='''test/testsuite.c test/strptime.c
+ test/os2_delete.c test/getifaddrs.c''',
+ autoproto='replace-test.h',
+ deps='replace',
+ private_library=True)
bld.SAMBA_BINARY('replace_testsuite',
- TEST_SOURCES,
- deps='replace',
+ source='test/main.c',
+ deps='replace replace-test',
install=False)
# build replacements for stdint.h and stdbool.h if needed