Skip to content

Commit

Permalink
Adding Automatic Interoperability Tests (#10)
Browse files Browse the repository at this point in the history
Adding script for testing interoperability automatically.
---------

Co-authored-by: ariasmartinez <44967058+ariasmartinez@users.noreply.github.com>
Co-authored-by: Gerardo Pardo <gerardo@rti.com>
Co-authored-by: ClarkTucker <ctucker@twinoakscomputing.com>
  • Loading branch information
4 people authored Jun 19, 2023
1 parent 996b592 commit 3b66a52
Show file tree
Hide file tree
Showing 32 changed files with 2,373 additions and 168 deletions.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/interoperability-issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Interoperability issue template
about: Report an interoperability problem
title: 'Problem with QoS/parameter'
labels: ''
assignees: ''

---

- **Please, modify the Title accordingly to show the problem**

### Executable's name

- **Publisher**:
- **Subscriber**:

### Reproducing the problem

- **Test Suite**:
- **Test Case**:
- **Link to the GitHub Action workflow run**:

### What is the problem?

- **Publisher expected code**:
- **Publisher produced code**:
- **Subscriber expected code**:
- **Subscriber produced code**:

### Suggestions about why this problem exists

-

### Other comments
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Testing Interoperability
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: workflow_dispatch
jobs:
Testing_Interoperability:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Downloads assets
uses: robinraju/release-downloader@v1.7
with:
latest: true
fileName: "*"
- name: Unzip
run: unzip '*.zip' -d executables
- name: Run Interoperability script
run: |
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd executables
for i in ./* ; \
do for j in ./*; \
do python3 ./../interoperability_report.py -P $i -S $j -o=./../junit_interoperability_report.xml; \
done; \
done
- name: XUnit Viewer
id: xunit-viewer
uses: AutoModality/action-xunit-viewer@v1
with:
results: ./junit_interoperability_report.xml
- name: Attach the report
if: always()
uses: actions/upload-artifact@v1
with:
name: report
path: ./index.html
17 changes: 16 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,30 @@
*.out
*.app
shape_main
*shape_main_linux

# Generated Makefiles
.depend.*
GNUmakefile*

#Bin and Object directories
# Bin and Object directories
bin/
objs/

# Other
*~
GeneratedCode

# Python files
.venv/
*.pyc

# Generated files
srcCxx/shape.*
srcCxx/shapePlugin.*
srcCxx/shapeSupport.*

.vscode/

# Generated reports
*.html
Loading

0 comments on commit 3b66a52

Please sign in to comment.