88f586033eba6f9b833c38685450304302e66381
[platform/upstream/csf-framework.git] / test / scripts / TWPSerDaemonTest.sh
1 #!/bin/bash
2
3 #echo EmbkcJFK7q > /proc/$$/attr/current
4
5 killall TWPSerDaemon
6 killall twpserdaemontest
7 killall TPCSSerDaemon
8 killall tpcsserdaemontest
9
10 echo "copying test plug-in ..."
11 #export LD_LIBRARY_PATH=$PWD
12 cp -f /tmp/twpserdaemon_test/libscclient.so /usr/lib/
13 cp -f /tmp/twpserdaemon_test/libscserver.so /usr/lib/
14 cp -f /tmp/twpserdaemon_test/libsecfw.so /usr/lib/
15 cp -f /tmp/twpserdaemon_test/TWPSerDaemon /usr/bin/
16 cp -f /tmp/twpserdaemon_test/twpserdaemontest /usr/bin/
17
18 mkdir -p /opt/usr/share/sec_plugin
19 cp -f /tmp/twpserdaemon_test/libwpengine.so /opt/usr/share/sec_plugin/
20 mkdir -p /opt/usr/apps/EmbkcJFK7q/data/database
21 cp -f /tmp/twpserdaemon_test/.tcs.cfg /opt/usr/apps/EmbkcJFK7q/data/
22 echo "setup environment ..."
23 #mkdir testcontents-1
24 #export TWP_CONTENT_PATH=testcontents-1
25
26 echo "Do following to run the test cases ..."
27 echo "cd /usr/bin/"
28 echo "./twpserdaemontest"
29 #echo "end of test cases ..."
30
31 #echo "cleanup test contents ..."
32 #rm -rf testcontents-1
33