sbsv2/raptor/util/talon/tests/config.sh
author Ross Qin <ross.qin@nokia.com>
Tue, 30 Nov 2010 14:05:41 +0800
changeset 713 7b7f0409fc00
parent 591 22486c9c7b15
permissions -rw-r--r--
merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     1
#!/bin/bash
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     2
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     3
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     4
# All rights reserved.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     5
# This component and the accompanying materials are made available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     6
# under the terms of the License "Eclipse Public License v1.0"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     7
# which accompanies this distribution, and is available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     8
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     9
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    10
# Initial Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    11
# Nokia Corporation - initial contribution.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    12
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    13
# Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    14
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    15
# Description: 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    16
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    17
# set up the environment for some talon tests.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    18
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    19
eval `$SBS_HOME/bin/gethost.sh -e`
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    20
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    21
if [[ "$HOSTPLATFORM" =~ "win" ]]; then
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    22
TEST_SHELL=$(cygpath -w $SBS_HOME/win32/bin/talon.exe)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    23
TEST_TALON_SHELL=$(cygpath -w $SBS_CYGWIN/bin/bash.exe)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
else
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
TEST_SHELL=$SBS_HOME/$HOSTPLATFORM_DIR/bin/talon
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
TEST_TALON_SHELL=/bin/bash
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
fi
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
cat >settings.mk <<-endofsettings
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    30
	SHELL:=$TEST_SHELL
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    31
	TALON_SHELL:=$TEST_TALON_SHELL
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
	TALON_BUILDID:=100
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
	TALON_DEBUG:=""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
	export TALON_SHELL TALON_BUILDID TALON_DEBUG
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
endofsettings