18 lines
389 B
Text
Executable file
18 lines
389 B
Text
Executable file
#!/usr/bin/env atf-sh
|
|
|
|
. $(atf_get_srcdir)/../test_env.sh
|
|
EXECUTOR="$(atf_get_srcdir)/../../executor-scripts/linux/link"
|
|
|
|
tests_init up down
|
|
|
|
up_body() {
|
|
export IFACE=lo PHASE=up MOCK=echo
|
|
atf_check -s exit:0 -o match:'ip link set up dev lo' \
|
|
${EXECUTOR}
|
|
}
|
|
|
|
down_body() {
|
|
export IFACE=lo PHASE=down MOCK=echo
|
|
atf_check -s exit:0 -o match:'ip link set down dev lo' \
|
|
${EXECUTOR}
|
|
}
|