• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:results

6 # Commands used: grep, grep -i, ip link, ip tuntap, wc -l
15 # hw ether|infiniband ADDRESS - set LAN hardware address (AA:BB:CC...)
16 # txqueuelen LEN - number of buffered packets before output blocks
18 # irq|io_addr|mem_start ADDR - micromanage obsolete hardware
19 # outfill|keepalive INTEGER - SLIP analog dialup line quality monitoring
20 # metric INTEGER - added to Linux 0.9.10 with comment "never used", still true
24 [ -f testing.sh ] && . testing.sh
26 if [ "$(id -u)" -ne 0 ]
33 # Add a dummy interface to test with
42 # Results Expected: After calling ifconfig, no lines with dummy0 are displayed
44 "ifconfig dummy0 down && ifconfig | grep dummy | wc -l" "0\n" "" ""
46 # Results Expected: After calling ifconfig, one line with dummy0 is displayed
48 "ifconfig dummy0 up && ifconfig dummy0 | grep dummy | wc -l" "1\n" "" ""
50 # Results Expected: After calling ifconfig dummy0, one line displays the ip
53 "ifconfig dummy0 10.240.240.240 && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \
56 # Results Expected: After calling ifconfig dummy0, one line displays the
59 "ifconfig dummy0 netmask 255.255.240.0 && ifconfig dummy0 | grep 255\.255\.240\.0 | wc -l" \
62 # Results Expected: After calling ifconfig dummy0, one line displays the
65 "ifconfig dummy0 broadcast 10.240.240.255 && ifconfig dummy0 | grep 10\.240\.240\.255 | wc -l" \
68 # Test Description: Revert to the default ip address
69 # Results Expected: After calling ifconfig dummy0, there are no lines
72 "ifconfig dummy0 default && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \
75 # Test Description: Change the Maximum transmission unit (MTU) of the interface
76 # Results Expected: After calling ifconfig dummy0, there is one line with the
79 "ifconfig dummy0 mtu 1269 && ifconfig dummy0 | grep MTU:1269 | wc -l" \
82 # Test Description: ifconfig add for IPv6 fails with an mtu too small for IPv6.
83 # Results Expected: Failure. No check for the exact error because old kernels
85 testing "dummy0 add ::2 -- too small mtu" \
88 # Test Description: Change the Maximum transmission unit (MTU) of the interface
89 # Results Expected: After calling ifconfig dummy0, there is one line with the
92 "ifconfig dummy0 mtu 2000 && ifconfig dummy0 | grep MTU:2000 | wc -l" \
95 # Test Description: Verify ifconfig add succeeds with a larger mtu
96 # Results Expected: after calling ifconfig dummy0, there is one line with the
99 "ifconfig dummy0 add ::2/126 && ifconfig dummy0 | grep \:\:2/126 | wc -l" \
102 # Test Description: Verify ifconfig del removes the selected ip6 address
103 # Results Expected: after calling ifconfig dummy0, there are no lines with the
106 "ifconfig dummy0 del ::2/126 && ifconfig dummy0 | grep \:\:2/126 | wc -l" \
109 # Test Description: Remove the noarp flag and bring the interface down in
110 # preparation for the next test
111 # Results Expected: After calling ifconfig dummy0, there are no lines with the
114 "ifconfig dummy0 arp down && ifconfig dummy0 | grep -i NOARP | wc -l" \
117 # Test Description: Call the pointopoint option with no argument
118 # Results Expected: After calling ifconfig dummy0, there is one line with the
120 # TODO: http://lists.landley.net/pipermail/toybox-landley.net/2014-November/003795.html
122 #"ifconfig dummy0 pointopoint && ifconfig dummy0 | grep -i NOARP | grep -i UP | wc -l" \
125 # Test Description: Test the pointopoint option and set the ipaddress
126 # Results Expected: After calling ifconfig dummy0, there is one line with the
128 # TODO: http://lists.landley.net/pipermail/toybox-landley.net/2014-November/003795.html
130 …ig dummy0 pointopoint 127.0.0.2 && ifconfig dummy0 | grep -i inet | grep -i 127\.0\.0\.2 | wc -l" \
133 ####### Flags you can set on an interface (or -remove by prefixing with -): ###############
135 # Test Description: Enable allmulti mode on the interface
136 # Results Expected: After calling ifconfig dummy0, there is one line with the
139 "ifconfig dummy0 allmulti && ifconfig dummy0 | grep -i allmulti | wc -l" "1\n" \
142 # Test Description: Disable multicast mode the interface
143 # Results Expected: After calling ifconfig dummy0, there are no lines with the
145 testing "dummy0 -allmulti" \
146 "ifconfig dummy0 -allmulti && ifconfig dummy0 | grep -i allmulti | wc -l" "0\n" \
149 # Test Description: Disable NOARP mode on the interface
150 # Results Expected: After calling ifconfig dummy0, there are no lines with the
153 "ifconfig dummy0 arp && ifconfig dummy0 | grep -i NOARP | wc -l" "0\n" \
156 # Test Description: Enable NOARP mode on the interface
157 # Results Expected: After calling ifconfig dummy0, there is one line with the
159 testing "dummy0 -arp" \
160 "ifconfig dummy0 -arp && ifconfig dummy0 | grep -i NOARP | wc -l" "1\n" \
163 # Test Description: Enable multicast mode on the interface
164 # Results Expected: After calling ifconfig dummy0, there is one line with the
167 "ifconfig dummy0 multicast && ifconfig dummy0 | grep -i multicast | wc -l" \
170 # Test Description: Disable multicast mode the interface
171 # Results Expected: After calling ifconfig dummy0, there are no lines with the
173 testing "dummy0 -multicast" \
174 "ifconfig dummy0 -multicast && ifconfig dummy0 | grep -i multicast | wc -l" \
177 # Test Description: Enable promiscuous mode the interface
178 # Results Expected: After calling ifconfig dummy0, there is one line with the
181 "ifconfig dummy0 promisc && ifconfig dummy0 | grep -i promisc | wc -l" "1\n" \
185 # Results Expected: After calling ifconfig dummy0, there are no lines with the
187 testing "dummy0 -promisc" \
188 "ifconfig dummy0 -promisc && ifconfig dummy0 | grep -i promisc | wc -l" "0\n" \