tizen 2.3 release
[framework/web/wearable/wrt-security.git] / tests / geolocation_security / createGeolocationSecurityTest.sh
1 #!/bin/sh
2
3 #  wrt-plugins
4 #
5 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
6 #
7 #    Licensed under the Apache License, Version 2.0 (the "License");
8 #    you may not use this file except in compliance with the License.
9 #    You may obtain a copy of the License at
10 #
11 #        http://www.apache.org/licenses/LICENSE-2.0
12 #
13 #    Unless required by applicable law or agreed to in writing, software
14 #    distributed under the License is distributed on an "AS IS" BASIS,
15 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #    See the License for the specific language governing permissions and
17 #    limitations under the License.
18 #
19
20 test_dir=./
21
22 III=`pwd`
23 echo "KATALOG: $III"
24
25 cd $test_dir
26 rm -f geolocationSecurityTest1.wgt
27 rm -f geolocationSecurityTest2.wgt
28
29 # remove vim template files
30 rm -f `find . -name ".*.swp"`
31 rm -f `find . -name "*~"`
32
33 ORGPATH=`pwd`
34
35 cd geolocationSecurityTest
36 cp js/WAC2.0/TestGeolocationCallback1.js js/WAC2.0/TestGeolocationCallback.js
37 cp config1.xml config.xml
38 zip ../geolocationSecurityTest1.wgt -r *
39 cp js/WAC2.0/TestGeolocationCallback2.js js/WAC2.0/TestGeolocationCallback.js
40 cp config2.xml config.xml
41 zip ../geolocationSecurityTest2.wgt -r *
42