summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* boot: efi - remove custom splash supportKay Sievers2015-02-261-2/+1
|
* boot: efi - support embedded splash imageKay Sievers2015-02-261-1/+2
|
* boot: efi - remove default boot splash handlingKay Sievers2015-02-261-3/+3
|
* sysv-generator: fix wrong "Overwriting existing symlink" warningsMartin Pitt2015-02-191-0/+7
| | | | | | | | Fix result testing of is_symlink() to ignore negative results, which happen if the file name does not exist at all. In this case we do not want a warning and unlink the non-existing link. https://bugs.debian.org/778700
* systemd-sysv-generator test: Adjust to dropped runlevelN.target mappingMartin Pitt2015-02-191-14/+14
| | | | | Commit d5d8429a dropped the explicit runlevelN.target mapping. Adjust the tests accordingly to explicitly state the expected targets instead of runlevels.
* Add mock fsck processDidier Roche2015-02-181-0/+27
|
* gummiboot/sd-boot/systemd-boot: rename galoreTom Gundersen2015-02-181-1/+1
| | | | | | | | | | What used to be gummiboot, was renamed sd-boot when it was merged into systemd. Let's try to be a bit more consistent with the rest of systemd and rename it again as follows: The EFI bootloader is now called 'systemd-bootx64.efi', and its sources are in 'src/boot/efi/'. The drop-in directory where bootctl will find EFI loaders is now /usr/lib/systemd/boot/efi/.
* sd-boot: add EFI boot manager and stub loaderKay Sievers2015-02-172-0/+42
|
* sysv-generator: Skip init scripts for existing native servicesMartin Pitt2015-02-111-0/+12
| | | | | | | | | This avoids taking the SysV init script enablement state into account if we have native units. Otherwise systemctl disable on native unit would not be respected in the presence of an enabled SysV script. Also, there's no need to do all the parsing and creation of service files if we already have a native systemd unit for the processed SysV init script.
* test-functions: search for the initrd and kernel according to the BLSHarald Hoyer2015-02-031-0/+8
| | | | | Also search for the initrd and kernel according to the boot loader specification.
* test-functions: use sfdisk without cyl,head,sectorsHarald Hoyer2015-02-031-2/+2
| | | | newer sfdisk implementations do not work with these anymore
* test-functions:install_libnss() call dracut_install with all $NSS_LIBSHarald Hoyer2015-02-031-3/+1
| | | | dracut_install() can cope with more than one file
* tests: install ldconfig.real for Debian based distrosMartin Pitt2015-02-031-0/+2
| | | | | In Debian based distributions ldconfig is just a shell wrapper around ldconfig.real, for deferring it during package installation.
* tests: install hostname debug toolMartin Pitt2015-02-031-1/+1
| | | | | This is mostly a vehicle to pull in libnsl.so which gets dlopen()ed by NSS under certain NSS configurations.
* tests: install all required libnss modulesMartin Pitt2015-02-031-1/+4
| | | | | Don't assume "files" for everything in nsswitch. Instead, ask "getent passwd" about which libnss modules it dlopen()s, and install these.
* tests: don't hardcode systemctl pathMartin Pitt2015-02-032-2/+3
| | | | Get it from type -P instead, to support --enable-split-usr.
* tests: determine rootlibdir from pkg-configMartin Pitt2015-02-031-4/+9
| | | | | Prefer asking pkg-config for the rootlibdir, to also support systems with --enable-split-usr. Fall back to the hardcoded /usr/lib/systemd if that fails.
* tests: Make sushell optional in image creationMartin Pitt2015-02-031-1/+2
| | | | | sushell does not exist in all distributions, and it can be changed with configure --with-debug-shell, so make installation of it optional.
* Use eurlatgr as the example console fontMarko Myllynen2015-01-221-0/+1
| | | | | | See https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont https://bugzilla.redhat.com/show_bug.cgi?id=1182529
* sysv-generator: Replace Provides: symlinks with real unitsMartin Pitt2015-01-211-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit b7e7184 the SysV generator creates symlinks for all "Provides:" in the LSB header. However, this is too greedy; there are cases where the creation of a unit .service file fails because of an already existing symlink with the same name: - Backup files such as /etc/init.d/foo.bak still have "Provides: foo", and thus get a foo.service -> foo.bak.service link. foo.bak would not be enabled in rcN.d/, but we (deliberately) create units for all executables in init.d/ so that a manual "systemctl start" works. If foo.bak is processed before, the symlink already exists. - init.d/bar has "Provides: foo", while there also is a real init.d/foo. The former would create a link foo.service -> bar.service, while the latter would fail to create the real foo.service. If we encounter an existing symlink, just remove it before writing a real unit. Note that two init.d scripts "foo" and "bar" which both provide the same name "common" already work. The first processed init script wins and creates the "common.service" symlink, and the second just fails to create the symlink again. Thus create an additional test case for this to ensure that it keeps working sensibly. https://bugs.debian.org/775404
* systemd-sysv-generator test: test scripts with hidden suffixesMartin Pitt2015-01-211-0/+14
| | | | | We don't expect any unit generated from temporary package manager, swap, and similar files.
* sysv-generator: Handle .sh suffixes when translating Provides:Martin Pitt2015-01-211-0/+36
| | | | | | | | | | | | | | | When deciding whether the provided name equals the file name in sysv_translate_facility(), also consider them equal if the file name has a ".sh" suffix. This was uncovered by commit b7e7184 which then created a symlink "<name>.service" to itself for ".sh" suffixed init.d scripts. For additional robustness, refuse to create symlinks to itself in add_alias(). Add test case which reproduces the bug. https://bugs.debian.org/775889
* systemd-sysv-generator test: fix enabled checkMartin Pitt2015-01-211-2/+2
| | | | Fix hardcoded "foo.service", test for the actual unit parameter.
* systemd-sysv-generator test: don't parse symlinksMartin Pitt2015-01-211-2/+5
| | | | | Generated services which are symlinks should be tested/handled differently from files, so ignore them in run_generator()'s result parsing.
* test: add integration test for systemd-sysv-generatorMartin Pitt2015-01-211-0/+280
| | | | | This covers the general functionality as well as regression tests for recent fixes like commits b7e718 and 1ed0c19.
* test: eliminate shell wrapper for Python testMartin Pitt2015-01-201-26/+0
| | | | | | | | | | Use the parallel test runner's TEST_EXTENSIONS/*_LOG_COMPILER feature (https://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html) to run *.py tests through $(PYTHON), and only if we have python available/enabled. This eliminates the need of having shell wrappers, thus drop test/rules-test.sh.
* test: simplify rules-test.sh wrapperMartin Pitt2015-01-202-7/+15
| | | | | | | | | Drop globbing of rules/*.rules in the rules-test.sh wrapper and move that logic into the actual test rule-syntax-check.py. This can still be called with individual rules files, but when being called without arguments it will now process all top_builddir/rules/*.rules. Preparation for dropping the shell wrappers altogether.
* test: Use configured PythonMartin Pitt2015-01-202-4/+3
| | | | Don't hardcode "python" or /usr/bin/python, but use the configured $(PYTHON).
* test/rule-syntax-check.py: Fix for Python 3Martin Pitt2015-01-201-3/+3
| | | | Make this work with both Python 2 and 3.
* test-execute: add tests for UMask directiveRonny Chevalier2014-12-112-0/+13
|
* tests: udev - assume /etc/machine-id rather than /etc/hostsTom Gundersen2014-12-111-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.
* test: fix some tests when running inside a containerJan Synacek2014-12-101-0/+8
|
* bus-policy: also add in other bus policy tests from dbus1Lennart Poettering2014-11-262-0/+81
| | | | dbus1 only checks if these files parse correctly so let's do the same for now.
* bus-policy: steal a test case for prefix ownership from dbus1, and make sure ↵Lennart Poettering2014-11-261-0/+14
| | | | it passes with the bus proxy enforcement
* test: add test for crash when adding a JOB_NOPMichal Schmidt2014-11-261-0/+9
|
* tests: add test-executeRonny Chevalier2014-11-1322-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
* tests: add test-pathRonny Chevalier2014-11-0815-0/+77
| | | | | | | | | | | | It tests all available directives of Path units: - PathChanged - PathModified - PathExists - PathExisysGlob - DirectoryNotEmpty - MakeDirectory - DirectoryMode - Unit
* bus-proxyd: assorted cleanups and fixesDaniel Mack2014-10-071-1/+1
| | | | | Just some cleanups around policy checks that came up during review. The code is still not productive.
* bus-policy: split API for bus-proxydDaniel Mack2014-09-241-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.
* bus-policy: add test utilityDaniel Mack2014-09-204-0/+68
| | | | Add some test files and routines for dbus policy checking.
* test: udev - restrict nemuric uid's to existing onesTom Gundersen2014-09-201-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.
* core: warn when merged units have conflicting dependenciesZbigniew Jędrzejewski-Szmek2014-08-082-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
* core: do not add dependencies to selfZbigniew Jędrzejewski-Szmek2014-08-083-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
* test-engine: fix access to unit load pathZbigniew Jędrzejewski-Szmek2014-07-216-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.
* tests: do not use systemctl status --failedRonny Chevalier2014-06-102-2/+2
| | | | | since v212 calling systemctl status without arguments will show a overall system state
* test: add missing test unitsLennart Poettering2014-02-182-0/+12
|
* test: add basic seccomp testsRonny Chevalier2014-02-157-0/+122
|
* test: print the important commands to make debugging easierZbigniew Jędrzejewski-Szmek2014-02-151-3/+5
|
* test: make the image biggerZbigniew Jędrzejewski-Szmek2014-02-151-3/+3
| | | | | I got some errors about lack of disk space... 100MB either way shouldn't matter.
* test: wrap $LOOPDEV in quotesZbigniew Jędrzejewski-Szmek2013-12-101-5/+5
| | | | Otherwise things go awry if it is not set ('[ -b ]' is not the same as '[ -b "" ]'!).