diff options
Diffstat (limited to 'enhanced-position-service/franca/test/test-scripts/run-test-dbus.sh')
-rwxr-xr-x | enhanced-position-service/franca/test/test-scripts/run-test-dbus.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/enhanced-position-service/franca/test/test-scripts/run-test-dbus.sh b/enhanced-position-service/franca/test/test-scripts/run-test-dbus.sh new file mode 100755 index 0000000..1fe51a9 --- /dev/null +++ b/enhanced-position-service/franca/test/test-scripts/run-test-dbus.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +########################################################################### +# @licence app begin@ +# SPDX-License-Identifier: MPL-2.0 +# +# Component Name: EnhancedPositionService +# Author: Marco Residori +# +# Copyright (C) 2015, XS Embedded GmbH +# +# License: +# This Source Code Form is subject to the terms of the +# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with +# this file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# @licence end@ +########################################################################### + +TOP_DIR=../../../.. + +LOGS_DIR=$TOP_DIR/log-replayer/logs +LOGREPLAYER_DIR=$TOP_DIR/build/log-replayer/src +ENHPOS_DIR=$TOP_DIR/build/enhanced-position-service/franca/src +ENHPOS_RES=$TOP_DIR/enhanced-position-service/franca/res + +echo "Test started" + +$LOGREPLAYER_DIR/log-replayer $LOGS_DIR/geneve-cologny.log > /dev/null 2>&1 & + +COMMONAPI_DEFAULT_CONFIG=$ENHPOS_RES/commonapi4dbus.ini \ +COMMONAPI_DBUS_DEFAULT_CONFIG=$ENHPOS_RES/commonapi-dbus.ini \ +$ENHPOS_DIR/EnhancedPositionServiceDBus & + +sleep 1 + +COMMONAPI_DEFAULT_CONFIG=$ENHPOS_RES/commonapi4dbus.ini \ +COMMONAPI_DBUS_DEFAULT_CONFIG=$ENHPOS_RES/commonapi-dbus.ini \ +$ENHPOS_DIR/EnhancedPositionClientDBus & + +sleep 10 + +echo "Test finished" + +killall EnhancedPositionClientDBus +killall EnhancedPositionServiceDBus +killall log-replayer + + |