]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-cgroup-util.c
test: Make testing work on systems without or old systemd
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Thu, 18 Jul 2013 06:30:06 +0000 (08:30 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Aug 2013 04:52:14 +0000 (00:52 -0400)
commit143bfdaf0b890fa7acadf02d1eafacaef1b696bd
tree5a640d40bc7489c5933aac824f2bf23ecd2818ff
parent67ccd1c4b821b142ccd7b4bb292d9947aea8c581
test: Make testing work on systems without or old systemd

* Introduce a macro to conditionally execute tests. This avoids
  skipping the entire test if some parts require systemd
* Skip the journal tests when no /etc/machine-id is present
* Change test-catalog to load the catalog from the source directory
  of systemd.
* /proc/PID/comm got introduced in v2.6.33 but travis is still
  using v2.6.32.
* Enable make check and make distcheck on the travis build
* Use -D"CATALOG_DIR=STR($(abs_top_srcdir)/catalog)" as a STRINGIY
  would result in the path '/home/ich/source/linux' to be expanded
  to '/home/ich/source/1' as linux is defined to 1.
13 files changed:
.travis.yml
Makefile.am
src/journal/test-catalog.c
src/journal/test-journal-interleaving.c
src/journal/test-journal-stream.c
src/journal/test-journal-verify.c
src/journal/test-journal.c
src/test/test-cgroup-util.c
src/test/test-helper.h [new file with mode: 0644]
src/test/test-id128.c
src/test/test-unit-file.c
src/test/test-unit-name.c
src/test/test-util.c