aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/install_dpdk/vars/main.yml
blob: 45bcc339b1a442952971f91f215e704716100778 (plain)
1
2
3
4
5
6
7
8
9
---
dpdk_make_arch: x86_64-native-linuxapp-gcc
dpdk_module_dir: "/lib/modules/{{ dpdk_kernel }}/extra"
hugetable_mount: /mnt/huge
dpdk_devbind:
  "16.07": "{{ dpdk_path }}/tools/dpdk-devbind.py"
  "17.02": "{{ dpdk_path }}/usertools/dpdk-devbind.py"
  "17.04": "{{ dpdk_path }}/usertools/dpdk-devbind.py"
dpdk_pmd_path: /usr/lib/dpdk-pmd/
.task_template import TaskTemplate logger = logging.getLogger(__name__) def runTestSuite(args): try: opts = args.get('opts', {}) testsuite = args['testsuite'] except KeyError: return common_utils.error_handler('Lack of testsuite argument') if 'suite' not in opts: opts['suite'] = 'true' testsuite = os.path.join(consts.TESTSUITE_DIR, '{}.yaml'.format(testsuite)) task_id = str(uuid.uuid4()) command_list = ['task', 'start'] command_list = common_utils.get_command_list(command_list, opts, testsuite) logger.debug('The command_list is: %s', command_list) logger.debug('Start to execute command list') task_dic = { 'task_id': task_id, 'details': _get_cases_from_suite_file(testsuite) } common_utils.exec_command_task(command_list, task_dic) return common_utils.result_handler('success', task_id) def _get_cases_from_suite_file(testsuite): def get_name(full_name): return os.path.splitext(full_name)[0] with open(testsuite) as f: contents = TaskTemplate.render(f.read()) suite_dic = yaml.safe_load(contents) testcases = (get_name(c['file_name']) for c in suite_dic['test_cases']) return ','.join(testcases)