summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-17 20:38:03 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:38 +1000
commitf15a81c1c02426a5afe59a364d00438f06a10501 (patch)
tree6baef231fb0342e7c2985fb5ea731ad810b62e93 /source4
parente3ae80a2f70f3ed473b06d0f40fb33e993f86461 (diff)
downloadsamba-f15a81c1c02426a5afe59a364d00438f06a10501.tar.gz
samba-f15a81c1c02426a5afe59a364d00438f06a10501.tar.bz2
samba-f15a81c1c02426a5afe59a364d00438f06a10501.zip
build: added ASN1, PIDL and ET build rules
also added selftest example command
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal_build/wscript_build4
-rw-r--r--source4/selftest/wscript18
-rw-r--r--source4/wscript2
3 files changed, 22 insertions, 2 deletions
diff --git a/source4/heimdal_build/wscript_build b/source4/heimdal_build/wscript_build
index 3a66f57fbd..35f09af29d 100644
--- a/source4/heimdal_build/wscript_build
+++ b/source4/heimdal_build/wscript_build
@@ -280,8 +280,8 @@ bld.SAMBA_BINARY('compile_et',
'../heimdal/lib/vers/print_version.c ../heimdal/lib/com_err/parse.c ../heimdal/lib/com_err/lex.c ../heimdal/lib/com_err/compile_et.c',
use_hostcc=True,
group='build_compilers',
- cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1',
- deps='HEIMDAL_ROKEN_H'
+ cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_ -I../heimdal_build',
+ deps='HEIMDAL_ROKEN_H replace'
)
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
new file mode 100644
index 0000000000..8327838366
--- /dev/null
+++ b/source4/selftest/wscript
@@ -0,0 +1,18 @@
+# selftest main code.
+
+########################################################################
+# main test entry point
+def cmd_test(opt):
+ '''Run the full test suite'''
+ print "Starting full test"
+
+########################################################################
+# main test entry point
+def cmd_quicktest(opt):
+ '''Run the quick test suite'''
+ print "Starting quick test"
+
+def set_options(opt):
+ opt.ADD_COMMAND('test', cmd_test)
+ opt.ADD_COMMAND('quicktest', cmd_quicktest)
+
diff --git a/source4/wscript b/source4/wscript
index 211f30b157..a72c16c9e2 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -7,6 +7,8 @@ LIBLDB_DIR= srcdir + '/source4/lib/ldb'
def set_options(opt):
opt.recurse(LIBREPLACE_DIR)
opt.recurse(LIBLDB_DIR)
+ opt.recurse('selftest')
+
def configure(conf):
conf.DEFINE('_SAMBA_BUILD_', 4)