Skip to content

Commit

Permalink
Added more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Apr 9, 2024
1 parent bb8131e commit 69f9216
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 19 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/robot-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build
**/run
10 changes: 8 additions & 2 deletions test/resources/utils.resource
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*** Settings ***
Documentation A resource file with reusable keywords and variables.
Library Process
Library OperatingSystem

*** Keywords ***
Run Program
Expand All @@ -10,7 +11,12 @@ 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}
Run Program cbuild ${input_file} @{args} -p -r --update-rte

Copy Directory with Content
[Documentation] Recursively copy context from source to destination
[Arguments] ${src_dir} @{dst_dir}
Copy Directory ${src_dir} ${dst_dir}
16 changes: 12 additions & 4 deletions test/src/test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,22 @@ 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${/}
${source_directory} Set Variable ${CURDIR}${/}..${/}data
Set Global Variable ${testDataDir} ${source_directory}${/}..${/}run
Copy Directory ${source_directory} ${testDataDir}

0 comments on commit 69f9216

Please sign in to comment.