chiark / gitweb /
test: rename test directory
authorLennart Poettering <lennart@poettering.net>
Sat, 31 Dec 2011 12:48:35 +0000 (13:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 31 Dec 2011 17:06:56 +0000 (18:06 +0100)
29 files changed:
src/test-engine.c
test/Makefile [moved from test2/Makefile with 100% similarity]
test/a.service [moved from test2/a.service with 100% similarity]
test/b.service [moved from test2/b.service with 100% similarity]
test/c.service [moved from test2/c.service with 100% similarity]
test/d.service [moved from test2/d.service with 100% similarity]
test/e.service [moved from test2/e.service with 100% similarity]
test/f.service [moved from test2/f.service with 100% similarity]
test/g.service [moved from test2/g.service with 100% similarity]
test/h.service [moved from test2/h.service with 100% similarity]
test1/default.target [deleted symlink]
test1/exec-demo.service [deleted file]
test1/fifo-demo.service [deleted file]
test1/fifo-demo.socket [deleted file]
test1/mail-transfer-agent.service [deleted symlink]
test1/mail-transfer-agent.socket [deleted symlink]
test1/multiuser.target [deleted file]
test1/multiuser.target.wants/exec-demo.service [deleted symlink]
test1/multiuser.target.wants/fifo-demo.socket [deleted symlink]
test1/multiuser.target.wants/mail-transfer-agent.socket [deleted symlink]
test1/multiuser.target.wants/permissions.service [deleted symlink]
test1/multiuser.target.wants/systemd-logger.socket [deleted symlink]
test1/permissions.service [deleted file]
test1/postfix.service [deleted file]
test1/postfix.socket [deleted file]
test1/syslog.service [deleted file]
test1/syslog.socket [deleted file]
test1/systemd-logger.service [deleted file]
test1/systemd-logger.socket [deleted file]

index 60619b9..46a2d2c 100644 (file)
@@ -31,7 +31,7 @@ int main(int argc, char *argv[]) {
         Unit *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL, *g = NULL, *h = NULL;
         Job *j;
 
-        assert_se(set_unit_path("test2") >= 0);
+        assert_se(set_unit_path("test") >= 0);
 
         assert_se(manager_new(MANAGER_SYSTEM, &m) >= 0);
 
similarity index 100%
rename from test2/Makefile
rename to test/Makefile
similarity index 100%
rename from test2/a.service
rename to test/a.service
similarity index 100%
rename from test2/b.service
rename to test/b.service
similarity index 100%
rename from test2/c.service
rename to test/c.service
similarity index 100%
rename from test2/d.service
rename to test/d.service
similarity index 100%
rename from test2/e.service
rename to test/e.service
similarity index 100%
rename from test2/f.service
rename to test/f.service
similarity index 100%
rename from test2/g.service
rename to test/g.service
similarity index 100%
rename from test2/h.service
rename to test/h.service
diff --git a/test1/default.target b/test1/default.target
deleted file mode 120000 (symlink)
index 264d980..0000000
+++ /dev/null
@@ -1 +0,0 @@
-multiuser.target
\ No newline at end of file
diff --git a/test1/exec-demo.service b/test1/exec-demo.service
deleted file mode 100644 (file)
index 5802e37..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-[Meta]
-Description=Simple Execution Demo
-
-[Service]
-ExecStartPre=/bin/ps -eo pid,uid,args,cgroup
-ExecStartPre=/bin/cat /etc/hosts
-ExecStart=/bin/bash -c '/bin/sleep 5 &'
-Type=forking
-Output=syslog
diff --git a/test1/fifo-demo.service b/test1/fifo-demo.service
deleted file mode 100644 (file)
index 51b1996..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-[Meta]
-Description=FIFO Activation Demo Service
-
-[Service]
-ExecStartPre=/bin/echo "Wow, es geht los!"
-#ExecStart=/bin/bash -c 'read a <&3 ; echo "GOT: $a"'
-ExecStart=/bin/bash -c 'cat <&3'
-Type=simple
diff --git a/test1/fifo-demo.socket b/test1/fifo-demo.socket
deleted file mode 100644 (file)
index 75ce7a6..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-[Meta]
-Description=FIFO Activation Demo Socket
-
-[Socket]
-ListenFIFO=/tmp/systemd-fifo-demo
-ExecStartPost=/bin/echo "OK, we're ready, now write something to /tmp/systemd-fifo-demo"
diff --git a/test1/mail-transfer-agent.service b/test1/mail-transfer-agent.service
deleted file mode 120000 (symlink)
index bca89da..0000000
+++ /dev/null
@@ -1 +0,0 @@
-postfix.service
\ No newline at end of file
diff --git a/test1/mail-transfer-agent.socket b/test1/mail-transfer-agent.socket
deleted file mode 120000 (symlink)
index daf3277..0000000
+++ /dev/null
@@ -1 +0,0 @@
-postfix.socket
\ No newline at end of file
diff --git a/test1/multiuser.target b/test1/multiuser.target
deleted file mode 100644 (file)
index f105e3c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-[Meta]
-Description=Multi-User Target
diff --git a/test1/multiuser.target.wants/exec-demo.service b/test1/multiuser.target.wants/exec-demo.service
deleted file mode 120000 (symlink)
index 0ec1e35..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../exec-demo.service
\ No newline at end of file
diff --git a/test1/multiuser.target.wants/fifo-demo.socket b/test1/multiuser.target.wants/fifo-demo.socket
deleted file mode 120000 (symlink)
index 4c3d621..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../fifo-demo.socket
\ No newline at end of file
diff --git a/test1/multiuser.target.wants/mail-transfer-agent.socket b/test1/multiuser.target.wants/mail-transfer-agent.socket
deleted file mode 120000 (symlink)
index 3c3a2db..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../mail-transfer-agent.socket
\ No newline at end of file
diff --git a/test1/multiuser.target.wants/permissions.service b/test1/multiuser.target.wants/permissions.service
deleted file mode 120000 (symlink)
index 98f3d5f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../permissions.service
\ No newline at end of file
diff --git a/test1/multiuser.target.wants/systemd-logger.socket b/test1/multiuser.target.wants/systemd-logger.socket
deleted file mode 120000 (symlink)
index 4ce0a61..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../systemd-logger.socket
\ No newline at end of file
diff --git a/test1/permissions.service b/test1/permissions.service
deleted file mode 100644 (file)
index cb0664f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[Meta]
-Description=Permission Enforcement checker
-
-[Service]
-ExecStart=/usr/bin/id
-ExecStartPost=/usr/bin/env
-ExecStartPost=/bin/sleep 5
-Type=oneshot
-Capabilities=all= cap_dac_override=eip
-User=nobody
-Group=nobody
diff --git a/test1/postfix.service b/test1/postfix.service
deleted file mode 100644 (file)
index fbf39ec..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-[Meta]
-Names=mail-transfer-agent.service
-Description=Postfix Mail Server
-Requires=syslog.socket
-
-[Service]
-ExecStart=/usr/bin/postfix
diff --git a/test1/postfix.socket b/test1/postfix.socket
deleted file mode 100644 (file)
index 9d650a1..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[Meta]
-Description=Postfix SMTP Socket
-
-[Socket]
-ListenStream=53333
-ListenFIFO=/tmp/systemd-postfix-fifo
-ExecStartPre=/bin/echo "About to create sockets..."
-ExecStartPre=/bin/echo "About to create sockets... 2"
-ExecStartPost=/bin/echo "Created sockets..."
-ExecStopPre=/bin/echo "About to delete sockets..."
-ExecStopPost=/bin/echo "Deleted sockets..."
-ExecStopPost=/bin/echo "Deleted sockets... 2"
-#BindToDevice=eth0
diff --git a/test1/syslog.service b/test1/syslog.service
deleted file mode 100644 (file)
index 8fe47ae..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[Meta]
-Description=System Logging Daemon
-
-[Service]
-ExecStart=/usr/bin/rsyslogd --foobar 'waldo'
diff --git a/test1/syslog.socket b/test1/syslog.socket
deleted file mode 100644 (file)
index f2d3297..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-[Meta]
-Description=Syslog Socket
-
-[Socket]
-ListenDatagram=/tmp/foobar/waldo/systemd-syslog-socket
-ListenStream=eth0:3456
-DirectoryMode=0700
-SocketMode=0600
diff --git a/test1/systemd-logger.service b/test1/systemd-logger.service
deleted file mode 100644 (file)
index c406d26..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[Meta]
-Description=systemd Logging Daemon
-
-[Service]
-ExecStart=/home/lennart/projects/systemd/systemd-logger
-Type=simple
-TimerSlackNS=1000000
-OOMScoreAdjust=40
-LimitCORE=0
-LimitFSIZE=0
-LimitLOCKS=0
-LimitMEMLOCK=0
-LimitNOFILE=512
diff --git a/test1/systemd-logger.socket b/test1/systemd-logger.socket
deleted file mode 100644 (file)
index eb012c8..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[Meta]
-Description=systemd Logging Socket
-
-[Socket]
-ListenStream=@/org/freedesktop/systemd1/logger