Lines Matching +full:pylib +full:- +full:tests
2 # Copyright (c) 2020-2024 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
35 tests_rel_dir = 'scripts/tests/twister/test_data/testsuites/tests/'
116 …(None, None, "supported_toolchains", ['gcc', 'xcc', 'xt-clang'], "Not supported by the toolchain"),
193 …("run_individual_tests", ['scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1'…
226 (20, 20, -1, 0),
227 (-2, -1, 10, 20),
277 …'demo_board_1/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on boa…
278 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on boa…
282 …'demo_board_2/unit_testing/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_2'…
283 …'demo_board_1/unit_testing/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1'…
284 …'demo_board_3/unit_testing/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1'…
285 …'demo_board_2/unit_testing/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1'…
286 …'demo_board_2/unit_testing/scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_2'…
290 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'all on bo…
291 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_2' : 'all on bo…
292 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all on bo…
293 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_b/test_b.check_1' : 'all on bo…
294 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_b/test_b.check_2' : 'all on bo…
295 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_1' : 'all on bo…
296 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_2' : 'all on bo…
297 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_e/test_e.check_1' : 'all on bo…
298 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_config/test_config.main' : 'al…
358 (os.path.join('test_c', 'test_c.check_1'), ['cdc-acm-console'],
360 (os.path.join('test_d', 'test_d.check_1'), ['dummy', 'cdc-acm-console'],
380 testpath = os.path.join('scripts', 'tests', 'twister', 'test_data',
381 'testsuites', 'tests', testpath)
442 - name: lvl1
444 - sc1
445 - sc2
447 - name: lvl2
449 - sc1-1
450 - sc1-2
455 'lvl2': ['sc1-1', 'sc1-2', 'sc1', 'sc2']
467 testplan.scenarios = ['sc1', 'sc1-1', 'sc1-2', 'sc2']
485 (['ts2.tc2'], ['- ts2'], False),
540 … (1, 0, ['qfile.yaml'], False, ['- platforms:\n - demo_board_3\n comment: "board_3"'], None, []),
546 ids=['no tests', 'load errors', 'quarantine verify without quarantine list',
594 TwisterRuntimeError, set(['t-p3', 't-p4', 't-p1', 't-p2']), []),
596 TwisterRuntimeError, set(['lt-p1', 'lt-p3', 'lt-p4', 'lt-p2']), []),
598 None, set(['ts-p4', 'ts-p2', 'ts-p1', 'ts-p3']), [2, 4]),
605 ids=['apply_filters only', 'only failed', 'load tests', 'test only']
623 "platform": "t-p1",
628 "platform": "t-p2",
633 "platform": "t-p3",
638 "platform": "t-p4",
652 "platform": "ts-p1",
657 "platform": "ts-p2",
662 "platform": "ts-p3",
667 "platform": "ts-p4",
681 "platform": "lt-p1",
686 "platform": "lt-p2",
691 "platform": "lt-p3",
696 "platform": "lt-p4",
719 exclude_platform=['t-p0', 't-p1',
720 'ts-p0', 'ts-p1',
721 'lt-p0', 'lt-p1'],
722 platform=['t-p1', 't-p2', 't-p3', 't-p4',
723 'ts-p1', 'ts-p2', 'ts-p3', 'ts-p4',
724 'lt-p1', 'lt-p2', 'lt-p3', 'lt-p4'],
730 testplan.platforms[0].name = 't-p1'
731 testplan.platforms[1].name = 't-p2'
732 testplan.platforms[2].name = 't-p3'
733 testplan.platforms[3].name = 't-p4'
734 testplan.platforms[4].name = 'ts-p1'
735 testplan.platforms[5].name = 'ts-p2'
736 testplan.platforms[6].name = 'ts-p3'
737 testplan.platforms[7].name = 'ts-p4'
738 testplan.platforms[8].name = 'lt-p1'
739 testplan.platforms[9].name = 'lt-p2'
740 testplan.platforms[10].name = 'lt-p3'
741 testplan.platforms[11].name = 'lt-p4'
742 testplan.platforms[0].aliases = ['t-p1']
743 testplan.platforms[1].aliases = ['t-p2']
744 testplan.platforms[2].aliases = ['t-p3']
745 testplan.platforms[3].aliases = ['t-p4']
746 testplan.platforms[4].aliases = ['ts-p1']
747 testplan.platforms[5].aliases = ['ts-p2']
748 testplan.platforms[6].aliases = ['ts-p3']
749 testplan.platforms[7].aliases = ['ts-p4']
750 testplan.platforms[8].aliases = ['lt-p1']
751 testplan.platforms[9].aliases = ['lt-p2']
752 testplan.platforms[10].aliases = ['lt-p3']
753 testplan.platforms[11].aliases = ['lt-p4']
754 testplan.platforms[0].normalized_name = 't-p1'
755 testplan.platforms[1].normalized_name = 't-p2'
756 testplan.platforms[2].normalized_name = 't-p3'
757 testplan.platforms[3].normalized_name = 't-p4'
758 testplan.platforms[4].normalized_name = 'ts-p1'
759 testplan.platforms[5].normalized_name = 'ts-p2'
760 testplan.platforms[6].normalized_name = 'ts-p3'
761 testplan.platforms[7].normalized_name = 'ts-p4'
762 testplan.platforms[8].normalized_name = 'lt-p1'
763 testplan.platforms[9].normalized_name = 'lt-p2'
764 testplan.platforms[10].normalized_name = 'lt-p3'
765 testplan.platforms[11].normalized_name = 'lt-p4'
915 '- scenario1 found in:\n' \
916 ' - a.yaml\n' \
917 ' - b.yaml\n',
983 assert '- tag' in out
984 assert '- tag1' in out
985 assert '- tag2' in out
986 assert '- tag3' in out
1020 └── Tests
1063 assert ' - 1.dummy.case.1\n' \
1064 ' - 1.dummy.case.2\n' \
1065 ' - 2.dummy.case.1\n' \
1066 ' - 2.dummy.case.2\n' \
1067 ' - 3.dummy.case.1\n' \
1068 ' - 3.dummy.case.2\n' \
1069 ' - 4.dummy.case.1\n' \
1070 ' - 4.dummy.case.2\n' \
1071 ' - 5.dummy.case.1\n' \
1072 ' - 5.dummy.case.2\n' \
1103 # └ boards <- board root
1110 # │ └ p2-1.yaml <- duplicate
1111 # │ └ p2-2.yaml <- load error
1127 - name: zephyr
1129 - name: zephyr_testing
1131 - name: unit_testing
1148 - name: p1e1
1151 - name: unit_testing
1152 - name: p1e2
1155 - name: unit_testing
1167 - zephyr
1180 - zephyr
1191 - name: p2
1194 - name: unit_testing
1195 - name: p2_2
1198 - name: unit_testing
1210 - zephyr
1227 - zephyr
1229 p2_2_yamlfile = tmp_p2_dir / 'p2-2.yaml'
1240 - name: p3
1243 - name: unit_testing
1255 - zephyr
1342 # ├ tests <- test root
1353 # └ other_tests <- alternate test root
1356 tmp_test_root_dir = tmp_path / 'tests'
1362 tests:
1378 tests:
1388 tests:
1391 - samples
1394 - samples
1397 - samples
1404 # The duplicate needs to have the same number of tests as these configurations
1406 # of selected tests needs to be the same in both situations.
1408 tests:
1431 tests:
1779 assert 'PLATFORM ERROR - unrecognized platform - some platform'