@@ -268,34 +268,34 @@ def test_add_instances_short(tmp_path, class_env, all_testsuites_dict, platforms
268
268
instance_list .append (instance )
269
269
plan .add_instances (instance_list )
270
270
assert list (plan .instances .keys ()) == \
271
- [platform .name + '/zephyr/' + s for s in list (all_testsuites_dict .keys ())]
271
+ [platform .name + '/zephyr/gnu/ ' + s for s in list (all_testsuites_dict .keys ())]
272
272
assert all (isinstance (n , TestInstance ) for n in list (plan .instances .values ()))
273
273
assert list (plan .instances .values ()) == instance_list
274
274
275
275
276
276
QUARANTINE_BASIC = {
277
- 'demo_board_1/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on board_1 and board_3' ,
278
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on board_1 and board_3'
277
+ 'demo_board_1/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on board_1 and board_3' ,
278
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on board_1 and board_3'
279
279
}
280
280
281
281
QUARANTINE_WITH_REGEXP = {
282
- 'demo_board_2/unit_testing/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_2' : 'a2 and c2 on x86' ,
283
- 'demo_board_1/unit_testing/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all test_d' ,
284
- 'demo_board_3/unit_testing/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all test_d' ,
285
- 'demo_board_2/unit_testing/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all test_d' ,
286
- 'demo_board_2/unit_testing/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_2' : 'a2 and c2 on x86'
282
+ 'demo_board_2/unit_testing/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_2' : 'a2 and c2 on x86' ,
283
+ 'demo_board_1/unit_testing/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all test_d' ,
284
+ 'demo_board_3/unit_testing/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all test_d' ,
285
+ 'demo_board_2/unit_testing/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all test_d' ,
286
+ 'demo_board_2/unit_testing/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_2' : 'a2 and c2 on x86'
287
287
}
288
288
289
289
QUARANTINE_PLATFORM = {
290
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'all on board_3' ,
291
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_2' : 'all on board_3' ,
292
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all on board_3' ,
293
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_b/test_b.check_1' : 'all on board_3' ,
294
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_b/test_b.check_2' : 'all on board_3' ,
295
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_1' : 'all on board_3' ,
296
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_2' : 'all on board_3' ,
297
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_e/test_e.check_1' : 'all on board_3' ,
298
- 'demo_board_3/zephyr/scripts/tests/twister/test_data/testsuites/tests/test_config/test_config.main' : 'all on board_3'
290
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'all on board_3' ,
291
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_2' : 'all on board_3' ,
292
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all on board_3' ,
293
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_b/test_b.check_1' : 'all on board_3' ,
294
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_b/test_b.check_2' : 'all on board_3' ,
295
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_1' : 'all on board_3' ,
296
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_c/test_c.check_2' : 'all on board_3' ,
297
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_e/test_e.check_1' : 'all on board_3' ,
298
+ 'demo_board_3/zephyr/gnu/ scripts/tests/twister/test_data/testsuites/tests/test_config/test_config.main' : 'all on board_3'
299
299
}
300
300
301
301
QUARANTINE_MULTIFILES = {
@@ -621,24 +621,28 @@ def test_testplan_load(
621
621
"name": "ts1",
622
622
"platform": "t-p1",
623
623
"toolchain": "zephyr",
624
+ "compiler": "gnu",
624
625
"testcases": []
625
626
},
626
627
{
627
628
"name": "ts1",
628
629
"platform": "t-p2",
629
630
"toolchain": "zephyr",
631
+ "compiler": "gnu",
630
632
"testcases": []
631
633
},
632
634
{
633
635
"name": "ts2",
634
636
"platform": "t-p3",
635
637
"toolchain": "zephyr",
638
+ "compiler": "gnu",
636
639
"testcases": []
637
640
},
638
641
{
639
642
"name": "ts2",
640
643
"platform": "t-p4",
641
644
"toolchain": "zephyr",
645
+ "compiler": "gnu",
642
646
"testcases": []
643
647
}
644
648
]
@@ -654,24 +658,28 @@ def test_testplan_load(
654
658
"name": "ts1",
655
659
"platform": "ts-p1",
656
660
"toolchain": "zephyr",
661
+ "compiler": "gnu",
657
662
"testcases": []
658
663
},
659
664
{
660
665
"name": "ts1",
661
666
"platform": "ts-p2",
662
667
"toolchain": "zephyr",
668
+ "compiler": "gnu",
663
669
"testcases": []
664
670
},
665
671
{
666
672
"name": "ts2",
667
673
"platform": "ts-p3",
668
674
"toolchain": "zephyr",
675
+ "compiler": "gnu",
669
676
"testcases": []
670
677
},
671
678
{
672
679
"name": "ts2",
673
680
"platform": "ts-p4",
674
681
"toolchain": "zephyr",
682
+ "compiler": "gnu",
675
683
"testcases": []
676
684
}
677
685
]
@@ -687,24 +695,28 @@ def test_testplan_load(
687
695
"name": "ts1",
688
696
"platform": "lt-p1",
689
697
"toolchain": "zephyr",
698
+ "compiler": "gnu",
690
699
"testcases": []
691
700
},
692
701
{
693
702
"name": "ts1",
694
703
"platform": "lt-p2",
695
704
"toolchain": "zephyr",
705
+ "compiler": "gnu",
696
706
"testcases": []
697
707
},
698
708
{
699
709
"name": "ts2",
700
710
"platform": "lt-p3",
701
711
"toolchain": "zephyr",
702
- \" testcases": []
712
+ "compiler": "gnu",
713
+ "testcases": []
703
714
},
704
715
{
705
716
"name": "ts2",
706
717
"platform": "lt-p4",
707
718
"toolchain": "zephyr",
719
+ "compiler": "gnu",
708
720
"testcases": []
709
721
}
710
722
]
@@ -1376,24 +1388,29 @@ def get_platform(name):
1376
1388
ts1 = mock .Mock (testcases = [ts1tc1 ])
1377
1389
ts1 .name = 'TestSuite 1'
1378
1390
ts1 .toolchain = 'zephyr'
1391
+ ts1 .compiler = 'gnu'
1379
1392
ts2 = mock .Mock (testcases = [])
1380
1393
ts2 .name = 'TestSuite 2'
1381
1394
ts2 .toolchain = 'zephyr'
1395
+ ts2 .compiler = 'gnu'
1382
1396
ts3tc1 = mock .Mock ()
1383
1397
ts3tc1 .name = 'TS3.tc1'
1384
1398
ts3tc2 = mock .Mock ()
1385
1399
ts3tc2 .name = 'TS3.tc2'
1386
1400
ts3 = mock .Mock (testcases = [ts3tc1 , ts3tc2 ])
1387
1401
ts3 .name = 'TestSuite 3'
1388
1402
ts3 .toolchain = 'zephyr'
1403
+ ts3 .compiler = 'gnu'
1389
1404
ts4tc1 = mock .Mock ()
1390
1405
ts4tc1 .name = 'TS4.tc1'
1391
1406
ts4 = mock .Mock (testcases = [ts4tc1 ])
1392
1407
ts4 .name = 'TestSuite 4'
1393
1408
ts4 .toolchain = 'zephyr'
1409
+ ts4 .compiler = 'gnu'
1394
1410
ts5 = mock .Mock (testcases = [])
1395
1411
ts5 .name = 'TestSuite 5'
1396
1412
ts5 .toolchain = 'zephyr'
1413
+ ts5 .compiler = 'gnu'
1397
1414
1398
1415
testplan = TestPlan (env = mock .Mock (outdir = os .path .join ('out' , 'dir' )))
1399
1416
testplan .options = mock .Mock (device_testing = device_testing , test_only = True , report_summary = None )
@@ -1421,6 +1438,7 @@ def get_platform(name):
1421
1438
"available_rom": 1047552,
1422
1439
"status": "passed",
1423
1440
"toolchain": "zephyr",
1441
+ "compiler": "gnu",
1424
1442
"reason": "OK",
1425
1443
"testcases": [
1426
1444
{
@@ -1435,7 +1453,8 @@ def get_platform(name):
1435
1453
{
1436
1454
"name": "TestSuite 2",
1437
1455
"platform": "Platform 1",
1438
- "toolchain": "zephyr"
1456
+ "toolchain": "zephyr",
1457
+ "compiler": "gnu"
1439
1458
},
1440
1459
{
1441
1460
"name": "TestSuite 3",
@@ -1448,6 +1467,7 @@ def get_platform(name):
1448
1467
"available_rom": 1047552,
1449
1468
"status": "error",
1450
1469
"toolchain": "zephyr",
1470
+ "compiler": "gnu",
1451
1471
"reason": "File Not Found Error",
1452
1472
"testcases": [
1453
1473
{
@@ -1472,6 +1492,7 @@ def get_platform(name):
1472
1492
"available_rom": 1047552,
1473
1493
"status": "skipped",
1474
1494
"toolchain": "zephyr",
1495
+ "compiler": "gnu",
1475
1496
"reason": "Not in requested test list.",
1476
1497
"testcases": [
1477
1498
{
@@ -1489,7 +1510,8 @@ def get_platform(name):
1489
1510
{
1490
1511
"name": "TestSuite 5",
1491
1512
"platform": "Platform 2",
1492
- "toolchain": "zephyr"
1513
+ "toolchain": "zephyr",
1514
+ "compiler": "gnu"
1493
1515
}
1494
1516
]
1495
1517
}
@@ -1505,7 +1527,8 @@ def get_platform(name):
1505
1527
testplan .load_from_file ('dummy.yaml' , filter_platform )
1506
1528
1507
1529
expected_instances = {
1508
- 'Platform 1/zephyr/TestSuite 1' : {
1530
+ 'Platform 1/zephyr/gnu/TestSuite 1' : {
1531
+ 'compiler' : 'gnu' ,
1509
1532
'metrics' : {
1510
1533
'handler_time' : 60.0 ,
1511
1534
'used_ram' : 4096 ,
@@ -1515,6 +1538,7 @@ def get_platform(name):
1515
1538
},
1516
1539
'retries' : 0 ,
1517
1540
'toolchain' : 'zephyr' ,
1541
+ "compiler" : "gnu" ,
1518
1542
'testcases' : {
1519
1543
'TS1.tc1' : {
1520
1544
'status' : TwisterStatus .PASS ,
@@ -1524,7 +1548,8 @@ def get_platform(name):
1524
1548
}
1525
1549
}
1526
1550
},
1527
- 'Platform 1/zephyr/TestSuite 2' : {
1551
+ 'Platform 1/zephyr/gnu/TestSuite 2' : {
1552
+ 'compiler' : 'gnu' ,
1528
1553
'metrics' : {
1529
1554
'handler_time' : 0 ,
1530
1555
'used_ram' : 0 ,
@@ -1534,9 +1559,11 @@ def get_platform(name):
1534
1559
},
1535
1560
'retries' : 0 ,
1536
1561
'toolchain' : 'zephyr' ,
1562
+ "compiler" : "gnu" ,
1537
1563
'testcases' : []
1538
1564
},
1539
- 'Platform 1/zephyr/TestSuite 3' : {
1565
+ 'Platform 1/zephyr/gnu/TestSuite 3' : {
1566
+ 'compiler' : 'gnu' ,
1540
1567
'metrics' : {
1541
1568
'handler_time' : 360.0 ,
1542
1569
'used_ram' : 4096 ,
@@ -1546,6 +1573,7 @@ def get_platform(name):
1546
1573
},
1547
1574
'retries' : 1 ,
1548
1575
'toolchain' : 'zephyr' ,
1576
+ "compiler" : "gnu" ,
1549
1577
'testcases' : {
1550
1578
'TS3.tc1' : {
1551
1579
'status' : TwisterStatus .ERROR ,
@@ -1561,7 +1589,8 @@ def get_platform(name):
1561
1589
}
1562
1590
}
1563
1591
},
1564
- 'Platform 1/zephyr/TestSuite 4' : {
1592
+ 'Platform 1/zephyr/gnu/TestSuite 4' : {
1593
+ 'compiler' : 'gnu' ,
1565
1594
'metrics' : {
1566
1595
'handler_time' : 360.0 ,
1567
1596
'used_ram' : 4096 ,
@@ -1571,6 +1600,7 @@ def get_platform(name):
1571
1600
},
1572
1601
'retries' : 0 ,
1573
1602
'toolchain' : 'zephyr' ,
1603
+ "compiler" : "gnu" ,
1574
1604
'testcases' : {
1575
1605
'TS4.tc1' : {
1576
1606
'status' : TwisterStatus .SKIP ,
0 commit comments