summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert "test-network: extend sleep time"Yu Watanabe2019-07-171-4/+4
| | | | | | This reverts commit 7d7bb5c8613b774bf77c531f46d31ee20d7a1b1e. Still the CIs are flaky and the commit just slow down them.
* test/TEST-16: don't copy systemd-notify or lib from $BUILD_DIRDan Streetman2019-07-171-2/+0
| | | | | On Ubuntu CI, these don't exist because it tests installed binaries, not just-built binaries.
* Merge pull request #12675 from yuwata/network-set-dnsLennart Poettering2019-07-172-16/+121
|\ | | | | resolvectl: support to modify interfaces managed by networkd
| * test-network: drop warn_about_firewalld() as it is not necessary any moreYu Watanabe2019-07-161-9/+0
| |
| * test-network: stop firewalld in setUpModule()Yu Watanabe2019-07-161-7/+14
| |
| * test-network: add tests for link state file vs resolvectl or timedatectlYu Watanabe2019-07-162-0/+107
| |
* | core: ExecCondition= for servicesAnita Zhang2019-07-174-0/+29
| | | | | | | | Closes #10596
* | Merge pull request #13082 from ddstreet/minorZbigniew Jędrzejewski-Szmek2019-07-1732-207/+87
|\ \ | | | | | | Minor fixes in test framework
| * | test/test-functions: instmods call to find should use -type fDan Streetman2019-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | without using -type f, the logs print an error such as: E: E: modprobe: FATAL: Module asymmetric_keys not found in directory /lib/modules/4.15.0-54-generic while this doesn't appear to cause problems, it can be extremely distracting when trying to debug real failures.
| * | test: when stripping binaries, ignore case in suppressing "File format not ↵Dan Streetman2019-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | recognized" The grep -v matches all lowercase, but "file" is captialized; just ignore case so it's suppressed for either all lowercase or capital File.
| * | test: ignore errors during test cleanup, so cleanup can finishDan Streetman2019-07-172-17/+18
| | | | | | | | | | | | Also move TESTDIR and STATEFILE removal into test_cleanup
| * | test: add create_empty_image_rootdir() to simplify testcase setupDan Streetman2019-07-1732-197/+76
| |/ | | | | | | | | | | | | | | | | Almost all tests were manually mounting/unmounting $TESTDIR/root from the loopback image; this moves all that into test-functions so the test setup functions are simplier. Also add test_setup_cleanup() function, to cleanup what is mounted by create_empty_image_rootdir()
* / test/test-functions: fix install_dmeventd to correctly install bin/libsDan Streetman2019-07-171-28/+1
|/
* Merge pull request #13069 from ↵Yu Watanabe2019-07-161-4/+4
|\ | | | | | | | | yuwata/network-do-not-set-routes-when-carrier-lost network: do not configure routes when dropping addresses
| * test-network: extend sleep timeYu Watanabe2019-07-161-4/+4
| | | | | | | | | | | | Even if addresses provided by DHCP is assigned, the state file may not be written yet, or resolved may not receive the state change signal yet, or resolved may not process the signal yet...
* | tests: bump up QEMU_MEMEvgeny Vereshchagin2019-07-161-1/+1
|/
* Merge pull request #12925 from yuwata/network-generatorLennart Poettering2019-07-169-0/+113
|\ | | | | network-generator: introduce new tool systemd-network-generator
| * test: add TEST-35-NETWORK-GENERATORYu Watanabe2019-07-149-0/+113
| |
* | test-network: make wait_online() check setup stateYu Watanabe2019-07-152-149/+168
| | | | | | | | | | | | Previously, event if link's setup state is in failed, tests may pass, as systemd-networkd-wait-online success if the state is in failed state. This makes tests be checked more strictly.
* | test-network: add tests for DHCPv4.UseDomains=Yu Watanabe2019-07-142-0/+28
|/
* test-network: add tests for route with type local, multicast, anycast, or ↵Yu Watanabe2019-07-122-0/+33
| | | | broadcast
* test-network: test more bridge propertiesYu Watanabe2019-07-123-5/+17
| | | | Imported from networkd-test.py
* Merge pull request #12971 from yuwata/network-reassign-static-routesYu Watanabe2019-07-123-2/+46
|\ | | | | network: reassign static routes and process reply address messages
| * test-network: add test for route reassignmentYu Watanabe2019-07-113-2/+46
| |
* | Merge pull request #13017 from yuwata/network-neighbor-lladdr-13015Lennart Poettering2019-07-115-4/+36
|\ \ | | | | | | network: rename Neighbor.MACAddress= and also support IPv4 address
| * | test-network: add testcase that Neighbor.LinkLayerAddress= is IP addressYu Watanabe2019-07-113-1/+32
| | |
| * | test-network: use Neighbor.LinkLayerAddress= instead of deprecated ↵Yu Watanabe2019-07-112-3/+3
| | | | | | | | | | | | Neighbor.MACAddress=
| * | network: rename Neighbor.MACAddress= to Neighbor.LinkLayerAddress=Yu Watanabe2019-07-111-0/+1
| | | | | | | | | | | | | | | | | | And make it support IPv4 address. Closes #13015.
* | | Merge pull request #12461 from Werkov/fix-job-orderingLennart Poettering2019-07-113-0/+18
|\ \ \ | |_|/ |/| | Refactor job ordering implementation (and fix cycle detection)
| * | tests: Check trivial loop between two jobsMichal Koutný2019-06-262-0/+9
| | | | | | | | | | | | | | | | | | job_compare return value is undefined in case the jobs have a loop between them, so better make a test to make sure transaction cycle detection catches it.
| * | tests: Check job ordering on execution cyclesMichal Koutný2019-06-262-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test-engine Test2 tests the cycle detection when units a, b and d all start at once ,-------------------after-----------------, v | a/start ---after---> d/start ---after---> b/start Extend the test with Test11 that adds i.service which causes a and d stop (by unordered Conflicts=) while starting b. Because stops precede starts, we effectively eliminate the job cycle and all transaction jobs should be applicable. ,-------------------after-----------------, v | a/stop <---after--- d/stop <---after--- b/start . . ^ . . | '. . . . . . . . . i/start ---after------'
* | | test: add testcase for new CleanUnit logicLennart Poettering2019-07-113-0/+129
| |/ |/|
* | Merge pull request #13018 from yuwata/network-tunnel-follow-up-13016Lennart Poettering2019-07-1112-10/+95
|\ \ | | | | | | network: drop assertions about Tunnel.family
| * | test-network: add testcases Tunnel.Remote=any and Local=anyYu Watanabe2019-07-1112-10/+95
| | |
* | | test-network: drop test_udev_driver as it is unstableYu Watanabe2019-07-111-34/+0
| | | | | | | | | | | | | | | The test unexpectedly succeeds on KVM with sanitizer CI. At least tentatively, let's drop the test.
* | | Merge pull request #13006 from yuwata/network-split-dhcp-12917Lennart Poettering2019-07-116-10/+208
|\ \ \ | |/ / |/| | networkd: DHCPv6 - separate DHCPv6 options from DHCPv4 options
| * | test-network: add tests for UseDNS= in [DHCP] sectionYu Watanabe2019-07-105-0/+123
| | |
| * | test-network: enable systemd-resolved.serviceYu Watanabe2019-07-101-3/+53
| | |
| * | network: rename [DHCP] section to [DHCPv4]Yu Watanabe2019-07-101-7/+27
| | | | | | | | | | | | To keep the backward compatibility broken by the previous commit.
| * | networkd: DHCPv6 - separate DHCPv6 options from DHCPv4 optionsSusant Sahani2019-07-101-0/+5
| | | | | | | | | | | | Closes https://github.com/systemd/systemd/issues/12917
* | | test-network: add test for Xfrm netdevYu Watanabe2019-07-115-3/+48
| | |
* | | test-network: add test for AssignToLoopback= settingYu Watanabe2019-07-112-0/+17
| | |
* | | network: add AssignToLoopback= setting to [Tunnel] sectionYu Watanabe2019-07-111-0/+1
| | | | | | | | | | | | | | | networkd does not manage loopback interface lo. So, previously, we have no way to assign tunnel devices to lo.
* | | Merge pull request #12863 from 1848/if_xfrmYu Watanabe2019-07-104-0/+16
|\ \ \ | | | | | | | | Added support for xfrm interfaces
| * | | Added support for xfrm interfaces18482019-07-104-0/+16
| |/ /
* / / network: fix memleakYu Watanabe2019-07-101-0/+2
|/ / | | | | | | | | | | set_put() does not return -EEXIST. Fixes #12995 and oss-fuzz#15678.
* | test/udev-test.pl: cleanup if skipping testDan Streetman2019-07-091-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Ubuntu CI, udev-test.pl is run from the debian/test/udev script, in a test dir created for it; but udev-test.pl setup mounts a dir, so if it doesn't cleanup/unmount before exiting, the test dir autopkgtest created for it can't be removed, and autopkgtest aborts the entire test suite, for example this output (from a test run inside an armhf container): autopkgtest [12:45:36]: test udev: [----------------------- umount: test/tmpfs: no mount point specified. mknod: test/tmpfs/dev/null: Operation not permitted unable to create test/tmpfs/dev/null at ./udev-test.pl line 1611. Failed to set up the environment, skipping the test at ./udev-test.pl line 1731. autopkgtest [12:45:41]: test udev: -----------------------] autopkgtest [12:45:44]: test udev: - - - - - - - - - - results - - - - - - - - - - udev FAIL non-zero exit status 77 rm: cannot remove '/tmp/autopkgtest.ocPFA6/autopkgtest_tmp/test/tmpfs': Device or resource busy autopkgtest [12:46:22]: ERROR: "rm -rf /tmp/autopkgtest.ocPFA6/udev-artifacts /tmp/autopkgtest.ocPFA6/autopkgtest_tmp" failed with stderr "rm:
* | Merge pull request #12992 from mrc0mmand/test-functions-fixesEvgeny Vereshchagin2019-07-0931-30/+39
|\ \ | | | | | | Various test/test-functions fixes/improvements
| * | test: drop || return 1 expression which is incompatible with set -eFrantisek Sumsal2019-07-0830-30/+30
| | | | | | | | | | | | | | | | | | The `set -e` option is incompatible with a subshell/compound command, which is followed by || <EXPR>. In such case, the -e option is ignored in all affected subshells/functions (see man bash(1) for command `set`).
| * | test: be a little bit more verbose when installing service binariesFrantisek Sumsal2019-07-081-0/+1
| | |