teardown() {
rm -rf ../build/dllpostinst.conf
+ unset DLLCONFIG
}
@test "ignore file does not exists" {
assert_success
assert_output "ERROR: ../build/dll-not-exists.conf does not exist"
- unset DLLCONFIG
}
@test "add entry kds_s2000w_net dll.conf" {
assert_line --index 1 "add kds_s2000w_net to ../build/dllpostinst.conf"
assert_equal "$(cat ../build/dllpostinst.conf)" "kds_s2000w_net"
assert_equal "$(cat ../build/dllpostinst.conf | wc --lines)" "1"
- unset DLLCONFIG
}
@test "entry exists in dll.conf do nothing" {
assert_output "found ../build/dllpostinst.conf"
assert_equal "$(cat ../build/dllpostinst.conf)" "kds_s2000w_net"
assert_equal "$(cat ../build/dllpostinst.conf | wc --lines)" "1"
- unset DLLCONFIG
}
\ No newline at end of file