-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hello world platform tests (#332)
* add helloworld_on_platforms * split matrix into seperate steps * add reuse port * add hello_world_platforms to circleci * use other resource class * add windows * fix hello_world_on_windows * fix rustup.sh * remove start-process from subscriber * remove set_reuse_port * add set_reuse_port * re-add set_reuse_port
- Loading branch information
Showing
4 changed files
with
89 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,43 @@ parameters: | |
type: boolean | ||
default: false | ||
|
||
orbs: | ||
rust: circleci/[email protected] | ||
|
||
jobs: | ||
hello_world_on_macos: | ||
macos: | ||
xcode: 14.2.0 | ||
resource_class: macos.m1.medium.gen1 | ||
steps: | ||
- checkout | ||
- rust/install | ||
- run: | ||
name: Run Hello world example | ||
command: | | ||
cargo run --example hello_world_publisher & | ||
pid=$! | ||
cargo run --example hello_world_subscriber | ||
wait $pid | ||
hello_world_on_windows: | ||
machine: | ||
image: 'windows-server-2019-vs2019:2024.05.1' | ||
resource_class: windows.medium | ||
shell: powershell.exe -ExecutionPolicy Bypass | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Rust | ||
command: | | ||
curl -o rustup.sh https://sh.rustup.rs | ||
bash rustup.sh -y | ||
- run: | ||
name: Run Hello world example | ||
command: | | ||
$publisher = Start-Process cargo -ArgumentList 'run --example hello_world_publisher' -PassThru | ||
cargo run --example hello_world_subscriber | ||
$publisher.WaitForExit() | ||
build_and_push_docker_image: | ||
docker: | ||
- image: cimg/base:current | ||
|
@@ -288,6 +324,8 @@ workflows: | |
build_and_run_tests: | ||
jobs: | ||
- tests | ||
- hello_world_on_macos | ||
- hello_world_on_windows | ||
- benchmark | ||
- compilation_times | ||
- clippy | ||
|
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 |
---|---|---|
|
@@ -3,51 +3,51 @@ name: interoperability | |
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
interoperability: | ||
name: OMG Interoperability | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Checkout dds-rtps | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: omg-dds/dds-rtps | ||
ref: '53803e70c00cbf60c816bb95c7886701ab9ae597' | ||
path: omg-dds-rtps | ||
sparse-checkout-cone-mode: false | ||
sparse-checkout: | | ||
interoperability_report.py | ||
test_suite.py | ||
rtps_test_utilities.py | ||
requirements.txt | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo build --package dust_dds_shape_main_linux | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11.4' | ||
- name: Downloads assets | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: omg-dds/dds-rtps | ||
latest: true | ||
fileName: "*" | ||
- name: Unzip | ||
run: unzip '*.zip' -d executables | ||
- name: Setting up environment | ||
run: pip install -r omg-dds-rtps/requirements.txt | ||
- name: Publisher Dust - Subscriber Connext | ||
run: python3 ./omg-dds-rtps/interoperability_report.py -P ./target/debug/dust_dds_shape_main_linux -S ./executables/connext_dds-*_shape_main_linux -o=report.xml | ||
- name: Publisher Connext - Subscriber Dust | ||
run: python3 ./omg-dds-rtps/interoperability_report.py -P ./executables/connext_dds-*_shape_main_linux -S ./target/debug/dust_dds_shape_main_linux -o=report.xml | ||
- name: XUnit | ||
uses: AutoModality/action-xunit-viewer@v1 | ||
with: | ||
results: ./report.xml | ||
fail: false | ||
- name: Upload report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: interoperability_report | ||
path: ./index.html | ||
jobs: | ||
interoperability: | ||
name: OMG Interoperability | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Checkout dds-rtps | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: omg-dds/dds-rtps | ||
ref: '53803e70c00cbf60c816bb95c7886701ab9ae597' | ||
path: omg-dds-rtps | ||
sparse-checkout-cone-mode: false | ||
sparse-checkout: | | ||
interoperability_report.py | ||
test_suite.py | ||
rtps_test_utilities.py | ||
requirements.txt | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo build --package dust_dds_shape_main_linux | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11.4' | ||
- name: Downloads assets | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: omg-dds/dds-rtps | ||
latest: true | ||
fileName: "*" | ||
- name: Unzip | ||
run: unzip '*.zip' -d executables | ||
- name: Setting up environment | ||
run: pip install -r omg-dds-rtps/requirements.txt | ||
- name: Publisher Dust - Subscriber Connext | ||
run: python3 ./omg-dds-rtps/interoperability_report.py -P ./target/debug/dust_dds_shape_main_linux -S ./executables/connext_dds-*_shape_main_linux -o=report.xml | ||
- name: Publisher Connext - Subscriber Dust | ||
run: python3 ./omg-dds-rtps/interoperability_report.py -P ./executables/connext_dds-*_shape_main_linux -S ./target/debug/dust_dds_shape_main_linux -o=report.xml | ||
- name: XUnit | ||
uses: AutoModality/action-xunit-viewer@v1 | ||
with: | ||
results: ./report.xml | ||
fail: false | ||
- name: Upload report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: interoperability_report | ||
path: ./index.html |
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