-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for jenkins CI and fix of issues
- Loading branch information
eramox
committed
Jul 18, 2016
1 parent
47577dd
commit 22a74b0
Showing
3 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
JK_SRV_WABLE="$HOME/app-root/data" | ||
|
||
GTEST_LIB_FOLDER="$JK_SRV_WABLE/usr/local/lib" | ||
GTEST_INCLUDE_FOLDER="$JK_SRV_WABLE/compilation/googletest/googletest/include" | ||
|
||
echo $GTEST_INCLUDE_FOLDER | ||
|
||
sh runBuild.sh " \ | ||
-DCONTINUOUS_INTEGRATION_BUILD=ON \ | ||
-DBUILD_LIB_TEST=ON \ | ||
-DGTEST_ROOT=$GTEST_LIB_FOLDER \ | ||
-DGTEST_INCLUDE_DIR=$GTEST_INCLUDE_FOLDER \ | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,19 @@ | ||
echo "Starting test" | ||
|
||
TEST_EXE="gtestexe" | ||
REPORT_XML="gtestreport.xml" | ||
REPORT_FOLDER="../" | ||
|
||
# moving to test folder | ||
cd liberamox/build/testing | ||
|
||
# Google test | ||
if [ $run_gtest -eq 1 ]; then | ||
echo "Running GTest:" | ||
./completetestlib | ||
./$TEST_EXE --gtest_output=xml:$REPORT_FOLDER$REPORT_XML | ||
res_gtest=$? | ||
fi | ||
|
||
cd - | ||
echo "Test Finished" | ||
|
||
exit $res_gtest | ||
|
||
if [ "$1" == "" ] | ||
then | ||
echo "no parameter, executing all"; | ||
run_gtest=1; | ||
else | ||
if [ "$1" == "--gtest" ] | ||
then | ||
run_gtest=1; | ||
fi | ||
|