Skip to content

Commit

Permalink
List DENM-PDU-Descriptions (ETSI EN 302 637-3) as supported standard …
Browse files Browse the repository at this point in the history
…& add test
  • Loading branch information
kellerkindt committed Mar 31, 2021
1 parent 0b5022b commit b10303a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,28 @@ jobs:
--retry-connrefused --waitretry=2 --read-timeout=10 --timeout=10 -t 10
https://forge.etsi.org/rep/ITS/asn1/cdd_ts102894_2/raw/151b191121d05c3b808f5dec14387339730db14f/ITS-Container.asn
https://forge.etsi.org/rep/ITS/asn1/cam_en302637_2/raw/7ae4195d48dd468754a50f1a3bb0c2ce976ae15a/CAM-PDU-Descriptions.asn
https://forge.etsi.org/rep/ITS/asn1/denm_en302637_3/raw/29ec748fd9a0e44b91e1896867fa34453781e334/DENM-PDU-Descriptions.asn
- uses: actions-rs/cargo@v1
with:
command: run
args: -- tests ITS-Container.asn CAM-PDU-Descriptions.asn
- run: bash -c "echo '#[test] fn does_it_compile() { let _ = StationId(1); }' >> tests/its_container.rs"
args: -- tests ITS-Container.asn CAM-PDU-Descriptions.asn DENM-PDU-Descriptions.asn
- run: sed -i '1i mod its_container;' tests/cam_pdu_descriptions.rs
- run: sed -i 's/super::/crate::/g' tests/cam_pdu_descriptions.rs
- run: cat tests/cam_pdu_descriptions.rs
- run: sed -i '1i mod its_container;' tests/denm_pdu_descriptions.rs
- run: sed -i 's/super::/crate::/g' tests/denm_pdu_descriptions.rs
- run: bash -c "echo '#[test] fn does_it_compile() { let _ = StationId(1); }' >> tests/its_container.rs"
- run: bash -c "echo '#[test] fn does_it_compile() { let _ = GenerationDeltaTime(1); }' >> tests/cam_pdu_descriptions.rs"
- run: bash -c "echo '#[test] fn does_it_compile() { }' >> tests/denm_pdu_descriptions.rs"
- run: cat tests/its_container.rs
- run: cat tests/cam_pdu_descriptions.rs
- run: cat tests/denm_pdu_descriptions.rs
- uses: actions-rs/cargo@v1
with:
command: test
args: --test its_container does_it_compile
- uses: actions-rs/cargo@v1
with:
command: test
args: --test cam_pdu_descriptions does_it_compile
args: >
--test its_container does_it_compile
--test cam_pdu_descriptions does_it_compile
--test denm_pdu_descriptions does_it_compile
coverage:
name: Test Coverage
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ The crate can be used as standalone CLI binary or used as library through its AP
- [📜️ ETSI EN 302 637-2 (PDF)](https://www.etsi.org/deliver/etsi_en/302600_302699/30263702/01.03.01_30/en_30263702v010301v.pdf)
/ [🧰 CAM-PDU-Description (GIT)](https://forge.etsi.org/rep/ITS/asn1/cam_en302637_2/blob/7ae4195d48dd468754a50f1a3bb0c2ce976ae15a/CAM-PDU-Descriptions.asn): \
```itu-t(0) identified-organization(4) etsi(0) itsDomain(5) wg1(1) en(302637) cam(2) version(2)```
- [📜️ ETSI EN 302 637-3 (PDF)](https://www.etsi.org/deliver/etsi_en/302600_302699/30263703/01.02.01_30/en_30263703v010201v.pdf)
/ [🧰 DENM-PDU-Descriptions (GIT)](https://forge.etsi.org/rep/ITS/asn1/denm_en302637_3/blob/29ec748fd9a0e44b91e1896867fa34453781e334/DENM-PDU-Descriptions.asn): \
```itu-t(0) identified-organization(4) etsi(0) itsDomain(5) wg1(1) en(302637) denm(1) version(2)```

### CLI usage

Expand Down

0 comments on commit b10303a

Please sign in to comment.