diff --git a/.github/workflows/e2e_test.yaml b/.github/workflows/e2e_test.yaml index 2b9791f..fb60d14 100644 --- a/.github/workflows/e2e_test.yaml +++ b/.github/workflows/e2e_test.yaml @@ -71,6 +71,7 @@ jobs: - name: Run Test shell: bash + continue-on-error: true run: | robot --outputdir reports-${{ matrix.target }}-${{ matrix.arch }} \ --settag ${{ matrix.target }}-${{ matrix.arch }} \ diff --git a/test/pack_example_tests.csv b/test/pack_example_tests.csv index 96a440c..c06c4d9 100644 --- a/test/pack_example_tests.csv +++ b/test/pack_example_tests.csv @@ -1,5 +1,2 @@ *** Test Cases ***;${pack_id};${expect};[Tags];[Documentation] -NXP::LPCXpresso55S69_BSP.18.0.0;NXP::LPCXpresso55S69_BSP@18.0.0;${0};; -NXP::LPCXpresso55S69_USB_Examples.1.0.0;NXP::LPCXpresso55S69_USB_Examples@1.0.0;${0};; -NXP::FRDM-K32L3A6_BSP.18.0.0;NXP::FRDM-K32L3A6_BSP@18.0.0;${0};; -NXP::MIMXRT1060-EVKB_BSP.18.0.0;NXP::MIMXRT1060-EVKB_BSP@18.0.0;${0};; \ No newline at end of file +NXP::FRDM-K32L3A6_BSP.17.0.0;NXP::FRDM-K32L3A6_BSP@17.0.0;${0};; \ No newline at end of file diff --git a/test/pack_example_tests.robot b/test/pack_example_tests.robot index ea78969..ffd68d6 100644 --- a/test/pack_example_tests.robot +++ b/test/pack_example_tests.robot @@ -43,8 +43,8 @@ Run Csolution Project # Append To List ${args} ${filcontexts} @{MERGED_LIST} Create List @{args} @{filcontexts} Log Many ${MERGED_LIST} - Run Project With cbuildgen ${input_file} ${expect} ${MERGED_LIST} - Run Project with cbuild2cmake ${input_file} ${expect} ${args} + # Run Project With cbuildgen ${input_file} ${expect} ${MERGED_LIST} + Run Project with cbuild2cmake ${input_file} ${expect} ${MERGED_LIST} ${parent_path}= Get Parent Directory Path ${input_file} ${result}= Run Keyword And Return ... Compare Elf Information ${input_file} diff --git a/test/resources/utils.resource b/test/resources/utils.resource index 3c6eecf..d2fbccb 100644 --- a/test/resources/utils.resource +++ b/test/resources/utils.resource @@ -42,26 +42,35 @@ Run Program1 Log Output String ${result.stdout} RETURN ${ret_code} + Run Program [Documentation] Run specified executable with arguments - [Arguments] ${exe_path} ${command} ${input_File} @{args} - ${result} Run Process ${exe_path} ${command} ${input_File} @{args} - ... shell=True stdout=${CURDIR}/stdout.txt - ${ret_code}= Set Variable If ${result.rc} == ${0} ${result.rc} ${1} + [Arguments] ${exe_path} ${input_file} @{args} ${command}=${EMPTY} + ${is_command_empty}= Evaluate '${command}' == '${EMPTY}' + ${result}= Run Keyword If ${is_command_empty} Run Process ${exe_path} ${input_file} @{args} shell=True stdout=${CURDIR}/stdout.txt + ... ELSE Run Process ${exe_path} ${command} ${input_file} @{args} shell=True stdout=${CURDIR}/stdout.txt + ${ret_code}= Set Variable If ${result.rc} == 0 ${result.rc} ${1} Log Output String ${result.stdout} - RETURN + RETURN ${ret_code} -Run Program2 - [Documentation] Run specified executable with arguments - [Arguments] ${exe_path} ${input_File} @{args} - Log Many ${exe_path} - Log Many ${input_file} - Log Many ${args} - ${result} Run Process ${exe_path} ${input_File} @{args} - ... shell=True stdout=${CURDIR}/stdout.txt - ${ret_code}= Set Variable If ${result.rc} == ${0} ${result.rc} ${1} - Log Output String ${result.stdout} - RETURN + +# Run Program +# [Documentation] Run specified executable with arguments +# [Arguments] ${exe_path} ${command} ${input_File} @{args} +# ${result} Run Process ${exe_path} ${command} ${input_File} @{args} +# ... shell=True stdout=${CURDIR}/stdout.txt +# ${ret_code}= Set Variable If ${result.rc} == ${0} ${result.rc} ${1} +# Log Output String ${result.stdout} +# RETURN ${ret_code} + +# Run Program2 +# [Documentation] Run specified executable with arguments +# [Arguments] ${exe_path} ${input_File} @{args} +# ${result} Run Process ${exe_path} ${input_File} @{args} +# ... shell=True stdout=${CURDIR}/stdout.txt +# ${ret_code}= Set Variable If ${result.rc} == ${0} ${result.rc} ${1} +# Log Output String ${result.stdout} +# RETURN ${ret_code} # Run cbuild # [Documentation] Run cbuild with specified arguments @@ -77,13 +86,10 @@ Run cbuild [Documentation] Run cbuild with specified arguments [Arguments] ${input_file} ${command} ${args}=@{EMPTY} Append To List ${args} -p -r --update-rte - Log Many ${command} - Log Many ${input_file} - Log Many ${args} - ${ret_code}= Run Keyword If '${command}' == '${EMPTY}' Run Program2 cbuild ${input_file} @{args} - ... ELSE Run Program cbuild ${command} ${input_file} @{args} - # ${ret_code}= Run Program cbuild ${command} ${input_file} @{args} - RETURN ${ret_code} + ${is_command_empty}= Evaluate '${command}' == '${EMPTY}' + ${ret_code}= Run Keyword If ${is_command_empty} Run Program cbuild ${input_file} @{args} + ... ELSE Run Program cbuild ${input_file} @{args} ${command} + RETURN ${ret_code} Change Directory Permissions [Documentation] Change directory permissions @@ -121,10 +127,18 @@ Run Project With cbuild2cmake [Documentation] Run the csolution project with cbuild2cmake [Arguments] ${input_file} ${expect} ${args}=@{EMPTY} Append To List ${args} --cbuild2cmake - ${args}= Insert At Front ${args} ${input_file} - ${ret_code}= Run cbuild ${input_file} ${empty} ${args} + # ${args}= Insert At Front ${args} ${input_file} + ${ret_code}= Run cbuild ${input_file} ${EMPTY} ${args} Should Be Equal ${ret_code} ${expect} msg=Unexpected status returned by cbuild2cmake execution +# Run Project With cbuild2cmake +# [Documentation] Run the csolution project with cbuild2cmake +# [Arguments] ${input_file} ${expect} ${args}=@{EMPTY} +# Append To List ${args} --cbuild2cmake +# ${args}= Insert At Front ${args} ${input_file} +# ${ret_code}= Run cbuild ${input_file} ${empty} ${args} +# Should Be Equal ${ret_code} ${expect} msg=Unexpected status returned by cbuild2cmake execution + Append Additional Arguments [Documentation] Append values to the list [Arguments] ${list} @{values}