summaryrefslogtreecommitdiff
path: root/testsuite/libsmbclient/src/wscript_build
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-20 20:40:58 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-20 13:49:39 +0200
commit3ae478be0fca9a095ac81fa55debcbc51303e6fa (patch)
treeda6b9531e1435ea855b010be33822ee171fb66e8 /testsuite/libsmbclient/src/wscript_build
parent06d138a7d91789779634bad5f089b6b00f868584 (diff)
downloadsamba-3ae478be0fca9a095ac81fa55debcbc51303e6fa.tar.gz
samba-3ae478be0fca9a095ac81fa55debcbc51303e6fa.tar.bz2
samba-3ae478be0fca9a095ac81fa55debcbc51303e6fa.zip
build: compile (but do not install) all the libsmbclient tests
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Oct 20 13:49:39 CEST 2011 on sn-devel-104
Diffstat (limited to 'testsuite/libsmbclient/src/wscript_build')
-rw-r--r--testsuite/libsmbclient/src/wscript_build39
1 files changed, 39 insertions, 0 deletions
diff --git a/testsuite/libsmbclient/src/wscript_build b/testsuite/libsmbclient/src/wscript_build
new file mode 100644
index 0000000000..8e732d731f
--- /dev/null
+++ b/testsuite/libsmbclient/src/wscript_build
@@ -0,0 +1,39 @@
+#!/bin/env python
+names = [ ("init", range(1, 4)),
+ ("fstat", range(1, 6)),
+ ("open", range(1, 5)),
+ ("unlink", range(1, 12)),
+ ("chown", range(1)),
+ ("close", range(1,2)),
+ ("opendir", range(1, 4)),
+ ("closedir", range(1, 4)),
+ ("rename", range(1, 14)),
+ ("lseek", range(1, 8)),
+ ("lseekdir", range(1, 6)),
+ ("stat", range(1, 6)),
+ ("getdents", range(1, 5)),
+ ("creat", range(1, 3)),
+ ("mkdir", range(1, 4)),
+ ("readdir", range(1, 5)),
+ ("rmdir", range(1, 6)),
+ ("write", range(1, 13)),
+ ("read", range(1, 13)),
+ ("chmod", range(1)),
+ ("telldir", range(1, 5)),
+ ("print_file", range(1, 4)),
+ ("open_print_job", range(1, 2)),
+ ("list_print_jobs", range(1, 7)),
+ ("unlink_print_job", range(1, 5)) ]
+
+for pattern in names:
+ (name, suffixes) = pattern
+ for suffix in map(lambda x: x + 1, suffixes):
+ bld.SAMBA_BINARY('%s_%s' % (name, suffix),
+ source='%s/%s_%s.c' % (name, name, suffix),
+ deps='smbclient',
+ install=False)
+
+bld.SAMBA_BINARY('stat_k',
+ source='stat/stat_k.c',
+ deps='smbclient',
+ install=False)