-
Notifications
You must be signed in to change notification settings - Fork 5
/
dpdkick.py
executable file
·43 lines (33 loc) · 1.46 KB
/
dpdkick.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
import globalvar
import unittest
from testcases import hwconftest
from testcases import swconftest
from testcases import kernelconftest
from testcases.utility import utilities as util
import TestRunner
def dpdkick_init():
util.format_print_launch_screen()
if (globalvar.CONF_PID_IS_VALID == False):
print "Fill the correct values in dpdkick.conf before launching DPDKick"
print "program exit.."
raise SystemExit
def dpdkick_main():
dpdkick_init()
if(globalvar.ENV_CONF_TYPE == "performance"):
hw_conf_test_suite = unittest.TestLoader().loadTestsFromTestCase(hwconftest.hwconftest)
sw_conf_test_suite = unittest.TestLoader().loadTestsFromTestCase(swconftest.swconftest)
kernel_conf_test_suite = unittest.TestLoader().loadTestsFromTestCase(kernelconftest.kernelconftest)
else:
print "Invalid DPDKick Configuration Type"
print "program exit.."
raise SystemExit
runner = TestRunner.TestRunner()
util.format_print_test_suite_title('Hardware Configuration Verification')
runner.run(hw_conf_test_suite, description = 'Hardware')
util.format_print_test_suite_title('Software Configuration and Runtime Verification')
runner.run(sw_conf_test_suite, description = 'Software')
util.format_print_test_suite_title('Kernel Configuration Verification')
runner.run(kernel_conf_test_suite, description = 'Kernel')
if __name__ == '__main__':
dpdkick_main()