summaryrefslogtreecommitdiffstats
path: root/testsuite/config/env.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/config/env.exp')
-rw-r--r--testsuite/config/env.exp26
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/config/env.exp b/testsuite/config/env.exp
new file mode 100644
index 00000000000..503d058c3f3
--- /dev/null
+++ b/testsuite/config/env.exp
@@ -0,0 +1,26 @@
+#
+# Load environment variables
+#
+
+# Domain set through environment variable
+
+catch {set domain "$env(TEST_WORKGROUP)"} tmp
+
+if {[regexp "^can't read" $tmp]} {
+ error "Environment variable \$TEST_WORKGROUP not set"
+}
+
+# NT user and server
+
+catch {set ntserver "$env(TEST_NTSERVER)"} tmp
+
+if {[regexp "^can't read" $tmp]} {
+ error "Environment variable \$TEST_NTSERVER not set"
+}
+
+catch {set ntuser "$env(TEST_NTUSER)"} tmp
+
+if {[regexp "^can't read" $tmp]} {
+ error "Environment variable \$TEST_NTUSER not set"
+}
+