Project:
lixa
Code Location:
https://lixa.svn.sourceforge.net/svnroot/lixa/tests//tests
/
lixa_test_exec.sh
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/sh # # Copyright (c) 2009-2012, Christian Ferrari <tiian@users.sourceforge.net> # All rights reserved. # # This file is part of LIXA. # # LIXA is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as published # by the Free Software Foundation. # # LIXA is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with LIXA. If not, see <http://www.gnu.org/licenses/>. # # Options: # $1 [reset|noreset] to reset the LIXA server status # $2 [start|stop|recycle|none] to start, stop, recycle or keep running the # server # $3 name of the case test must be run . lixa_test_functions.sh if test $# -lt 3 then echo "At least three parameters must be specified" exit 1 fi if test x"$1" = xreset then reset_server fi START_SERVER="NO" STOP_SERVER="NO" case "$2" in start) START_SERVER="YES" ;; stop) STOP_SERVER="YES" ;; recycle) START_SERVER="YES" ; STOP_SERVER="YES" ;; none) ;; *) echo "Second argument must be [start|stop|recycle|none]" exit 1 ;; esac if test -x "$3" then echo "No program to test, exiting with error" exit 1 fi shift 2 if test "$START_SERVER" = "YES" then start_server fi exec_test $* rc=$? if test "$STOP_SERVER" = "YES" then stop_server fi exit $rc
