summaryrefslogtreecommitdiff
path: root/test/lib/completions/wol.exp
blob: 84a2d88d835151c87c8548af9982755eb0ac1ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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