--- /dev/null
+# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Syntax is:
+# * create_testplan $TEST_PLAN $TEST_REPO
+# * run_testplan $TEST_PLAN $ID
+#
+# Author: Aleksander Mistewicz <a.mistewicz@samsung.com>
+
+export NATIVE_TCT_HOST_PATH="/opt/tct/tizen_native_3.0"
+
+create_testplan() {
+ TEST_PLAN="$1"
+ TEST_REPO="$2"
+ test -n "${TEST_PLAN}" || die "Missing argument: testplan!"
+ test -n "${TEST_REPO}" || die "Missing argument: testrepo!"
+
+ cd "${NATIVE_TCT_HOST_PATH}/shell"
+ ./tct-plan-generator --output "${TEST_PLAN}" --match "*" --repository "${TEST_REPO}"
+ cd "${OLDPWD}"
+}
+
+run_testplan() {
+ TEST_PLAN="$1"
+ ID="$2"
+ test -n "${TEST_PLAN}" || die "Missing argument: testplan!"
+ test -n "${ID}" || die "Missing argument: id!"
+
+ cd "${NATIVE_TCT_HOST_PATH}/shell"
+ yes | ./tct-shell --testplan "${TEST_PLAN}" --deviceid "${ID}"
+ cd "${OLDPWD}"
+}