Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-04-05 | tests: don't rely on underlying fs in udev-test, use tmpfs instead | Evgeny Vereshchagin | |
Fixes: #457 | |||
2016-03-22 | Merge pull request #2880 from keszybz/more-tests | Daniel Mack | |
Add some simple tests for env_value_is_valid and env_assignment_is_valid | |||
2016-03-21 | test-env-util: test env_{value,assignment}_is_valid | Zbigniew Jędrzejewski-Szmek | |
Just to make sure everything works as expected in relation to https://bugzilla.redhat.com/show_bug.cgi?id=1312384. | |||
2016-03-21 | tests: rename test-env-replace to test-env-util | Zbigniew Jędrzejewski-Szmek | |
2016-03-21 | test-execute: fix execution of AmbientCapabilities tests | Ronny Chevalier | |
Wrong tests were executed | |||
2016-03-21 | test-copy: use correct data type for max_bytes | Martin Pitt | |
copy_bytes() and the comparisons in test_copy_bytes_regular_file() expect an uint64_t, not a size_t. On 32 bit architectures the latter is 32 bit, leading to truncation errors. Fixes regression from commit 7a827fcb. | |||
2016-03-21 | Merge pull request #2760 from ronnychevalier/rc/core_no_new_privileges_seccompv3 | Daniel Mack | |
core: set NoNewPrivileges for seccomp if we don't have CAP_SYS_ADMIN | |||
2016-03-15 | test-copy: test with different max_bytes values | Zbigniew Jędrzejewski-Szmek | |
2016-03-15 | test-copy: add a test shuffling bytes between normal files | Zbigniew Jędrzejewski-Szmek | |
I started looking into adding copy_file_range support, and discovered that we can improve the way we call sendfile: - sendfile(2) man page is missing an important bit: the number of bytes to copy cannot be too big (SSIZE_MAX actually), and the description of EINVAL return code does not mention this either, - our implementation works but calls sendfile over and over with a small size, which seems suboptimal. First add a test which (under strace) can be used to see current behaviour. | |||
2016-03-10 | test-ipcrm: fix log message | Lukas Nykryn | |
2016-03-09 | Merge pull request #2792 from ronnychevalier/rc/tests_movev2 | Zbigniew Jędrzejewski-Szmek | |
tests: move out unrelated tests from test-util to their own file | |||
2016-03-04 | test-selinux: use yes_no() and strnull() | Zbigniew Jędrzejewski-Szmek | |
2016-03-04 | test-libudev: disable monitor mode by default and add to automatic tests | Zbigniew Jędrzejewski-Szmek | |
2016-03-04 | test-libudev: modernization | Zbigniew Jędrzejewski-Szmek | |
2016-03-04 | Enable test-ipcrm, test-hostname in unsafe tests | Zbigniew Jędrzejewski-Szmek | |
2016-03-04 | Enable test-daemon, test-log, test-watchdog by default | Zbigniew Jędrzejewski-Szmek | |
Those should be safe to run, resulting in some messages in logs. | |||
2016-03-04 | shared/acpi-fpdt: use ENODATA for missing data and skip test | Zbigniew Jędrzejewski-Szmek | |
This data is simply missing on non-UEFI systems, and it is useful to distinguish that from corrupted data. | |||
2016-03-04 | Rename test-boot-timestamp to test-boot-timestamps and enable by default | Zbigniew Jędrzejewski-Szmek | |
The source file name and the binary name were mismatched. Rename binary to match. Make the test exit with TEST_SKIP if the data is missing or we have no permissions. Otherwise, the data will be printed, which should be safe to enable by default. | |||
2016-03-04 | Move test-loopback to normal tests | Zbigniew Jędrzejewski-Szmek | |
In the normal case lo should be already configured and this should be a noop, even when run under root. | |||
2016-03-03 | test-util: remove now unused includes | Ronny Chevalier | |
2016-03-03 | tests: move xattr-util related tests to test-xattr-util.c | Ronny Chevalier | |
2016-03-03 | tests: move glob-util related tests to test-glob-util.c | Ronny Chevalier | |
2016-03-03 | tests: move io-util related tests to test-io-util | Ronny Chevalier | |
2016-03-03 | tests: move proc-cmdline related tests to test-proc-cmdline.c | Ronny Chevalier | |
2016-03-03 | tests: move fstab-util related tests to test-fstab-util.c | Ronny Chevalier | |
2016-03-03 | tests: move fs-util related tests to test-fs-util.c | Ronny Chevalier | |
2016-03-03 | tests: move conf-parser related tests to test-conf-parser.c | Ronny Chevalier | |
2016-03-03 | tests: move fd-util related tests to test-fd-util.c | Ronny Chevalier | |
2016-03-03 | tests: move user-util related tests to test-user-util.c | Ronny Chevalier | |
2016-03-03 | tests: move path-util related tests to test-path-util.c | Ronny Chevalier | |
2016-03-03 | tests: move fileio related tests to test-fileio.c | Ronny Chevalier | |
2016-03-03 | tests: move stat-util related tests to test-stat-util.c | Ronny Chevalier | |
2016-03-03 | tests: move signal-util related tests to test-signal-util.c | Ronny Chevalier | |
2016-03-03 | tests: move cpu-set-util related tests to test-cpu-set-util.c | Ronny Chevalier | |
2016-03-03 | tests: move web-util related tests to test-web-util.c | Ronny Chevalier | |
2016-03-03 | tests: move alloc related tests to test-alloc-util.c | Ronny Chevalier | |
2016-03-03 | tests: move escape related tests to test-escape.c | Ronny Chevalier | |
2016-03-03 | tests: move strv related tests to test-strv.c | Ronny Chevalier | |
2016-03-03 | tests: move string related tests to test-string-util.c | Ronny Chevalier | |
2016-03-03 | tests: move hexdecoct tests to test-hexdecoct.c | Ronny Chevalier | |
2016-03-02 | test-sizeof: add a helper which prints variable sizes and signedness | Zbigniew Jędrzejewski-Szmek | |
This helps to understand misleading gcc warnings about type mismatches. | |||
2016-03-02 | test-selinux: add some simple tests which call functions and print the ↵ | Zbigniew Jędrzejewski-Szmek | |
results and timings | |||
2016-03-01 | selinux: always try to load the full selinux db | Zbigniew Jędrzejewski-Szmek | |
https://github.com/systemd/systemd/pull/2508#issuecomment-190901170 Maybe fixes https://bugzilla.redhat.com/show_bug.cgi?id=1308771. | |||
2016-02-29 | test-clock: fix FILE* leak | Martin Pitt | |
Close the FILE* instead of the underlying fd. | |||
2016-02-29 | test-clock: fix assertions | Martin Pitt | |
Use assert_se() to ensure that they don't get optimized away. | |||
2016-02-29 | test-clock: fix fd "leak" | Zbigniew Jędrzejewski-Szmek | |
CID #1352301. | |||
2016-02-28 | test-execute: add nfsnobody alternative as a nobody user | Ronny Chevalier | |
2016-02-28 | core: set NoNewPrivileges for seccomp if we don't have CAP_SYS_ADMIN | Ronny Chevalier | |
The manpage of seccomp specify that using seccomp with SECCOMP_SET_MODE_FILTER will return EACCES if the caller do not have CAP_SYS_ADMIN set, or if the no_new_privileges bit is not set. Hence, without NoNewPrivilege set, it is impossible to use a SystemCall* directive with a User directive set in system mode. Now, NoNewPrivileges is set if we are in user mode, or if we are in system mode and we don't have CAP_SYS_ADMIN, and SystemCall* directives are used. | |||
2016-02-26 | clock-util: be more tolerant in parsing /etc/adjtime | Martin Pitt | |
As we default to "hardware clock is in UTC" if /etc/adjtime is not present, it also makes sense to have that default if /etc/adjtime contains only one or two lines. Drop the "gibberish" test case, as this was just EIO because of not containing three lines, which is already contained in other tests. clock_is_localtime() never actually validated the format of the first two lines, and there is little point in doing that. This addresses the reading half of issue #2638. | |||
2016-02-26 | clock-util: make clock_is_localtime() testable and add initial tests | Martin Pitt | |
Add path argument to clock_is_localtime() and default to "/etc/adjtime" if it's NULL. This makes the function testable. Add test-clock: initial test cases for some scenarios, using a temporary file. This also checks the behaviour with a NULL (i. e. the system's /etc/adjtime) file. |