diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-11-04 20:41:55 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-11-14 17:11:34 +0100 |
commit | 18049a84fe402068ba10dfcffe6dbb088aefc53a (patch) | |
tree | 6913987796a1e1042476de36c425f2d197574199 /tests/cram/config/network | |
parent | 2b549cc050de17ec2263fd97a0abc0ae3564ad6c (diff) | |
download | uci-18049a84fe402068ba10dfcffe6dbb088aefc53a.tar.gz |
tests: add cram based unit tests
I find them more flexible then shunit2 ones.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'tests/cram/config/network')
-rw-r--r-- | tests/cram/config/network | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/cram/config/network b/tests/cram/config/network new file mode 100644 index 0000000..f42ea7c --- /dev/null +++ b/tests/cram/config/network @@ -0,0 +1,25 @@ +config 'alias' 'a' + option 'interface' 'lan' + +config 'alias' 'b' + option 'interface' 'lan' + +config 'interface' 'lan' + option 'proto' 'static' + option 'ifname' 'eth0' + option 'test' '123' + option 'enabled' 'off' + option 'ipaddr' '2.3.4.5' + +config 'interface' 'wan' + option 'proto' 'dhcp' + option 'ifname' 'eth1' + option 'enabled' 'on' + option 'aliases' 'c d' + +config 'alias' 'c' + option 'interface' 'wan' + +config 'alias' 'd' + option 'interface' 'wan' + |