File: test67

package info (click to toggle)
daemon 0.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,072 kB
  • sloc: ansic: 30,432; sh: 4,310; perl: 592; makefile: 307
file content (48 lines) | stat: -rwxr-xr-x 1,315 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

opts="--debug=0"

echo Start test67
../daemon $opts -C "`pwd`/daemon.conf" -n test67 "`pwd`/test3.client"

sleep 4
echo "daemon --running (burst 1) (client should be running)"
../daemon $opts --name=test67 --verbose --running
echo "daemon --signal term"
../daemon $opts --name=test67 --signal term
echo

sleep 4
echo "daemon --running (burst 1) (client should be running)"
../daemon $opts --name=test67 --verbose --running
echo "daemon --signal term"
../daemon $opts --name=test67 --signal term
echo

sleep 5
echo "daemon --running during delay between bursts (client should not be running)"
../daemon $opts --name=test67 --verbose --running
echo
echo "daemon --signal term (should fail since client is not running during delay)"
../daemon $opts --name=test67 --signal term
echo

sleep 9
echo "daemon --running (burst 2) (client should be running)"
../daemon $opts --name=test67 --verbose --running
echo "daemon --signal term"
../daemon $opts --name=test67 --signal term
echo

sleep 4
echo "daemon --running (burst 2) (client should be running)"
../daemon $opts --name=test67 --verbose --running
echo "daemon --signal term"
../daemon $opts --name=test67 --signal term
echo

sleep 4
echo "daemon --running after exit (should not be running at all)"
../daemon $opts --name=test67 --verbose --running
echo