diff options
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/lib/ldb/tests/test-samba3sam.sh | 61 | ||||
-rwxr-xr-x | source4/script/tests/selftest.sh | 10 | ||||
-rw-r--r-- | source4/scripting/ejs/smbcalls_sys.c | 6 |
3 files changed, 8 insertions, 69 deletions
diff --git a/source4/lib/ldb/tests/test-samba3sam.sh b/source4/lib/ldb/tests/test-samba3sam.sh deleted file mode 100755 index 5baf0bf77a..0000000000 --- a/source4/lib/ldb/tests/test-samba3sam.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -S3URL=$1 - -if [ -z "$S3URL" ]; -then - rm -f samba3.ldb - S3URL="tdb://samba3.ldb" - echo "Adding samba3 LDIF..." - $VALGRIND ldbadd -H tdb://samba3.ldb < samba3.ldif || exit 1 -fi - -rm -f samba4.ldb - -echo "Initial samba4 LDIF..." -$VALGRIND ldbadd -H tdb://samba4.ldb <<EOF -dn: @MODULES -@LIST: samba3sam - -dn: @MAP=samba3sam -@MAP_URL: $S3URL - -EOF - -LOC="-H tdb://samba4.ldb" - -echo "Looking up by non-mapped attribute" -$VALGRIND ldbsearch $LOC "(cn=Administrator)" || exit 1 - -echo "Looking up by mapped attribute" -$VALGRIND ldbsearch $LOC "(name=Backup Operators)" || exit 1 - -echo "Looking up by old name of renamed attribute" -$VALGRIND ldbsearch $LOC "(displayName=Backup Operators)" || exit 1 - -echo "Adding a record" -$VALGRIND ldbadd $LOC <<EOF -dn: cn=Foo,dc=idealx,dc=org -unixName: root -lastLogon: 20000 -cn: Foo -showInAdvancedViewOnly: TRUE - -EOF - -echo "Checking for existance of record" -$VALGRIND ldbsearch $LOC "(cn=Foo)" unixName lastLogon cn showInAdvancedViewOnly || exit 1 - -echo "Checking for persistence of non-mappable attribute" -$VALGRIND ldbsearch $LOC "(cn=Foo)" showInAdvancedViewOnly | grep showInAdvancedViewOnly || exit 1 - -echo "Adding record with mapped attribute in dn" -$VALGRIND ldbadd $LOC <<EOF -dn: unixName=nobody,dc=idealx,dc=org -unixName: nobody -cn: Niemand - -EOF - -echo "Checking for existance of record (mapped)" -$VALGRIND ldbsearch $LOC "(unixName=nobody)" unixName cn dn || exit 1 diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh index b102bf20fe..82cac6459f 100755 --- a/source4/script/tests/selftest.sh +++ b/source4/script/tests/selftest.sh @@ -88,7 +88,7 @@ cat >$CONFFILE<<EOF ncalrpc dir = $NCALRPCDIR lock dir = $LOCKDIR setup directory = $SRCDIR/setup - js include = $SRCDIR/scripting/libjs + js include = $SRCDIR/scripting/libjs name resolve order = bcast interfaces = lo* tls enabled = $TLS_ENABLED @@ -107,10 +107,10 @@ cat >$CONFFILE<<EOF [cifs] read only = no ntvfs handler = cifs - cifs:server = localhost - cifs:user = $USERNAME - cifs:password = $PASSWORD - cifs:domain = $DOMAIN + cifs:server = localhost + cifs:user = $USERNAME + cifs:password = $PASSWORD + cifs:domain = $DOMAIN cifs:share = tmp EOF diff --git a/source4/scripting/ejs/smbcalls_sys.c b/source4/scripting/ejs/smbcalls_sys.c index 3f1f4b0734..f32605c3d5 100644 --- a/source4/scripting/ejs/smbcalls_sys.c +++ b/source4/scripting/ejs/smbcalls_sys.c @@ -137,7 +137,7 @@ static int ejs_sys_httptime(MprVarHandle eid, int argc, struct MprVar **argv) /* unlink a file - ok = unlink(fname); + ok = sys.unlink(fname); */ static int ejs_sys_unlink(MprVarHandle eid, int argc, char **argv) { @@ -154,7 +154,7 @@ static int ejs_sys_unlink(MprVarHandle eid, int argc, char **argv) /* load a file as a string usage: - string = sys_file_load(filename); + string = sys.file_load(filename); */ static int ejs_sys_file_load(MprVarHandle eid, int argc, char **argv) { @@ -173,7 +173,7 @@ static int ejs_sys_file_load(MprVarHandle eid, int argc, char **argv) /* save a file from a string usage: - ok = sys_file_save(filename, str); + ok = sys.file_save(filename, str); */ static int ejs_sys_file_save(MprVarHandle eid, int argc, char **argv) { |