From ab1b733de452f9661b0d4c59f97225f53117f640 Mon Sep 17 00:00:00 2001 From: Paulo Meirelles Date: Wed, 16 Jan 2013 19:35:15 +0000 Subject: [PATCH] [Mezuro] dratf about how we can run accetance test using kalibro test mode --- plugins/mezuro/test/run_acceptance_tests.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+), 0 deletions(-) create mode 100644 plugins/mezuro/test/run_acceptance_tests.sh diff --git a/plugins/mezuro/test/run_acceptance_tests.sh b/plugins/mezuro/test/run_acceptance_tests.sh new file mode 100644 index 0000000..622f4dd --- /dev/null +++ b/plugins/mezuro/test/run_acceptance_tests.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +COMMAND_TEST = $1 + +# where are your .kalibro dir? +KALIBRO_HOME= ~/.kalibro + +# create a kalibro test dir +mkdir $KALIBRO_HOME/tests +cp $KALIBRO_HOME/kalibro_tests.settings $KALIBRO_HOME/tests/kalibro.settings + +# you must restart tomcat6 +#if you are using a tomcat installed from apt-get, for example: +#sudo service tomcat6 restart + +#if you are using a tomcat installed a specific dir, form exemplo: +#~/tomcat6/bin/shoutdown.sh +#~/tomcat6/bin/startup.sh + +# run test +COMMAND_TEST + +#back to normal mode +rm -rf $KALIBRO_HOME/tests + +# you must restart tomcat6 again +#sudo service tomcat6 restart -- libgit2 0.21.2