summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/nsswitch-config.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/lib/nsswitch-config.exp')
-rw-r--r--testsuite/lib/nsswitch-config.exp21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/lib/nsswitch-config.exp b/testsuite/lib/nsswitch-config.exp
new file mode 100644
index 00000000000..38342685dfa
--- /dev/null
+++ b/testsuite/lib/nsswitch-config.exp
@@ -0,0 +1,21 @@
+#
+# Load environment variables
+#
+
+global tool
+
+if { [file exists "deja-$tool.tcl"] } {
+ source "deja-$tool.tcl"
+}
+
+# Required options
+
+if { ![info exists WORKGROUP] } {
+ error "\$WORKGROUP not set in config file"
+}
+
+if { ![info exists PDC] } {
+ error "\$PDC not set in config file"
+}
+
+set domain $WORKGROUP