]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-path: move all related test files to a specific directory 1736/head
authorRonny Chevalier <chevalier.ronny@gmail.com>
Fri, 30 Oct 2015 17:12:31 +0000 (18:12 +0100)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Sat, 31 Oct 2015 14:07:19 +0000 (15:07 +0100)
To avoid polluting test/

21 files changed:
Makefile.am
src/test/test-path.c
test/paths.target [deleted symlink]
test/test-path/basic.target [new symlink]
test/test-path/path-changed.path [moved from test/path-changed.path with 100% similarity]
test/test-path/path-changed.service [moved from test/path-changed.service with 100% similarity]
test/test-path/path-directorynotempty.path [moved from test/path-directorynotempty.path with 100% similarity]
test/test-path/path-directorynotempty.service [moved from test/path-directorynotempty.service with 100% similarity]
test/test-path/path-exists.path [moved from test/path-exists.path with 100% similarity]
test/test-path/path-exists.service [moved from test/path-exists.service with 100% similarity]
test/test-path/path-existsglob.path [moved from test/path-existsglob.path with 100% similarity]
test/test-path/path-existsglob.service [moved from test/path-existsglob.service with 100% similarity]
test/test-path/path-makedirectory.path [moved from test/path-makedirectory.path with 100% similarity]
test/test-path/path-makedirectory.service [moved from test/path-makedirectory.service with 100% similarity]
test/test-path/path-modified.path [moved from test/path-modified.path with 100% similarity]
test/test-path/path-modified.service [moved from test/path-modified.service with 100% similarity]
test/test-path/path-mycustomunit.service [moved from test/path-mycustomunit.service with 100% similarity]
test/test-path/path-service.service [moved from test/path-service.service with 100% similarity]
test/test-path/path-unit.path [moved from test/path-unit.path with 100% similarity]
test/test-path/paths.target [new symlink]
test/test-path/sysinit.target [new symlink]

index 4319c2fdb7a504d067dd3daa648e0a2466d75ebd..be001bd09ec1928afd5989baa9a396f6f414a45e 100644 (file)
@@ -1515,7 +1515,6 @@ EXTRA_DIST += \
        test/h.service \
        test/parent-deep.slice \
        test/parent.slice \
-       test/paths.target \
        test/sched_idle_bad.service \
        test/sched_idle_ok.service \
        test/sched_rr_bad.service \
@@ -1529,21 +1528,24 @@ EXTRA_DIST += \
        test/testsuite.target \
        test/timers.target \
        test/unstoppable.service \
-       test/path-changed.service \
-       test/path-directorynotempty.service \
-       test/path-existsglob.service \
-       test/path-exists.service \
-       test/path-makedirectory.service \
-       test/path-modified.service \
-       test/path-mycustomunit.service \
-       test/path-service.service \
-       test/path-changed.path \
-       test/path-directorynotempty.path \
-       test/path-existsglob.path \
-       test/path-exists.path \
-       test/path-makedirectory.path \
-       test/path-modified.path \
-       test/path-unit.path \
+       test/test-path/paths.target \
+       test/test-path/basic.target \
+       test/test-path/sysinit.target \
+       test/test-path/path-changed.service \
+       test/test-path/path-directorynotempty.service \
+       test/test-path/path-existsglob.service \
+       test/test-path/path-exists.service \
+       test/test-path/path-makedirectory.service \
+       test/test-path/path-modified.service \
+       test/test-path/path-mycustomunit.service \
+       test/test-path/path-service.service \
+       test/test-path/path-changed.path \
+       test/test-path/path-directorynotempty.path \
+       test/test-path/path-existsglob.path \
+       test/test-path/path-exists.path \
+       test/test-path/path-makedirectory.path \
+       test/test-path/path-modified.path \
+       test/test-path/path-unit.path \
        test/test-execute/exec-environment-empty.service \
        test/test-execute/exec-environment-multiple.service \
        test/test-execute/exec-environment.service \
index ff0f044958b29ed12369999f38b21c0e170fa40f..8302bdd28302a0f0e4525fe933d73f15e5a1afeb 100644 (file)
@@ -258,7 +258,7 @@ int main(int argc, char *argv[]) {
         log_parse_environment();
         log_open();
 
-        assert_se(set_unit_path(TEST_DIR) >= 0);
+        assert_se(set_unit_path(TEST_DIR "/test-path/") >= 0);
 
         for (test = tests; test && *test; test++) {
                 int r;
diff --git a/test/paths.target b/test/paths.target
deleted file mode 120000 (symlink)
index e9939c9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../units/paths.target
\ No newline at end of file
diff --git a/test/test-path/basic.target b/test/test-path/basic.target
new file mode 120000 (symlink)
index 0000000..a882b72
--- /dev/null
@@ -0,0 +1 @@
+../../units/basic.target
\ No newline at end of file
diff --git a/test/test-path/paths.target b/test/test-path/paths.target
new file mode 120000 (symlink)
index 0000000..b402796
--- /dev/null
@@ -0,0 +1 @@
+../../units/paths.target
\ No newline at end of file
diff --git a/test/test-path/sysinit.target b/test/test-path/sysinit.target
new file mode 120000 (symlink)
index 0000000..9d10e5b
--- /dev/null
@@ -0,0 +1 @@
+../../units/sysinit.target
\ No newline at end of file