mirror of
https://github.com/samba-team/samba.git
synced 2025-11-25 00:23:52 +03:00
to add/remove keys and values in the future. add it to the standard tests, ensuring that we know if winreg breaks. This is particularly important as winreg uses such unusual IDL constructs
28 lines
549 B
Bash
Executable File
28 lines
549 B
Bash
Executable File
#!/bin/sh
|
|
# test some simple EJS operations
|
|
|
|
if [ $# -lt 3 ]; then
|
|
cat <<EOF
|
|
Usage: test_ejs.sh SERVER USERNAME PASSWORD
|
|
EOF
|
|
exit 1;
|
|
fi
|
|
|
|
SERVER="$1"
|
|
USERNAME="$2"
|
|
PASSWORD="$3"
|
|
|
|
incdir=`dirname $0`
|
|
. $incdir/test_functions.sh
|
|
|
|
SCRIPTDIR=../testprogs/ejs
|
|
|
|
PATH=bin:$PATH
|
|
export PATH
|
|
|
|
for f in samr.js echo.js ldb.js; do
|
|
testit "$f" $SCRIPTDIR/$f $CONFIGURATION ncalrpc: -U$USERNAME%$PASSWORD || failed=`expr $failed + 1`
|
|
done
|
|
|
|
testit "winreg" scripting/bin/winreg $CONFIGURATION ncalrpc: 'HKLM' -U$USERNAME%$PASSWORD || failed=`expr $failed + 1`
|