blob: d39149c5e229d54afc979900f3f3367aac806783 (
plain)
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
|
#!/bin/sh
get_list() {
return 1
}
get_title() {
echo "persisitence-client-library"
}
_run_dir=/opt/tests/persistence-client-library
_run_1() {
persadmin_tool install /Data/Data.tar.gz > /tmp/t
${_run_dir}/persistence_client_library_test
}
_setup_env() {
_p=`pidof NodeStateManager`
if [ "x${_p}" != "x" ]; then
kill -9 ${_p} >& /dev/null
fi
_p=`pidof nsm-dummy`
if [ "x${_p}" != "x" ]; then
kill -9 ${_p} >& /dev/null
fi
systemctl restart pas-daemon
}
run_1() {
_setup_env
if [ "x${1}" != "x" ]; then
_run_1 > /tmp/t
_c1=`cat /tmp/t | grep :P: | wc -l`
_c2=`cat /tmp/t | grep :F: | wc -l`
if [ "x${_c1}" = "x0" ]; then
echo "[ FAILED ] ${_c2} tests."
elif [ "x${_c2}" = "x0" ]; then
echo "[ PASSED ] ${_c1} tests."
else
echo " ${_c1} PASSED, ${_c2} FAILED"
fi
else
_run_1
fi
}
|