From: Lennart Poettering Date: Sat, 31 Dec 2011 12:48:35 +0000 (+0100) Subject: test: rename test directory X-Git-Tag: v38~117 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e2c93666f2590614214a33027002b431ebafebc;p=systemd test: rename test directory --- diff --git a/src/test-engine.c b/src/test-engine.c index 60619b9d..46a2d2cd 100644 --- a/src/test-engine.c +++ b/src/test-engine.c @@ -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); diff --git a/test2/Makefile b/test/Makefile similarity index 100% rename from test2/Makefile rename to test/Makefile diff --git a/test2/a.service b/test/a.service similarity index 100% rename from test2/a.service rename to test/a.service diff --git a/test2/b.service b/test/b.service similarity index 100% rename from test2/b.service rename to test/b.service diff --git a/test2/c.service b/test/c.service similarity index 100% rename from test2/c.service rename to test/c.service diff --git a/test2/d.service b/test/d.service similarity index 100% rename from test2/d.service rename to test/d.service diff --git a/test2/e.service b/test/e.service similarity index 100% rename from test2/e.service rename to test/e.service diff --git a/test2/f.service b/test/f.service similarity index 100% rename from test2/f.service rename to test/f.service diff --git a/test2/g.service b/test/g.service similarity index 100% rename from test2/g.service rename to test/g.service diff --git a/test2/h.service b/test/h.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 index 264d9808..00000000 --- a/test1/default.target +++ /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 index 5802e376..00000000 --- a/test1/exec-demo.service +++ /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 index 51b19961..00000000 --- a/test1/fifo-demo.service +++ /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 index 75ce7a69..00000000 --- a/test1/fifo-demo.socket +++ /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 index bca89da2..00000000 --- a/test1/mail-transfer-agent.service +++ /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 index daf3277d..00000000 --- a/test1/mail-transfer-agent.socket +++ /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 index f105e3c2..00000000 --- a/test1/multiuser.target +++ /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 index 0ec1e358..00000000 --- a/test1/multiuser.target.wants/exec-demo.service +++ /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 index 4c3d621e..00000000 --- a/test1/multiuser.target.wants/fifo-demo.socket +++ /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 index 3c3a2db3..00000000 --- a/test1/multiuser.target.wants/mail-transfer-agent.socket +++ /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 index 98f3d5fa..00000000 --- a/test1/multiuser.target.wants/permissions.service +++ /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 index 4ce0a61a..00000000 --- a/test1/multiuser.target.wants/systemd-logger.socket +++ /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 index cb0664fa..00000000 --- a/test1/permissions.service +++ /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 index fbf39ecb..00000000 --- a/test1/postfix.service +++ /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 index 9d650a15..00000000 --- a/test1/postfix.socket +++ /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 index 8fe47aed..00000000 --- a/test1/syslog.service +++ /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 index f2d3297a..00000000 --- a/test1/syslog.socket +++ /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 index c406d26f..00000000 --- a/test1/systemd-logger.service +++ /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 index eb012c8d..00000000 --- a/test1/systemd-logger.socket +++ /dev/null @@ -1,5 +0,0 @@ -[Meta] -Description=systemd Logging Socket - -[Socket] -ListenStream=@/org/freedesktop/systemd1/logger