1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00
Files
samba-mirror/source/script/tests/test_ejs.sh
2007-10-10 13:19:33 -05:00

27 lines
431 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; do
testit "$f" $SCRIPTDIR/$f $CONFIGURATION ncacn_np:$SERVER -U$USERNAME%$PASSWORD || failed=`expr $failed + 1`
done