TEXT_ERROR='\033[0;31mError: \033[0m'
TEXT_INFO='\033[0;32mInfo: \033[0m'
+ACCESSIBILITY_SETTING_NAME="org.tizen.accessibility-setting"
+ACCESSIBILITY_SETTING_TESTS_NAME="org.tizen.accessibility-setting-tests"
print_help()
{
sdb -d shell rpm -Uvh --force "$TMP"/*
}
+rpm_erase()
+{
+ for RPM in $@
+ do
+ sdb -d shell rpm -e "$RPM"
+ done
+}
+
+
exit_on_error()
{
if [ $? -eq 1 ]; then
if [ "$INSTALL_PACKAGE" != "" ]; then
GBS_PATH="$HOME/GBS-ROOT/local/repos/public_mobile/armv7l/RPMS"
- BASE_PACKAGE_NAME="$GBS_PATH/org.tizen.accessibility-setting-$VERSION-$RELEASE.armv7l.rpm"
- TEST_PACKAGE_NAME="$GBS_PATH/org.tizen.accessibility-setting-tests-$VERSION-$RELEASE.armv7l.rpm"
+ BASE_PACKAGE_NAME="$GBS_PATH/$ACCESSIBILITY_SETTING_NAME-$VERSION-$RELEASE.armv7l.rpm"
+ TEST_PACKAGE_NAME="$GBS_PATH/$ACCESSIBILITY_SETTING_TESTS_NAME-$VERSION-$RELEASE.armv7l.rpm"
TEST_LIB_PACKAGE_NAME="$HOME/GBS-ROOT/local/cache/*/gtest-[0-9]*"
case "$INSTALL_PACKAGE" in
'base')
if [ -f "$BASE_PACKAGE_NAME" ]; then
BASE_FILE="$BASE_PACKAGE_NAME"
+ BASE_RPM_NAME="$ACCESSIBILITY_SETTING_NAME"
else
echo $TEXT_ERROR"Base package not found, check if it was built."
exit 1
if [ -f "$TEST_PACKAGE_NAME" ]; then
TEST_FILE="$TEST_PACKAGE_NAME"
LIB_FILE="$TEST_LIB_PACKAGE_NAME"
+ TEST_RPM_NAME="$ACCESSIBILITY_SETTING_TESTS_NAME"
else
echo $TEXT_ERROR"Test package not found, check if it was built."
exit 1
BASE_FILE="$BASE_PACKAGE_NAME"
TEST_FILE="$TEST_PACKAGE_NAME"
LIB_FILE="$TEST_LIB_PACKAGE_NAME"
+ BASE_RPM_NAME="$ACCESSIBILITY_SETTING_NAME"
+ TEST_RPM_NAME="$ACCESSIBILITY_SETTING_TESTS_NAME"
else
echo $TEXT_ERROR"Not all packages exist, check if they were built."
exit 1
check_if_target_connected
echo $TEXT_INFO"Following packages will be installed: $BASE_FILE $TEST_FILE $LIB_FILE"
+ rpm_erase $BASE_RPM_NAME $TEST_RPM_NAME
rpm_install "$BASE_FILE" "$TEST_FILE" $LIB_FILE
+
fi
if [ $CLEAN_JOURNAL -eq 1 ]; then
sdb root on
sdb shell '
- set -e
DATE=`date "+%F %X"`
for i in /usr/apps/org.tizen.accessibility-setting-tests/no-ui-scenarios/*
do