3 . ./scripts/PrepareForEmul.sh
4 #export TCS_CFG="debug"
6 echo -e "\nbuilding libsecfw.so..."
11 echo -e "\nbuilding security channel CLIENT..."
12 make -f Makefile_channel_client clean
13 make -f Makefile_channel_client
15 echo -e "\nbuilding security channel SERVER..."
16 make -f Makefile_channel_server clean
17 make -f Makefile_channel_server
19 echo -e "\nbuilding TWPSerDaemon..."
20 make -f Makefile_TWPSerDaemon clean
21 make -f Makefile_TWPSerDaemon
24 echo -e "\nbuilding libwpengine.so..."
30 echo -e "\nbuilding test cases ..."
31 pushd test_cases/twpserdaemon
36 echo -e "\ncleanup test files on emulator ..."
38 sdb -e shell rm -rf /tmp/twpserdaemon_test
40 echo -e "\ncopying test files to emulator ..."
41 mkdir -p twpserdaemon_test/
42 cp ../framework/lib/libscclient.so twpserdaemon_test/
43 cp ../framework/lib/libscserver.so twpserdaemon_test/
44 cp ../framework/lib/libsecfw.so twpserdaemon_test/
45 cp scripts/TWPSerDaemonTest.sh twpserdaemon_test/Test.sh
46 cp ../framework/bin/TWPSerDaemon twpserdaemon_test/
47 cp test_cases/twpserdaemon/bin/twpserdaemontest twpserdaemon_test/
48 cp test_cases/mfe-testcontents/.tcs.cfg twpserdaemon_test/
50 cp ../plugin/plugin_i386_release/libwpengine.so twpserdaemon_test/
52 sdb -e push twpserdaemon_test /tmp/twpserdaemon_test
54 # push Test.sh to /usr/bin
55 sdb -e push scripts/TWPSerDaemonTest.sh /usr/bin/Test.sh
57 echo -e "\n@@@@@@@@@@@@@@@@@@@@@@@@@@@"
58 echo "preparation is done, please login to the emulator and perform following instructions"
61 echo "chmod +x Test.sh (optional)"