summaryrefslogtreecommitdiffstats
path: root/scripts/automation
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-02-10 17:07:13 +0200
committerHanoh Haim <hhaim@cisco.com>2016-02-10 17:07:13 +0200
commit15783cbf852a4733fff97cad00421d45de549d37 (patch)
tree4565d7048abba2380c71a66bb8b26d7348fe18f0 /scripts/automation
parente0a5d099dc1a52ba4faf4966fc3636802e3c457f (diff)
add yaml tests
Diffstat (limited to 'scripts/automation')
-rw-r--r--scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py24
1 files changed, 17 insertions, 7 deletions
diff --git a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py
index a5147e81..bf02c075 100644
--- a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py
+++ b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py
@@ -31,8 +31,7 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test):
self.profiles = {}
self.profiles['imix_3pkt'] = os.path.join(self.profiles_path, "imix_3pkt.yaml")
self.profiles['imix_3pkt_vm'] = os.path.join(self.profiles_path, "imix_3pkt_vm.yaml")
- self.profiles['random_size'] = os.path.join(self.profiles_path, "udp_rand_size.yaml")
- self.profiles['random_size_9k'] = os.path.join(self.profiles_path, "udp_rand_size_9k.yaml")
+ self.profiles['random_size_9k'] = os.path.join(self.profiles_path, "../udp_rand_len_9k.py")
self.profiles['imix_tuple_gen'] = os.path.join(self.profiles_path, "imix_1pkt_tuple_gen.yaml")
for k, v in self.profiles.iteritems():
@@ -145,7 +144,7 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test):
self.golden_run("basic_tuple_gen", "imix_tuple_gen", "-m 50kpps --limit 500 --cores 8", silent = False)
def test_all_profiles (self):
- p=[
+ p = [
["udp_1pkt_1mac_override.py","-m 1 -l 50",True],
["syn_attack.py","-m 1 -l 50",False], # can't compare random now
["udp_1pkt_1mac.py","-m 1 -l 50",True],
@@ -158,13 +157,24 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test):
["imix.py","-m 1 -l 100",True],
["udp_inc_len_9k.py","-m 1 -l 100",True],
["udp_1pkt_range_clients.py","-m 1 -l 100",True],
- ["multi_burst_2st_1000pkt.py","-m 1 -l 100",True]
+ ["multi_burst_2st_1000pkt.py","-m 1 -l 100",True],
+
+ # YAML test
+ ["yaml/burst_1000_pkt.yaml","-m 1 -l 100",True],
+ ["yaml/burst_1pkt_1burst.yaml","-m 1 -l 100",True],
+ ["yaml/burst_1pkt_vm.yaml","-m 1 -l 100",True],
+ ["yaml/imix_1pkt.yaml","-m 1 -l 100",True],
+ ["yaml/imix_1pkt_2.yaml","-m 1 -l 100",True],
+ ["yaml/imix_1pkt_tuple_gen.yaml","-m 1 -l 100",True],
+ ["yaml/imix_1pkt_vm.yaml","-m 1 -l 100",True]
+
];
- #p=[ ["multi_burst_2st_1000pkt.py","-m 1 -l 100",True] ]
+ p1=[ ["yaml/imix_1pkt_2.yaml","-m 1 -l 100",True] ]
+
for obj in p:
- self.run_py_profile_path (obj[0],obj[1],compare =obj[2], do_no_remove=False)
+ self.run_py_profile_path (obj[0],obj[1],compare =obj[2], do_no_remove=True)
@@ -174,7 +184,7 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test):
print "\n"
for profile in self.valgrind_profiles:
print "\n*** testing profile '{0}' ***\n".format(profile)
- rc = self.run_sim(profile, output = None, options = "--cores 8 --limit 500 --valgrind", silent = False)
+ rc = self.run_sim(profile, output = None, options = "--cores 8 --limit 20 --valgrind", silent = False)
assert_equal(rc, True)