interest-loop-scenario: Add test cast for Interest loop scenario.

Change-Id: Ic83735a24488614236eb6fbb7c7c79260434e457
Refs: #1409
diff --git a/test_interest_loop/test_interest_loop.py b/test_interest_loop/test_interest_loop.py
new file mode 100644
index 0000000..595d037
--- /dev/null
+++ b/test_interest_loop/test_interest_loop.py
@@ -0,0 +1,56 @@
+#!/usr/bin/python2
+# -*- Mode:python; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
+#
+# Copyright (C) 2014 University of Arizona
+# Author: Yi Huang <ltr120@email.arizona.edu>
+# See COPYING for copyright and distribution information.
+#
+
+import os
+import unittest
+import subprocess
+
+class test_interest_loop(unittest.TestCase):
+    """Test case for Interest loop scenario"""
+
+    errormsg = {
+        1 : "Counter for incoming interest is greater than 200.",
+        2 : "Counter for outgoing interest is greater than 200.",
+    }
+
+    def setUp(self):
+        print "\nTesting Interest loop scenario"
+        print "******************************"
+        os.chdir("test_interest_loop")
+
+    def tearDown(self):
+        print "******************************"
+        os.chdir("..")
+
+    def test_broadcast(self):
+        print ">>> Testing with Broadcast Strategy <<<"
+        ret = subprocess.call(["./interest-loop-test.sh ndn:/localhost/nfd/strategy/broadcast"], shell=True)
+        print "Test script return value:", ret
+        if ret != 0:
+            self.fail(self.errormsg[ret])
+
+    def test_best_route(self):
+        print ">>> Testing with Best-route Strategy <<<"
+        ret = subprocess.call(["./interest-loop-test.sh ndn:/localhost/nfd/strategy/best-route"], shell=True)
+        print "Test script return value:", ret
+        if ret != 0:
+            self.fail(self.errormsg[ret])
+
+    def test_client_control(self):
+        print ">>> Testing with Client Control Strategy <<<"
+        ret = subprocess.call(["./interest-loop-test.sh ndn:/localhost/nfd/strategy/client-control"], shell=True)
+        print "Test script return value:", ret
+        if ret != 0:
+            self.fail(self.errormsg[ret])
+
+    def test_ncc(self):
+        print ">>> Testing with NCC Strategy <<<"
+        ret = subprocess.call(["./interest-loop-test.sh ndn:/localhost/nfd/strategy/ncc"], shell=True)
+        print "Test script return value:", ret
+        if ret != 0:
+            self.fail(self.errormsg[ret])