summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
AgeCommit message (Collapse)Author
2016-07-31Merge pull request 3821 from davide125/fix-testsZbigniew Jędrzejewski-Szmek
2016-07-29tests: skip udev-test if running inside a chrootDavide Cavalca
2016-04-06test: udev: Check tagsMartin Pitt
Add two more tests: - Add a single tag, match on it, don't match on another. - Add 10.000 tags to a device, ensure that udev survives this. (Reproduces crash fixed by commit 1d88a271a)
2016-04-06test: udev: check exit code of test-udevMartin Pitt
We expect test-udev to succeed. Verify that its exit code is zero, particularly to spot crashes (e. g. a segfault would be error code 139).
2016-04-06tests: don't rely on the underlying fs in test-udev (v2)Evgeny Vereshchagin
* This reverts commit 646048b40a7b62c4e9bc59024ef6133613cda01b. Let's test really big numbers again * Don't be so brutal: use rmdir instead of rm -rf As suggested https://github.com/systemd/systemd/pull/2966#issuecomment-205751680
2016-04-05tests: don't rely on underlying fs in udev-test, use tmpfs insteadEvgeny Vereshchagin
Fixes: #457
2016-02-22udev-test.pl: add --strace optionZbigniew Jędrzejewski-Szmek
It's useful when trying to see what the tests are doing. I hardcoded '-efile' as the option to strace, but in the future it might be useful to make this configurable.
2016-02-08tests: fix #457Evgeny Vereshchagin
There are some limits on XFS: major_max=511 minor_max=262143 see https://github.com/torvalds/linux/blob/master/fs/xfs/xfs_iops.c if (S_ISCHR(mode) || S_ISBLK(mode)) { if (unlikely(!sysv_valid_dev(rdev) || MAJOR(rdev) & ~0x1ff)) return -EINVAL;
2015-08-30test: udev - Signal that test was skipped when running as non-rootFilipe Brandenburger
It is more accurate to report that the test was skipped rather than succeeded if we did not get to run it because it requires root. Tested by running `make check` and inspecting the log file: $ cat test/udev-test.pl.log Must have root permissions to run properly. SKIP test/udev-test.pl (exit status: 77) The `make check` output also reported: SKIP: test/udev-test.pl
2015-04-03test: udev, valgrind - track origins of uninitiaziled memoryTom Gundersen
2015-03-27test: udev - add gdb supportTom Gundersen
2014-12-11tests: udev - assume /etc/machine-id rather than /etc/hostsTom Gundersen
On todays machines /etc/hosts is not mandatory. /etc/machine-id is though, so let's rely on that instead. This makes the udev tests pass again for me.
2014-12-10test: fix some tests when running inside a containerJan Synacek
2014-09-20test: udev - restrict nemuric uid's to existing onesTom Gundersen
We now verify the existence of uid's before applying them to devicenodes, so change the test accordingly. We assume that both uid/gid 1 and 2 exist on the test system.
2013-04-15Fix spelling errors using 'codespell' toolAnatol Pomozov
2012-11-12use the same email address everywhereKay Sievers
2012-10-08udev: remove SYMLINK "unique" optionKay Sievers
2012-07-15udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /runKay Sievers
2012-04-16udev: remove configuration options for /dev, /sys, /run directoriesKay Sievers
2012-04-14udev: test - move test/ and src/test/Kay Sievers