forked from dalehenrich/builderCI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testGemStoneGCI.sh
executable file
·64 lines (63 loc) · 2.22 KB
/
testGemStoneGCI.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash -x
#
# GemStone GCI Test driver script for builderCI. Use with templates gci_travis.yml
#
# -verbose flag causes unconditional transcript display
#
# Copyright (c) 2013 VMware, Inc. All Rights Reserved <[email protected]>.
# Copyright (C) 2014 GemTalk Systems LLC <[email protected]>
#
#install 32 bit libs if necessary
case "$(uname -m)" in
"x86_64")
echo "64bit os"
# 32-bit gci libs
sudo apt-get -qq update
sudo apt-get install ia32-libs
;;
*)
echo "32bit os"
;;
esac
echo "====STARTING SERVER: $GemStone"
ST="$GemStone"
./build.sh -i $ST -m -n -f "$PROJECT_HOME/tests/gemstoneGCI.st" -o serverGCI
if [[ $? != 0 ]] ; then
echo "ERROR: $(basename $0)"
cd "${BUILD_PATH}/serverGCI/"
$BUILDER_CI_HOME/buildImageErrorCheck.sh # dump Transcript on error and exit
if [[ $? != 0 ]] ; then exit 1; fi
$BUILDER_CI_HOME/dumpTranscript.sh
exit 1
fi
cd "${BUILD_PATH}/serverGCI/"
$BUILDER_CI_HOME/buildImageErrorCheck.sh # dump Transcript on error and exit
if [[ $? != 0 ]] ; then exit 1; fi
$BUILDER_CI_HOME/buildTravisStatusCheck.sh "$@" # dump Transcript on failed tests and exit
if [[ $? != 0 ]] ; then exit 1; fi
echo "====STARTING CLIENT: $CLIENT"
cd $BUILDER_CI_HOME
ST="$CLIENT"
# copy the gci libraries to the OUTPUT_PATH directory
mkdir -p $BUILD_PATH/clientGCI
cp /opt/gemstone/product/lib32/*.so $BUILD_PATH/clientGCI
ls /opt/gemstone/log
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
./build.sh -i $ST -d -m -f "$PROJECT_HOME/tests/clientGCI.st" -o clientGCI
if [[ $? != 0 ]] ; then
echo "ERROR: $(basename $0)"
ls -altr $BUILD_PATH/clientGCI
ls -altr /opt/gemstone/log
cd "${BUILD_PATH}/clientGCI/"
$BUILDER_CI_HOME/buildImageErrorCheck.sh # dump Transcript on error and exit
if [[ $? != 0 ]] ; then exit 1; fi
$BUILDER_CI_HOME/dumpTranscript.sh
exit 1
fi
ls -altr $BUILD_PATH/clientGCI
ls -altr /opt/gemstone/log
cd "${BUILD_PATH}/clientGCI/"
$BUILDER_CI_HOME/buildImageErrorCheck.sh # dump Transcript on error and exit
if [[ $? != 0 ]] ; then exit 1; fi
$BUILDER_CI_HOME/buildTravisStatusCheck.sh "$@" # dump Transcript on failed tests and exit
if [[ $? != 0 ]] ; then exit 1; fi