Signed-off-by: YAMADA Hideki <[email protected]>
---
 run_tests.sh |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/run_tests.sh b/run_tests.sh
index 56609d2..bf703a6 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -11,6 +11,7 @@ usage() {
   echo "  -p, --pep8               Just run pep8"
   echo "  -P, --no-pep8            Don't run pep8"
   echo "  -l, --pylint             Just run pylint"
+  echo "  -i, --integrated         Run integrated test"
   echo "  -v, --verbose            Run verbose pylint analysis"
   echo "  -h, --help               Print this usage message"
   echo ""
@@ -29,6 +30,7 @@ process_option() {
     -p|--pep8) just_pep8=1; never_venv=1; always_venv=0;;
     -P|--no-pep8) no_pep8=1;;
     -l|--pylint) just_pylint=1;;
+    -i|--integrated) integrated=1;;
     -c|--coverage) coverage=1;;
     -v|--verbose) verbose=1;;
     -*) noseopts="$noseopts $1";;
@@ -43,6 +45,7 @@ never_venv=0
 just_pep8=0
 no_pep8=0
 just_pylint=0
+integrated=0
 force=0
 noseargs=
 wrapper=""
@@ -106,6 +109,12 @@ run_pep8() {
   ${wrapper} pep8 $PEP8_OPTIONS $PEP8_INCLUDE | tee $PEP8_LOG
 }
 
+run_integrated() {
+  echo "Running integrated test ..."
+
+  INTEGRATED_TEST_RUNNER="./ryu/tests/integrated/run_tests_with_ovs12.py"
+  sudo PYTHONPATH=. nosetests -s $INTEGRATED_TEST_RUNNER 
+}
 #NOSETESTS="nosetests $noseopts $noseargs"
 NOSETESTS="python ./ryu/tests/run_tests.py $noseopts $noseargs"
 
@@ -158,6 +167,11 @@ if [ $just_pylint -eq 1 ]; then
     exit
 fi
 
+if [ $integrated -eq 1 ]; then
+    run_integrated
+    exit
+fi
+
 run_tests
 RV=$?
 if [ $no_pep8 -eq 0 ]; then
-- 
1.7.1



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to