[systemd-devel] [PATCH v2] Added test for unit file state returned by unit_file_get_state and unit_file_get_list
Ken Sedgwick
ksedgwic at bonsai.com
Tue Oct 7 22:58:17 PDT 2014
Combined initial submission and subsequent fixes into a single patch.
Ken Sedgwick (1):
Added test for unit file state returned by unit_file_get_state and
unit_file_get_list. Made test-enabled units more basic, removing
superfluous fields. Cleaned up test path assignment code.
.gitignore | 1 +
Makefile.am | 44 ++++++-
src/test/test-enabled.c | 141 +++++++++++++++++++++
.../etc/systemd/system/masked.service | 1 +
.../etc/systemd/system/maskedstatic.service | 1 +
.../etc/systemd/system/some.target | 11 ++
.../system/some.target.wants/aliased.service | 1 +
.../system/some.target.wants/also_masked.service | 1 +
.../system/some.target.wants/another.service | 1 +
.../system/some.target.wants/different.service | 1 +
.../system/some.target.wants/masked.service | 1 +
.../some.target.wants/templating at four.service | 1 +
.../some.target.wants/templating at one.service | 1 +
.../some.target.wants/templating at three.service | 1 +
.../some.target.wants/templating at two.service | 1 +
.../run/systemd/system/maskedruntime.service | 1 +
.../run/systemd/system/maskedruntimestatic.service | 1 +
.../run/systemd/system/other.target | 14 ++
.../system/other.target.wants/runtime.service | 1 +
.../usr/lib/systemd/system/another.service | 9 ++
.../usr/lib/systemd/system/disabled.service | 9 ++
.../usr/lib/systemd/system/invalid.service | 1 +
.../usr/lib/systemd/system/masked.service | 9 ++
.../usr/lib/systemd/system/maskedruntime.service | 9 ++
.../lib/systemd/system/maskedruntimestatic.service | 6 +
.../usr/lib/systemd/system/maskedstatic.service | 6 +
.../usr/lib/systemd/system/runtime.service | 9 ++
.../usr/lib/systemd/system/static.service | 6 +
.../usr/lib/systemd/system/templating at .service | 9 ++
.../lib/systemd/system/templating at three.service | 9 ++
.../usr/lib/systemd/system/templating at two.service | 9 ++
.../usr/lib/systemd/system/unique.service | 9 ++
32 files changed, 322 insertions(+), 3 deletions(-)
create mode 100644 src/test/test-enabled.c
create mode 120000 test/test-enabled-root/etc/systemd/system/masked.service
create mode 120000
test/test-enabled-root/etc/systemd/system/maskedstatic.service
create mode 100644 test/test-enabled-root/etc/systemd/system/some.target
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/aliased.service
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/also_masked.service
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/another.service
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/different.service
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/masked.service
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/templating at four.service
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/templating at one.service
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/templating at three.service
create mode 120000
test/test-enabled-root/etc/systemd/system/some.target.wants/templating at two.service
create mode 120000
test/test-enabled-root/run/systemd/system/maskedruntime.service
create mode 120000
test/test-enabled-root/run/systemd/system/maskedruntimestatic.service
create mode 100644 test/test-enabled-root/run/systemd/system/other.target
create mode 120000
test/test-enabled-root/run/systemd/system/other.target.wants/runtime.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/another.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/disabled.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/invalid.service
create mode 100644 test/test-enabled-root/usr/lib/systemd/system/masked.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/maskedruntime.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/maskedruntimestatic.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/maskedstatic.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/runtime.service
create mode 100644 test/test-enabled-root/usr/lib/systemd/system/static.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/templating at .service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/templating at three.service
create mode 100644
test/test-enabled-root/usr/lib/systemd/system/templating at two.service
create mode 100644 test/test-enabled-root/usr/lib/systemd/system/unique.service
--
1.9.3
More information about the systemd-devel
mailing list