From 1077a1649823b089122046cc6699fbbf8882970c Mon Sep 17 00:00:00 2001 From: Sourabh Mehta Date: Tue, 9 Apr 2024 16:20:10 +0200 Subject: [PATCH] Added more examples --- .github/workflows/robot-tests.yml | 26 +++++++++++++------------- test/resources/utils.resource | 4 ++-- test/src/test.robot | 12 +++++++++--- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/robot-tests.yml b/.github/workflows/robot-tests.yml index 17c5e18..2075e26 100644 --- a/.github/workflows/robot-tests.yml +++ b/.github/workflows/robot-tests.yml @@ -79,18 +79,18 @@ jobs: name: reports path: ./test/reports - generate_report: - runs-on: ubuntu-latest - needs: robot-tests - steps: - - name: Download reports - uses: actions/download-artifact@v4 - with: - name: reports - path: reports + # generate_report: + # runs-on: ubuntu-latest + # needs: robot-tests + # steps: + # - name: Download reports + # uses: actions/download-artifact@v4 + # with: + # name: reports + # path: reports - - name: Send report to commit - uses: joonvena/robotframework-reporter-action@v2.4 - with: - gh_access_token: ${{ secrets.GITHUB_TOKEN }} + # - name: Send report to commit + # uses: joonvena/robotframework-reporter-action@v2.4 + # with: + # gh_access_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/test/resources/utils.resource b/test/resources/utils.resource index 35ffd77..330aab3 100644 --- a/test/resources/utils.resource +++ b/test/resources/utils.resource @@ -10,7 +10,7 @@ Run Program Run Keyword If '${result.rc}' != '${expected_ret_code}' Log Many Output: ${result.stdout} Return Code: ${result.rc} Should Be Equal '${result.rc}' '${expected_ret_code}' -Run csolution +Run cbuild [Documentation] Run csolution example with specified arguments [Arguments] ${input_file} @{args} - Run Program cbuild ${input_file} @{args} \ No newline at end of file + Run Program cbuild ${input_file} @{args} -p -r --update-rte \ No newline at end of file diff --git a/test/src/test.robot b/test/src/test.robot index 0ffcb77..1f47dc6 100644 --- a/test/src/test.robot +++ b/test/src/test.robot @@ -10,14 +10,20 @@ Test Template Run csolution examples ${RESOURCES} ../resources -*** Test Cases *** ${input_file} ${args} -Run Hello example ${testDataDir}/Hello${/}Hello.csolution.yml -p -r --update-rte +*** Test Cases *** ${input_file} ${args} +Run Hello ${testDataDir}/Hello${/}Hello.csolution.yml +Run build-asm ${testDataDir}/build-asm${/}solution.csolution.yml +Run build-c ${testDataDir}/build-c${/}solution.csolution.yml +Run build-cpp ${testDataDir}/build-cpp${/}solution.csolution.yml +Run include-define ${testDataDir}/include-define${/}solution.csolution.yml +Run linker-pre-processing ${testDataDir}/linker-pre-processing${/}solution.csolution.yml +Run pre-include ${testDataDir}/pre-include${/}solution.csolution.yml *** Keywords *** Run csolution examples [Arguments] ${input_file} @{args} - Run csolution ${input_file} @{args} + Run cbuild ${input_file} @{args} Suite Setup Set Global Variable ${testDataDir} ${CURDIR}${/}..${/}data${/}