Add test nack scenario for best-route, and a framework to support tests tools
refs #3157
Change-Id: I12d0241bd45e1af6796765a03751e445a6a23525
diff --git a/test_nack/test_nack.py b/test_nack/test_nack.py
new file mode 100644
index 0000000..465cbc7
--- /dev/null
+++ b/test_nack/test_nack.py
@@ -0,0 +1,29 @@
+#!/usr/bin/python2
+
+import os
+import unittest
+import subprocess
+
+class test_nack(unittest.TestCase):
+ """Test case for testing nack"""
+
+ def setUp(self):
+ print "\nTesting nack with best-route"
+ print "*****************************"
+ os.chdir("test_nack")
+ os.system("mkdir -p logs")
+
+ def tearDown(self):
+ print "********************************"
+ os.chdir("..")
+
+ def test_nack(self):
+ print ">>> test nack <<<"
+
+ ret = subprocess.call(['./nack-test.sh'], shell=True)
+
+ if (ret != 0):
+ self.fail(" >> TEST NACK FAILED")
+ else:
+ print ">> TEST NACK PROCEDURE PASSED SUCCESSFULLY"
+