forked from Open-CMSIS-Pack/cmsis-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
194 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import markdown | ||
import pandas as pd | ||
from io import StringIO | ||
|
||
class SummaryResult: | ||
def __init__(self, passed, failed, skipped, total): | ||
self.passed = passed | ||
self.failed = failed | ||
self.skipped = skipped | ||
self.total = total | ||
|
||
class MarkdownReader: | ||
def __init__(self, input_file_path:str): | ||
self.input_file=input_file_path | ||
self.html_content = "" | ||
|
||
def read(self): | ||
# Read the Markdown file | ||
with open(self.input_file, 'r') as file: | ||
md_content = file.read() | ||
|
||
# Convert the Markdown to HTML | ||
self.html_content = markdown.markdown(md_content) | ||
|
||
def extract_summary_table(self): | ||
# Extract the tables from the HTML | ||
tables = pd.read_html(StringIO(self.html_content)) | ||
# The second table is the summary table | ||
summary_table = tables[1] | ||
# Extract the summary results | ||
passed = int(summary_table.iloc[0, 0]) | ||
failed = int(summary_table.iloc[0, 1]) | ||
skipped = int(summary_table.iloc[0, 2]) | ||
total = int(summary_table.iloc[0, 3]) | ||
|
||
return SummaryResult(passed, failed, skipped, total) | ||
|
||
|
||
def compare_summary(markdownFile:str, referenceFile:str): | ||
mdFileSummary = MarkdownReader(markdownFile).extract_summary_table() | ||
refFileSummary = MarkdownReader(referenceFile).extract_summary_table() | ||
# Compare the results | ||
results_match = ( | ||
mdFileSummary.passed == refFileSummary.passed and | ||
mdFileSummary.failed == refFileSummary.failed and | ||
mdFileSummary.skipped == refFileSummary.skipped and | ||
mdFileSummary.total == refFileSummary.total | ||
) | ||
|
||
return results_match | ||
|
||
# print("Summary results match expected values:", results_match) | ||
# print(f"Passed: {passed}, Expected: {expected_passed}") | ||
# print(f"Failed: {failed}, Expected: {expected_failed}") | ||
# print(f"Skipped: {skipped}, Expected: {expected_skipped}") | ||
# print(f"Total: {total}, Expected: {expected_total}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Robot Framework Report | ||
|
||
## Test Environment | ||
|
||
|Name|Version| | ||
|:---|:------| | ||
|cbuild|2.4.0-43-gd715d2f| | ||
|cpackget|2.1.3-1-g0aaeca9| | ||
|csolution|2.4.0+p63-g2fdb3c85| | ||
|cbuild2cmake|0.9.1-26-g1120292| | ||
|cbuildgen|2.4.0+p62-g2fdb3c85| | ||
|
||
## Summary | ||
|
||
|:white_check_mark: Passed|:x: Failed|:fast_forward: Skipped|Total| | ||
|:----:|:----:|:-----:|:---:| | ||
|39|15|0|53| | ||
|
||
## Passed Tests | ||
|
||
|Tag|Test|:clock1030: Duration|Suite| | ||
|:---:|:---:|:---:|:---:| | ||
|windows-amd64|Validate build-c Example|6.01 s|Local Example Tests| | ||
|windows-amd64|Validate build-cpp Example|9.21 s|Local Example Tests| | ||
|windows-amd64|Validate linker-pre-processing Example|6.39 s|Local Example Tests| | ||
|windows-amd64|Validate pre-include Example|6.10 s|Local Example Tests| | ||
|windows-amd64|Validate whitespace Example|6.04 s|Local Example Tests| | ||
|windows-amd64|Validate trustzone Example|48.31 s|Local Example Tests| | ||
|windows-amd64|Hello_B-U585I-IOT02A|44.34 s|Remote Example Tests| | ||
|windows-amd64|Hello_FRDM-K32L3A6|27.11 s|Remote Example Tests| | ||
|windows-amd64|Hello_IMXRT1050-EVKB|33.85 s|Remote Example Tests| | ||
|windows-amd64|Hello_LPCXpresso55S69|29.09 s|Remote Example Tests| | ||
|windows-amd64|Blinky_FRDM-K32L3A6|24.95 s|Remote Example Tests| | ||
|windows-amd64|keil-studio-get-started|7.20 s|Remote Example Tests| | ||
|windows-amd64|Hello_AVH|72.43 s|Remote Example Tests| | ||
|linux-amd64|Validate build-c Example|1.59 s|Local Example Tests| | ||
|linux-amd64|Validate build-cpp Example|2.45 s|Local Example Tests| | ||
|linux-amd64|Validate linker-pre-processing Example|1.62 s|Local Example Tests| | ||
|linux-amd64|Validate pre-include Example|1.69 s|Local Example Tests| | ||
|linux-amd64|Validate whitespace Example|1.61 s|Local Example Tests| | ||
|linux-amd64|Validate trustzone Example|7.59 s|Local Example Tests| | ||
|linux-amd64|Hello_B-U585I-IOT02A|19.91 s|Remote Example Tests| | ||
|linux-amd64|Hello_FRDM-K32L3A6|8.79 s|Remote Example Tests| | ||
|linux-amd64|Hello_IMXRT1050-EVKB|11.89 s|Remote Example Tests| | ||
|linux-amd64|Hello_LPCXpresso55S69|15.33 s|Remote Example Tests| | ||
|linux-amd64|Blinky_FRDM-K32L3A6|9.20 s|Remote Example Tests| | ||
|linux-amd64|keil-studio-get-started|3.63 s|Remote Example Tests| | ||
|linux-amd64|Hello_AVH|28.00 s|Remote Example Tests| | ||
|darwin-amd64|Validate build-c Example|4.44 s|Local Example Tests| | ||
|darwin-amd64|Validate build-cpp Example|6.57 s|Local Example Tests| | ||
|darwin-amd64|Validate linker-pre-processing Example|4.56 s|Local Example Tests| | ||
|darwin-amd64|Validate pre-include Example|4.72 s|Local Example Tests| | ||
|darwin-amd64|Validate whitespace Example|4.82 s|Local Example Tests| | ||
|darwin-amd64|Validate trustzone Example|19.98 s|Local Example Tests| | ||
|darwin-amd64|Hello_B-U585I-IOT02A|32.40 s|Remote Example Tests| | ||
|darwin-amd64|Hello_FRDM-K32L3A6|14.36 s|Remote Example Tests| | ||
|darwin-amd64|Hello_IMXRT1050-EVKB|15.43 s|Remote Example Tests| | ||
|darwin-amd64|Hello_LPCXpresso55S69|15.10 s|Remote Example Tests| | ||
|darwin-amd64|Blinky_FRDM-K32L3A6|13.49 s|Remote Example Tests| | ||
|darwin-amd64|keil-studio-get-started|5.79 s|Remote Example Tests| | ||
|darwin-amd64|Hello_AVH|47.37 s|Remote Example Tests| | ||
|
||
## Failed Tests | ||
|
||
|Tag|Test|Message|:clock1030: Duration|Suite| | ||
|:---:|:---:|:---:|:---:|:---:| | ||
|windows-amd64|Validate build-asm Example|Unexpected status returned by cbuildgen execution: 1 != 0|10.03 s|Local Example Tests| | ||
|windows-amd64|Validate include-define Example|Unexpected status returned by cbuild2cmake execution: 1 != 0|5.12 s|Local Example Tests| | ||
|windows-amd64|Validate language-scope Example|Unexpected status returned by cbuildgen execution: 1 != 0|3.51 s|Local Example Tests| | ||
|windows-amd64|Blinky_NUCLEO-G0B1RE|Unexpected status returned by cbuild2cmake execution: 1 != 0|22.25 s|Remote Example Tests| | ||
|windows-amd64|Blinky_NUCLEO-F756ZG|Unexpected status returned by cbuild2cmake execution: 1 != 0|27.58 s|Remote Example Tests| | ||
|linux-amd64|Validate build-asm Example|Unexpected status returned by cbuildgen execution: 1 != 0|3.25 s|Local Example Tests| | ||
|linux-amd64|Validate include-define Example|Unexpected status returned by cbuild2cmake execution: 1 != 0|1.42 s|Local Example Tests| | ||
|linux-amd64|Validate language-scope Example|Unexpected status returned by cbuildgen execution: 1 != 0|1.00 s|Local Example Tests| | ||
|linux-amd64|Blinky_NUCLEO-G0B1RE|Unexpected status returned by cbuild2cmake execution: 1 != 0|10.52 s|Remote Example Tests| | ||
|linux-amd64|Blinky_NUCLEO-F756ZG|Unexpected status returned by cbuild2cmake execution: 1 != 0|11.91 s|Remote Example Tests| | ||
|darwin-amd64|Validate build-asm Example|Unexpected status returned by cbuildgen execution: 1 != 0|8.99 s|Local Example Tests| | ||
|darwin-amd64|Validate include-define Example|Unexpected status returned by cbuild2cmake execution: 1 != 0|3.58 s|Local Example Tests| | ||
|darwin-amd64|Validate language-scope Example|Unexpected status returned by cbuildgen execution: 1 != 0|2.35 s|Local Example Tests| | ||
|darwin-amd64|Blinky_NUCLEO-G0B1RE|Unexpected status returned by cbuild2cmake execution: 1 != 0|14.92 s|Remote Example Tests| | ||
|darwin-amd64|Blinky_NUCLEO-F756ZG|Unexpected status returned by cbuild2cmake execution: 1 != 0|21.39 s|Remote Example Tests| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*** Test Cases ***;${github_url};${expect};[Tags];[Documentation] | ||
Hello_B-U585I-IOT02A;https://github.com/Arm-Examples/Hello_B-U585I-IOT02A;${0};; | ||
Hello_FRDM-K32L3A6;https://github.com/Arm-Examples/Hello_FRDM-K32L3A6;${0};; | ||
Hello_IMXRT1050-EVKB;https://github.com/Arm-Examples/Hello_IMXRT1050-EVKB;${0};; | ||
Hello_LPCXpresso55S69;https://github.com/Arm-Examples/Hello_LPCXpresso55S69;${0};; | ||
Blinky_FRDM-K32L3A6;https://github.com/Arm-Examples/Blinky_FRDM-K32L3A6;${0};; | ||
Blinky_NUCLEO-G0B1RE;https://github.com/Arm-Examples/Blinky_NUCLEO-G0B1RE;${0};; | ||
Blinky_NUCLEO-F756ZG;https://github.com/Arm-Examples/Blinky_NUCLEO-F756ZG;${0};; | ||
keil-studio-get-started;https://github.com/Arm-Examples/keil-studio-get-started;${0};; | ||
Hello_AVH;https://github.com/Arm-Examples/Hello_AVH;${0};; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# Requirements needed | ||
robotframework >= 7.0 | ||
robotframework-datadriver >= 1.11.2 | ||
markdown >= 3.6 | ||
pandas >= 2.2.2 | ||
lxml >= 5.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters