diff options
Diffstat (limited to 'test/fixtures/shared/bin')
-rwxr-xr-x | test/fixtures/shared/bin/arp | 16 | ||||
-rwxr-xr-x | test/fixtures/shared/bin/ifconfig | 24 |
2 files changed, 40 insertions, 0 deletions
diff --git a/test/fixtures/shared/bin/arp b/test/fixtures/shared/bin/arp new file mode 100755 index 0000000..49f4296 --- /dev/null +++ b/test/fixtures/shared/bin/arp @@ -0,0 +1,16 @@ +#!/bin/sh + +# Dummy "arp -an" emulator + +# Linux +echo "? (0.0.0.0) at 00:00:00:00:00:00 [ether] on eth0" + +# FreeBSD +echo "? (0.0.0.0) at 11:11:11:11:11:11 on bge0 expires in 5 seconds [ethernet]" + +# Solaris +cat <<EOF +Device IP Address Mask Flags Phys Addr +------ -------------------- --------------- -------- --------------- +ce0 0.0.0.0 255.255.255.255 o 22:22:22:22:22:22 +EOF diff --git a/test/fixtures/shared/bin/ifconfig b/test/fixtures/shared/bin/ifconfig new file mode 100755 index 0000000..59c9140 --- /dev/null +++ b/test/fixtures/shared/bin/ifconfig @@ -0,0 +1,24 @@ +#!/bin/sh + +# Dummy "ifconfig -a" emulator + +cat <<EOF +eth0 Link encap:Ethernet HWaddr 33:33:33:33:33:33 + inet addr:192.168.80.11 Bcast:192.168.80.255 Mask:255.255.255.0 + inet6 addr: fe80::000:0000:0000:0000/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:855946 errors:42 dropped:0 overruns:0 frame:42 + TX packets:477196 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:1142133425 (1.0 GiB) TX bytes:47621718 (45.4 MiB) + Interrupt:23 Base address:0xc000 + +lo Link encap:Local Loopback + inet addr:127.0.0.1 Mask:255.0.0.0 + inet6 addr: ::1/128 Scope:Host + UP LOOPBACK RUNNING MTU:16436 Metric:1 + RX packets:129059 errors:0 dropped:0 overruns:0 frame:0 + TX packets:129059 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:7456154 (7.1 MiB) TX bytes:7456154 (7.1 MiB) +EOF |