diff options
Diffstat (limited to 'test/utils')
-rwxr-xr-x | test/utils/catchsignal.sh | 26 | ||||
-rwxr-xr-x | test/utils/catchsignal2.sh | 66 | ||||
-rwxr-xr-x | test/utils/utils.sh | 12 |
3 files changed, 52 insertions, 52 deletions
diff --git a/test/utils/catchsignal.sh b/test/utils/catchsignal.sh index 117179143..cef00b2a5 100755 --- a/test/utils/catchsignal.sh +++ b/test/utils/catchsignal.sh | |||
@@ -4,20 +4,20 @@ | |||
4 | # License GPL v2 | 4 | # License GPL v2 |
5 | 5 | ||
6 | _term() { | 6 | _term() { |
7 | echo "Caught Signal" | 7 | echo "Caught Signal" |
8 | echo 1 | 8 | echo 1 |
9 | sleep 1 | 9 | sleep 1 |
10 | echo 2 | 10 | echo 2 |
11 | sleep 1 | 11 | sleep 1 |
12 | echo 3 | 12 | echo 3 |
13 | sleep 1 | 13 | sleep 1 |
14 | echo 4 | 14 | echo 4 |
15 | sleep 1 | 15 | sleep 1 |
16 | echo 5 | 16 | echo 5 |
17 | sleep 1 | 17 | sleep 1 |
18 | 18 | ||
19 | kill $pid | 19 | kill $pid |
20 | exit | 20 | exit |
21 | } | 21 | } |
22 | 22 | ||
23 | trap _term SIGTERM | 23 | trap _term SIGTERM |
diff --git a/test/utils/catchsignal2.sh b/test/utils/catchsignal2.sh index 1bd7852cd..21f299430 100755 --- a/test/utils/catchsignal2.sh +++ b/test/utils/catchsignal2.sh | |||
@@ -4,42 +4,42 @@ | |||
4 | # License GPL v2 | 4 | # License GPL v2 |
5 | 5 | ||
6 | _term() { | 6 | _term() { |
7 | echo "Caught Signal" | 7 | echo "Caught Signal" |
8 | echo 1 | 8 | echo 1 |
9 | sleep 1 | 9 | sleep 1 |
10 | echo 2 | 10 | echo 2 |
11 | sleep 1 | 11 | sleep 1 |
12 | echo 3 | 12 | echo 3 |
13 | sleep 1 | 13 | sleep 1 |
14 | echo 4 | 14 | echo 4 |
15 | sleep 1 | 15 | sleep 1 |
16 | echo 5 | 16 | echo 5 |
17 | sleep 1 | 17 | sleep 1 |
18 | 18 | ||
19 | echo 10 | 19 | echo 10 |
20 | sleep 1 | 20 | sleep 1 |
21 | echo 20 | 21 | echo 20 |
22 | sleep 1 | 22 | sleep 1 |
23 | echo 30 | 23 | echo 30 |
24 | sleep 1 | 24 | sleep 1 |
25 | echo 40 | 25 | echo 40 |
26 | sleep 1 | 26 | sleep 1 |
27 | echo 50 | 27 | echo 50 |
28 | sleep 1 | 28 | sleep 1 |
29 | 29 | ||
30 | echo 100 | 30 | echo 100 |
31 | sleep 1 | 31 | sleep 1 |
32 | echo 200 | 32 | echo 200 |
33 | sleep 1 | 33 | sleep 1 |
34 | echo 300 | 34 | echo 300 |
35 | sleep 1 | 35 | sleep 1 |
36 | echo 400 | 36 | echo 400 |
37 | sleep 1 | 37 | sleep 1 |
38 | echo 500 | 38 | echo 500 |
39 | sleep 1 | 39 | sleep 1 |
40 | 40 | ||
41 | kill $pid | 41 | kill $pid |
42 | exit | 42 | exit |
43 | } | 43 | } |
44 | 44 | ||
45 | trap _term SIGTERM | 45 | trap _term SIGTERM |
diff --git a/test/utils/utils.sh b/test/utils/utils.sh index ad36d7053..d1d006f4f 100755 --- a/test/utils/utils.sh +++ b/test/utils/utils.sh | |||
@@ -35,10 +35,10 @@ echo "TESTING: help (test/utils/help.exp)" | |||
35 | 35 | ||
36 | if command -v man | 36 | if command -v man |
37 | then | 37 | then |
38 | echo "TESTING: man (test/utils/man.exp)" | 38 | echo "TESTING: man (test/utils/man.exp)" |
39 | ./man.exp | 39 | ./man.exp |
40 | else | 40 | else |
41 | echo "TESTING SKIP: man not found" | 41 | echo "TESTING SKIP: man not found" |
42 | fi | 42 | fi |
43 | 43 | ||
44 | echo "TESTING: list (test/utils/list.exp)" | 44 | echo "TESTING: list (test/utils/list.exp)" |
@@ -49,10 +49,10 @@ echo "TESTING: tree (test/utils/tree.exp)" | |||
49 | 49 | ||
50 | if [ $(grep -c ^processor /proc/cpuinfo) -gt 1 ]; | 50 | if [ $(grep -c ^processor /proc/cpuinfo) -gt 1 ]; |
51 | then | 51 | then |
52 | echo "TESTING: cpu.print (test/utils/cpu-print.exp)" | 52 | echo "TESTING: cpu.print (test/utils/cpu-print.exp)" |
53 | ./cpu-print.exp | 53 | ./cpu-print.exp |
54 | else | 54 | else |
55 | echo "TESTING SKIP: cpu.print, not enough CPUs" | 55 | echo "TESTING SKIP: cpu.print, not enough CPUs" |
56 | fi | 56 | fi |
57 | 57 | ||
58 | echo "TESTING: fs.print (test/utils/fs-print.exp)" | 58 | echo "TESTING: fs.print (test/utils/fs-print.exp)" |