s3:build: pass the path to smbtorture4 down to make with and without '-t' prefix
authorStefan Metzmacher <metze@samba.org>
Mon, 2 Feb 2009 23:08:24 +0000 (00:08 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 2 Feb 2009 23:10:19 +0000 (00:10 +0100)
metze

source3/Makefile.in
source3/m4/check_path.m4
source3/samba4.m4

index 5d15e0fcca5531ffe302ae1e462af0f815121a3f..9d08f7e9caa6f6d87e738f8026f95ab6b0c43626 100644 (file)
@@ -19,6 +19,7 @@ datarootdir=@datarootdir@
 selftest_prefix=@selftest_prefix@
 selftest_shrdir=@selftest_shrdir@
 smbtorture4_path=@smbtorture4_path@
+smbtorture4_option=@smbtorture4_option@
 selftest_custom_conf=@selftest_custom_conf@
 
 LIBS=@LIBS@
@@ -2932,7 +2933,7 @@ test_pam_modules:: pam_modules
 ## Targets for 'make test'
 ##
 
-TEST_EXTRA_ARGS = ${smbtorture4_path} ${selftest_shrdir} ${selftest_custom_conf}
+TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
 
 test:: all torture timelimit
        @echo Running Test suite
index 12b998747ac8d90ebe44647ebf092f9a902db52f..0a61733870bcec9aba3fc65cd23ec2315dfecd93 100644 (file)
@@ -332,6 +332,8 @@ AC_ARG_WITH(selftest-shrdir,
 # set path of samba4's smbtorture
 smbtorture4_path=""
 AC_SUBST(smbtorture4_path)
+smbtorture4_option=""
+AC_SUBST(smbtorture4_option)
 AC_ARG_WITH(smbtorture4_path,
 [AS_HELP_STRING([--with-smbtorture4-path=PATH], [The path to a samba4 smbtorture for make test (none)])],
 [ case "$withval" in
@@ -343,7 +345,7 @@ AC_ARG_WITH(smbtorture4_path,
     if test -z "$smbtorture4_path" -a ! -f $smbtorture4_path; then
        AC_MSG_ERROR(['$smbtorture_path' does not  exist!])
     fi
-    smbtorture4_path="-t $withval"
+    smbtorture4_option="-t $withval"
   ;;
  esac
 ])
index ee47fccfb2bcda943140461becf01e4a9aa09263..e2c754b02bd532205c994f003e44bfb5ca641a53 100644 (file)
@@ -1,5 +1,6 @@
 AC_SUBST(BLDSHARED)
-smbtorture4_path="-t bin/smbtorture4"
+smbtorture4_path="bin/smbtorture4"
+smbtorture4_option="-t bin/smbtorture4"
 m4_include(build/m4/public.m4)
 
 m4_include(../m4/check_python.m4)