summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2015-01-20test: Use configured PythonMartin Pitt2-4/+3
Don't hardcode "python" or /usr/bin/python, but use the configured $(PYTHON).
2015-01-20test/rule-syntax-check.py: Fix for Python 3Martin Pitt1-3/+3
Make this work with both Python 2 and 3.
2014-12-11test-execute: add tests for UMask directiveRonny Chevalier2-0/+13
2014-12-11tests: udev - assume /etc/machine-id rather than /etc/hostsTom Gundersen1-2/+2
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 Synacek1-0/+8
2014-11-26bus-policy: also add in other bus policy tests from dbus1Lennart Poettering2-0/+81
dbus1 only checks if these files parse correctly so let's do the same for now.
2014-11-26bus-policy: steal a test case for prefix ownership from dbus1, and make sure ↵Lennart Poettering1-0/+14
it passes with the bus proxy enforcement
2014-11-26test: add test for crash when adding a JOB_NOPMichal Schmidt1-0/+9
2014-11-13tests: add test-executeRonny Chevalier22-97/+106
add tests for the following directives: - WorkingDirectory - Personality - IgnoreSIGPIPE - PrivateTmp - SystemCallFilter: It makes test/TEST-04-SECCOMP obsolete, so it has been removed. - SystemCallErrorNumber - User - Group - Environment
2014-11-08tests: add test-pathRonny Chevalier15-0/+77
It tests all available directives of Path units: - PathChanged - PathModified - PathExists - PathExisysGlob - DirectoryNotEmpty - MakeDirectory - DirectoryMode - Unit
2014-10-07bus-proxyd: assorted cleanups and fixesDaniel Mack1-1/+1
Just some cleanups around policy checks that came up during review. The code is still not productive.
2014-09-24bus-policy: split API for bus-proxydDaniel Mack1-0/+2
Instead of operating on an sd_bus_message object, expose an API that has 4 functions: policy_check_own() policy_check_hello() policy_check_recv() policy_check_send() This also allows dropping extra code to parse message contents - the bus proxy already has dedicated code paths for that, and we can hook into those later. Tests amended accordingly.
2014-09-20bus-policy: add test utilityDaniel Mack4-0/+68
Add some test files and routines for dbus policy checking.
2014-09-20test: udev - restrict nemuric uid's to existing onesTom Gundersen1-31/+31
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.
2014-08-07core: warn when merged units have conflicting dependenciesZbigniew Jędrzejewski-Szmek2-0/+6
A unit should not Conflict with itself. It also does not make much sense for a unit to be After or Before itself, or to trigger itself in some way. If one of those dependency types is encountered, warn, instead of dropping it silently like other dependency types. % build/systemd-analyze verify test/loopy3.service ... Dependency Conflicts dropped when merging unit loopy4.service into loopy3.service Dependency ConflictedBy dropped when merging unit loopy4.service into loopy3.service
2014-08-07core: do not add dependencies to selfZbigniew Jędrzejewski-Szmek3-0/+8
Adds a pair of files which cause a segfault (also with systemd-analyze verify). https://bugzilla.redhat.com/show_bug.cgi?id=1124843
2014-07-20test-engine: fix access to unit load pathZbigniew Jędrzejewski-Szmek6-0/+6
Also add a bit of debugging output to help diagnose problems, add missing units, and simplify cppflags. Move test-engine to normal tests from manual tests, it should now work without destroying the system.
2014-06-10tests: do not use systemctl status --failedRonny Chevalier2-2/+2
since v212 calling systemctl status without arguments will show a overall system state
2014-02-18test: add missing test unitsLennart Poettering2-0/+12
2014-02-14test: add basic seccomp testsRonny Chevalier7-0/+122
2014-02-14test: print the important commands to make debugging easierZbigniew Jędrzejewski-Szmek1-3/+5
2014-02-14test: make the image biggerZbigniew Jędrzejewski-Szmek1-3/+3
I got some errors about lack of disk space... 100MB either way shouldn't matter.
2013-12-10test: wrap $LOOPDEV in quotesZbigniew Jędrzejewski-Szmek1-5/+5
Otherwise things go awry if it is not set ('[ -b ]' is not the same as '[ -b "" ]'!).
2013-12-10test: rework run_qemuRonny Chevalier5-30/+78
It tries to find a suitable QEMU binary and will use KVM if present. We can now configure QEMU from outside with 4 variables : - $QEMU_BIN : path to QEMU's binary - $KERNEL_APPEND : arguments appended to kernel cmdline - $KERNEL_BIN : path to a kernel Default /boot/vmlinuz-$KERNEL_VER - $INITRD : path to an initramfs Default /boot/initramfs-${KERNEL_VER}.img - $QEMU_SMP : number of CPU simulated by QEMU. Default 1 (from Alexander Graf's script: http://www.spinics.net/lists/kvm/msg72389.html)
2013-12-10test: fix TEST-02-CRYPTSETUPRonny Chevalier1-0/+1
missing generate_module_dependencies call which prevents dm_mod and dm_crypt modules to be loaded
2013-11-22cgroups: Cache controller masks and optimize queues.David Strauss3-0/+20
2013-11-07test: remove duplicated codeRonny Chevalier4-527/+293
2013-09-17TEST-03-JOBS/test.sh: do not output the "failed" if it does not existHarald Hoyer1-4/+4
2013-09-17TEST-01-BASIC, TEST-02-CRYPTSETUP: fixed stripHarald Hoyer2-6/+6
also output more status about failed jobs
2013-08-14test: add licence header and switch to LGPLKay Sievers2-11/+23
Checked with and got OK from Martin.
2013-04-24test: make it easier to override kernel versionZbigniew Jędrzejewski-Szmek3-9/+3
2013-04-15Fix spelling errors using 'codespell' toolAnatol Pomozov1-1/+1
2013-02-23test: test irreversible jobsMichal Schmidt3-2/+21
2013-01-29test: some trivial fixes to test scriptsZbigniew Jędrzejewski-Szmek3-6/+6
- fix typo - use compiled systemd-nspawn - drop --capability=... from systemd-nspawn invocation, is is the default now - simplify sudo make invocations
2013-01-28update .gitignoreKay Sievers1-0/+2
2013-01-25test: add test for jobsMichal Schmidt6-0/+295
Add a test case for job merging with --ignore-dependencies. test.sh is copied from TEST-01-*, only lightly modified (this should be refactored better in the future). test-jobs.sh is the core of this test.
2013-01-25test: factor out testsuite.target, end.serviceMichal Schmidt4-20/+20
Tests can use the same testsuite.target. Add end.service to call poweroff instead of doing it from ExecStopPost where it may be skipped on failure of ExecStart.
2013-01-25test: use non-blocking systemctl calls in testsuite.serviceMichal Schmidt2-2/+2
"systemctl poweroff" called from testsuite.service will cause this unit itself to stop. To avoid deadlock, the call must not be synchronous.
2012-12-17licence: remove references to old FSF addressSami Kerola1-9/+9
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=57206
2012-11-15sched: Only setting CPUSchedulingPriority=rr doesn't workHolger Hans Peter Freyther5-0/+35
A service that only sets the scheduling policy to round-robin fails to be started. This is because the cpu_sched_priority is initialized to 0 and is not adjusted when the policy is changed. Clamp the cpu_sched_priority when the scheduler policy is set. Use the current policy to validate the new priority. Change the manual page to state that the given range only applies to the real-time scheduling policies. Add a testcase that verifies this change: $ make test-sched-prio; ./test-sched-prio [test/sched_idle_bad.service:6] CPU scheduling priority is out of range, ignoring: 1 [test/sched_rr_bad.service:7] CPU scheduling priority is out of range, ignoring: 0 [test/sched_rr_bad.service:8] CPU scheduling priority is out of range, ignoring: 100
2012-11-12use the same email address everywhereKay Sievers1-1/+1
2012-10-09udev: fix rule-syntax-check.pyKay Sievers1-1/+1
2012-10-08udev: remove SYMLINK "unique" optionKay Sievers1-9/+0
2012-09-13test: split of cryptsetup into its own testLennart Poettering4-35/+269
2012-09-13man: fix a bunch of typos in docsThomas Hindoe Paaboel Andersen1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=54501
2012-07-15udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /runKay Sievers1-1/+1
2012-06-28nspawn: introduce new --capabilities= flag and make use of it in the nspawn ↵Lennart Poettering1-1/+1
test case
2012-06-28test: reenable nspawn, even if it fails for nowLennart Poettering1-2/+1
2012-05-29test/README.testsuite: add documentation for the testsuiteHarald Hoyer1-0/+35
2012-05-29test/TEST-01-BASIC: add /var on cryptoluks and wait for the journalHarald Hoyer2-40/+320