Skip to content

Commit

Permalink
#11196: Trying to fix functional-tests for MSSQL and Oracle (4)
Browse files Browse the repository at this point in the history
  • Loading branch information
agomez-dotcms committed May 17, 2017
1 parent 84ef054 commit 2a54310
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions dotCMS/build-aws-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,23 @@ mkdir tests
mkdir tests/logs

# Run Functional tests
#ant -f build-tests.xml test-dotcms
#if [ ! -d "dotserver/tomcat/webapps/ROOT/dotsecure/logs/test" ]; then
# echo 'Functional tests could not be run'
#
# exit 1;
#fi
ant -f build-tests.xml test-dotcms
if [ ! -d "dotserver/tomcat/webapps/ROOT/dotsecure/logs/test" ]; then
echo 'Functional tests could not be run'

exit 1;
fi

# Copy results and logs of tests
#cp dotserver/tomcat/webapps/ROOT/dotsecure/logs/test/*.xml tests
#cp dotserver/tomcat/webapps/ROOT/dotsecure/logs/*.log tests/logs
#cp dotserver/tomcat/logs/* tests/logs
cp dotserver/tomcat/webapps/ROOT/dotsecure/logs/test/*.xml tests
cp dotserver/tomcat/webapps/ROOT/dotsecure/logs/*.log tests/logs
cp dotserver/tomcat/logs/* tests/logs

# Run Integration tests
#cd core/dotCMS
#./gradlew integrationTest -PdatabaseType=$DB_TYPE --no-daemon || true
#cd ../..
#cp core/dotCMS/build/test-results/integrationTest/*.xml tests
cd core/dotCMS
./gradlew integrationTest -PdatabaseType=$DB_TYPE --no-daemon || true
cd ../..
cp core/dotCMS/build/test-results/integrationTest/*.xml tests


# Create output zip file
Expand Down
2 changes: 1 addition & 1 deletion dotCMS/src/functional-test/resources/build-tests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!-- Main test target, this tasks will run all the unit tests of the application -->
<target name="test-dotcms">
<runservertests
testurl="http://localhost:8080"
testurl="http://localhost:8080/dotAdmin/"
starttarget="tomcat-start"
stoptarget="tomcat-stop"
testtarget="test-all-junits"
Expand Down

0 comments on commit 2a54310

Please sign in to comment.