]> git.proxmox.com Git - pve-common.git/blame - test/etc_network_interfaces/t.keep-option-order.pl
Tools: add unshare system call
[pve-common.git] / test / etc_network_interfaces / t.keep-option-order.pl
CommitLineData
936218b8
WB
1#
2# Order of option lines between interfaces should be preserved:
3# eth0 is unconfigured and will thus end up at the end as 'manual'
4#
5my $ordered = <<'ORDERED';
6source /etc/network/config1
7
8iface eth1 inet manual
9
10source-directory /etc/network/interfaces.d
11
12iface eth2 inet manual
13
14iface eth3 inet manual
15
16ORDERED
17
18r("$ordered", <<'/proc/net/dev'
19eth0:
20eth1:
21eth2:
22eth3:
23/proc/net/dev
24);
25
26expect(load('loopback') . $ordered . "iface eth0 inet manual\n\n");
27
281;