Frantisek Sumsal
d0533a319b
test: correctly fail when system is borked
...
In certain situations, the systemctl commands may fail (e.g. due to
missing shared libraries), but the 'script' continues and creates a
/testok file, marking the test incorrectly as passed. Let's fix this and
bail out immediately when a command exits with a non-zero exit code.
2019-05-27 22:31:55 +03:00
Frantisek Sumsal
37ee8dc80f
test: improve handling of ASan under clang
...
Running integration tests with ASan is somewhat tricky to begin with, as
we need to pre-load the ASan runtime DSO for certain services (like
dbus), otherwise they won't start or behave as expected. In case of gcc
this is pretty easy, as we need the runtime DSO during compilation, so
it's already present on the host system. For clang things get more
complicated, as ASan is compiled in statically by default, thus to
enable the necessary dynamic-ish behavior one needs to compile with
-shared-libasan and then correctly set LD_PRELOAD_PATH, as the runtime
libraries are not in a standard library path.
2019-05-27 17:46:07 +02:00
Lennart Poettering
a429223d17
test-execute: turn off coredump generation in test services
...
These services are likely to coredump, and we expect that but aren't
interested in the coredump. Hence let's turn off processing by setting
RLIMIT_CORE to 0/0.
2019-05-24 10:48:28 +02:00
Lennart Poettering
05332e243c
Merge pull request #12590 from keszybz/unicode-cmdlines
...
Use unicode for cmdline printing
2019-05-24 10:41:30 +02:00
Yu Watanabe
a43b1f8267
Merge pull request #12618 from yuwata/test-network-improvements
...
network: several cleanups
2019-05-23 11:17:33 +09:00
Zbigniew Jędrzejewski-Szmek
9e099c9fd8
Merge pull request #12431 from poettering/tmpfiles-chmod-chown-order
...
tmpfiles: run chown() before chmod()
2019-05-22 17:23:28 +02:00
Yu Watanabe
17bcf0a09f
test-network: drop wait_online() from test_ip6gre_tunnel()
2019-05-22 18:02:20 +09:00
Yu Watanabe
be0e1ef9b5
test-network: wait for bridge slave to be enslaved in test_bridge_ignore_carrier_loss_frequent_loss_and_gain()
2019-05-22 17:59:39 +09:00
Yu Watanabe
0a5dced161
test-network: drop unused variable
2019-05-22 17:58:46 +09:00
Yu Watanabe
a1b3559088
test-network: add test that vcan device can be configured state
2019-05-22 17:58:46 +09:00
Yu Watanabe
671dacdf0c
test-network: add basic tests for veth interfaces
2019-05-22 17:58:46 +09:00
Yu Watanabe
2746d30797
test-network: add tests for flags of tun or tap devices
2019-05-22 17:58:46 +09:00
Yu Watanabe
75eed300a9
network: Allow IFF_VNET_HDR to also be set for tun devices
...
f5f07dbf06
adds VnetHeader= for tap
devices, but the flag is also used for tun devices.
This adds VnetHeader= setting in [Tun] section.
2019-05-22 17:58:46 +09:00
Yu Watanabe
077f9abc3a
test-network: add tests for LinkLocalAddressing= on ipvlan or friends
2019-05-22 17:58:46 +09:00
Yu Watanabe
40921f0886
test-network: add tests for Flags= in [IPVTAP]
2019-05-22 17:58:46 +09:00
Yu Watanabe
bc6dff6e25
test-network: add tests for Flags= in [IPVLAN]
2019-05-22 17:58:46 +09:00
Yu Watanabe
460feb6127
test-network: add tests for Mode= setting in [MACVTAP] section
2019-05-22 17:58:46 +09:00
Yu Watanabe
dff9792b15
test-network: add tests for Mode= setting in [MACVLAN] section
2019-05-22 17:58:46 +09:00
Yu Watanabe
3d16512423
test-network: convert jiffies to sec
2019-05-22 17:58:46 +09:00
Yu Watanabe
8d7f098756
test-network: show interface status when wait_online() fails
2019-05-22 17:58:46 +09:00
Yu Watanabe
a9a2ee6a96
test-network: use wait_online() more
2019-05-22 17:58:46 +09:00
Yu Watanabe
e39cc4450d
test-network: introduce check_link_exists()
2019-05-22 17:58:46 +09:00
Yu Watanabe
c815f33e70
test-network: use wait_online() more
2019-05-22 17:58:46 +09:00
Yu Watanabe
881b1f358f
test-network: use splitlines() at one more place
2019-05-22 17:58:46 +09:00
Zbigniew Jędrzejewski-Szmek
77599f06e1
cgtop,test: use consistent capitalization for CGroup
2019-05-21 10:57:23 +02:00
Yu Watanabe
826c4f35c6
Merge pull request #12612 from keszybz/bootctl-column
...
Rename TEST-31-OOMPOLICY to avoid conflict and look in $BOOT for kernels
2019-05-21 07:45:12 +09:00
Yu Watanabe
a166cd3aac
Merge pull request #12603 from ssahani/ndisc-blacklist
...
networkd: Ability to selectively ignore IPv6 prefixes supplied via ro…
2019-05-19 23:19:27 +09:00
Susant Sahani
e520ce6440
networkd: Ability to selectively ignore IPv6 prefixes supplied via router advertisement
...
Closes https://github.com/systemd/systemd/issues/10647
2019-05-19 22:23:06 +09:00
Zbigniew Jędrzejewski-Szmek
d04876b143
TEST-32-OOMPOLICY: drop unneeded headers
2019-05-19 13:03:21 +02:00
Zbigniew Jędrzejewski-Szmek
5c305ce2db
test: rename TEST-31-OOMPOLICY to TEST-32-OOMPOLICY
...
TEST-31-DEVICE-ENUMERATION got merged first.
2019-05-19 13:00:00 +02:00
Zbigniew Jędrzejewski-Szmek
95cff2a794
test: search $BOOT for kernel+initrd
...
$BOOT is the preferred location for kernel images. If $BOOT does not
exist, -x will print the path to ESP, so well fall back to previous
behaviour.
2019-05-19 12:05:21 +02:00
Yu Watanabe
2700d2c7dc
test-network: wait for bond interface to be no-carrier operational state
2019-05-19 05:39:45 +09:00
Yu Watanabe
ce87a19087
test-network: enable universal_newline= flag for subprocess.check_output()
2019-05-19 05:39:21 +09:00
Yu Watanabe
4b3cf93507
test-network: remove unnecessary links
2019-05-19 05:29:25 +09:00
Yu Watanabe
3ccf7af087
test-network: fix underlying device name
2019-05-19 05:27:56 +09:00
Yu Watanabe
791c1140c9
test-network: use check_operstate() helper function where applicable
2019-05-19 05:27:56 +09:00
Yu Watanabe
2be0b6fc5e
test-network: add get_operstate() and check_operstate() helper functions
2019-05-19 05:27:46 +09:00
Yu Watanabe
e7b621ee1f
Merge pull request #12586 from ssahani/route-properties
...
Route properties
2019-05-18 10:31:37 +09:00
Susant Sahani
9b88f20aba
networkd: route add MPLS TTL propagate
2019-05-18 10:30:41 +09:00
Susant Sahani
8f02c9b085
networkd: FOU netdev add support to configure peer port
2019-05-18 10:25:36 +09:00
Zbigniew Jędrzejewski-Szmek
be44e09162
shared/varlink: add missing setting of output_buffer_allocated
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14708 ,
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14735 ,
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14725 ,
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14720 ,
and probably others.
2019-05-17 15:09:32 +02:00
Yu Watanabe
8688c29b5a
varlink: initialize Varlink with 0
...
Closes oss-fuzz#14688.
2019-05-16 18:51:33 +02:00
Yu Watanabe
a32a00831c
Merge pull request #12574 from yuwata/network-mtu-issue-12552
...
network: do not always bump MTU with additional 4bytes
2019-05-16 08:25:48 +02:00
Yu Watanabe
4e14e54638
Merge pull request #12549 from yuwata/network-sittun-disable-link-local-addressing-12547
...
network: disable LinkLocalAddressing on sit devices
2019-05-16 05:11:05 +02:00
Yu Watanabe
db439337f9
Merge pull request #12576 from ssahani/fou
...
networkd: FOU tunnel support Local and Peer tunnel addresses
2019-05-16 05:10:35 +02:00
Yu Watanabe
7d7be1b9d8
test-network: adjust mtu
2019-05-16 11:51:07 +09:00
Yu Watanabe
11309591a5
test-network: check tunnel netdevs become operstate 'routable'
2019-05-16 10:37:11 +09:00
Susant Sahani
4502a61c8a
networkd: FOU tunnel support Local and Peer tunnel addresses
2019-05-16 10:24:48 +09:00
Yu Watanabe
956c8feca4
test-network: add a basic test for ipvtap
2019-05-16 09:48:53 +09:00
Susant Sahani
69c317a07f
networkd: introduce netdev ipvtap
...
This patch adds netdev ipvtap that is based on the
IP-VLAN network interface, called ipvtap. An ipvtap device can be created
in the same way as an ipvlan device, using 'kind ipvtap', and then accessed
using the tap user space interface.
2019-05-16 09:48:53 +09:00