Revert "Remove TPCS and TWPServer features"
[platform/upstream/csf-framework.git] / test / scripts / MfeTPCSSerDaemonToEmul.sh
1 #!/bin/bash
2
3 . ./scripts/PrepareForEmul.sh
4 #export TCS_CFG="debug"
5
6 echo -e "\nbuilding security channel CLIENT..."
7 pushd ../framework
8 make -f Makefile_channel_client clean 
9 make -f Makefile_channel_client
10
11 echo -e "\nbuilding security channel SERVER..."
12 make -f Makefile_channel_server clean
13 make -f Makefile_channel_server
14
15 echo -e "\nbuilding TPCS Ser Daemon..."
16 make -f Makefile_TPCSSerDaemon clean
17 make -f Makefile_TPCSSerDaemon
18 popd
19
20 echo -e "\nbuilding test cases..."
21 pushd test_cases/tpcsserdaemon
22 make clean
23 make
24 popd
25
26 echo -e "\ncleanup test files on device ..."
27 sdb -e root on
28 sdb -e shell rm -rf /tmp/tsc_test
29
30 echo -e "\ncopying test files to device ..."
31 mkdir -p tsc_test/
32 cp ../framework/lib/libscclient.so tsc_test/
33 cp ../framework/lib/libscserver.so tsc_test/
34 cp scripts/TPCSSerDaemonTest.sh tsc_test/Test.sh
35 cp test_cases/tpcsserdaemon/bin/tpcsserdaemontest tsc_test/
36 cp ../framework/bin/TPCSSerDaemon tsc_test/TPCSSerDaemon
37
38 sdb -e push tsc_test /tmp/tsc_test
39 sdb -e push test_cases/q7097a278m /opt/usr/apps/q7097a278m
40 sdb -e push test_cases/u7097a278m /opt/usr/apps/u7097a278m
41 sdb -e push test_cases/n7097a278m /opt/usr/apps/n7097a278m
42 sdb -e push tsc_test/Test.sh /usr/bin/Test.sh
43
44 echo -e "\n@@@@@@@@@@@@@@@@@@@@@@@@@@@"
45 echo "preparation is done, please login to your device and perform following instructions"
46 echo "sdb -e shell"
47 echo "cd /usr/bin"
48 echo "chmod +x Test.sh (optional)"
49 echo "./Test.sh"