orion/openwrt/uci_test.go

16 lines
181 B
Go
Raw Normal View History

package openwrt
import (
"testing"
)
func TestUciAdd(t *testing.T) {
// Return 0 run !
res := UciAdd("wireless", "test")
if res.ReturnCode != 0 {
t.Error(res.Stderr)
}
}