summaryrefslogtreecommitdiff
path: root/test/lib/completions/wol.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/wol.exp')
-rw-r--r--test/lib/completions/wol.exp29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/lib/completions/wol.exp b/test/lib/completions/wol.exp
new file mode 100644
index 00000000..84a2d88d
--- /dev/null
+++ b/test/lib/completions/wol.exp
@@ -0,0 +1,29 @@
+proc setup {} {
+ # See fixtures/shared/bin/{arp,ifconfig}
+ assert_bash_exec {OLDPATH="$PATH"; PATH="$TESTDIR/fixtures/shared/bin:$PATH";}
+ save_env
+}; # setup()
+
+
+proc teardown {} {
+ assert_env_unmodified
+ assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
+}; # teardown()
+
+
+setup
+
+
+assert_complete "00:00:00:00:00:00 11:11:11:11:11:11 22:22:22:22:22:22 33:33:33:33:33:33" "wol "
+
+
+sync_after_int
+
+
+assert_complete "00:00:00:00:00:00" "wol 00:"
+
+
+sync_after_int
+
+
+teardown