diff --git a/source4/script/tests/tests_win2k3_dc.sh b/source4/script/tests/tests_win2k3_dc.sh new file mode 100755 index 00000000000..281361475f7 --- /dev/null +++ b/source4/script/tests/tests_win2k3_dc.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +if [ ! $WINTESTCONF ]; then + echo "Environment variable WINTESTCONF has not been defined." + echo "Windows tests will not run unconfigured." + exit 1 +fi + +if [ ! -r $WINTESTCONF ]; then + echo "$WINTESTCONF could not be read." + exit 1 +fi + +. script/tests/test_functions.sh + +export SRCDIR=$SRCDIR + +tests="RPC-DRSUAPI RPC-SPOOLSS ncacn_np ncacn_ip_tcp" + +for name in $tests; do + testit $name $SRCDIR/script/tests/win/wintest_2k3_dc.sh $name +done diff --git a/source4/script/tests/win/vm_get_ip.pl b/source4/script/tests/win/vm_get_ip.pl index ee04fe6a998..9286786155b 100644 --- a/source4/script/tests/win/vm_get_ip.pl +++ b/source4/script/tests/win/vm_get_ip.pl @@ -19,7 +19,7 @@ sub check_error { } # Read in parameters from environment. -my $vm_cfg_path = $ENV{'VM_CFG_PATH'}; +my $vm_cfg_path = $ENV{"$ARGV[0]"}; my $host_server_name = $ENV{'HOST_SERVER_NAME'}; my $host_server_port = $ENV{'HOST_SERVER_PORT'}; if (!defined($host_server_port)) { diff --git a/source4/script/tests/win/wintest_2k3_dc.sh b/source4/script/tests/win/wintest_2k3_dc.sh new file mode 100755 index 00000000000..7949dc4b9ac --- /dev/null +++ b/source4/script/tests/win/wintest_2k3_dc.sh @@ -0,0 +1,116 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then +cat <