Skip to content

Commit

Permalink
chore: Use config in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Jul 8, 2022
1 parent a4862fc commit 7f6296e
Showing 1 changed file with 33 additions and 22 deletions.
55 changes: 33 additions & 22 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,50 +66,61 @@ jobs:
run: |
poetry install
- name: Spawn vECU
- name: Spawn vECU and add config
run: |
poetry run gallia script vecu "tcp-lines://127.0.0.1:20162" rng --seed 3 --mandatory_sessions "[1, 2, 3]" --mandatory_services "[DiagnosticSessionControl, EcuReset, ReadDataByIdentifier, WriteDataByIdentifier, RoutineControl, SecurityAccess, ReadMemoryByAddress, WriteMemoryByAddress, RequestDownload, RequestUpload, TesterPresent, ReadDTCInformation, ClearDiagnosticInformation, InputOutputControlByIdentifier]" &
echo "[gallia]" > gallia.toml
echo "[gallia.scan]" >> gallia.toml
echo 'target = "tcp-lines://127.0.0.1:20162"' >> gallia.toml
echo 'dumpcap = false' >> gallia.toml
echo "[gallia.discover]" >> gallia.toml
echo 'dumpcap = false' >> gallia.toml
echo "[gallia.scan.uds]" >> gallia.toml
echo 'ecu-reset = true' >> gallia.toml
echo "[gallia.primitive.uds]" >> gallia.toml
echo 'ecu-reset = true' >> gallia.toml
- name: Test scan-services
run: |
poetry run gallia scan uds services --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap --sessions 1 2 --check-session
poetry run gallia scan uds services --sessions 1 2 --check-session
- name: Test scan-sessions
run: |
poetry run gallia scan uds sessions --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap --depth 2
poetry run gallia scan uds sessions --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap --fast
poetry run gallia scan uds sessions --depth 2
poetry run gallia scan uds sessions --fast
- name: Test scan-identifiers
run: |
poetry run gallia scan uds identifiers --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap --start 0 --end 100 --sid 0x22
poetry run gallia scan uds identifiers --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap --start 0 --end 100 --sid 0x2e
poetry run gallia scan uds identifiers --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap --start 0 --end 100 --sid 0x31
poetry run gallia scan uds identifiers --start 0 --end 100 --sid 0x22
poetry run gallia scan uds identifiers --start 0 --end 100 --sid 0x2e
poetry run gallia scan uds identifiers --start 0 --end 100 --sid 0x31
- name: Test scan-reset
run: |
poetry run gallia scan uds reset --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap
poetry run gallia scan uds reset
- name: Test scan-dump-seeds
run: |
poetry run gallia scan uds dump-seeds --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap --duration 0.01 --level 0x2f
poetry run gallia scan uds dump-seeds --duration 0.01 --level 0x2f
- name: Test scan-memory-functions
run: |
for sid in 0x23 0x34 0x35 0x3d; do
poetry run gallia scan uds memory --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap --sid "$sid"
poetry run gallia scan uds memory --sid "$sid"
done
- name: Test UDS primitives
run: |
poetry run gallia primitive uds ecu-reset --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap
poetry run gallia primitive uds error-log --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap
poetry run gallia primitive uds vin --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap
poetry run gallia primitive uds ping --ecu-reset --count 2 --target "tcp-lines://127.0.0.1:20162" --no-dumpcap
poetry run gallia primitive uds rdbid --ecu-reset --data-id 0x108d --target "tcp-lines://127.0.0.1:20162" --no-dumpcap
poetry run gallia primitive uds send-pdu 1001 --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap
poetry run gallia primitive uds rdbid --ecu-reset --data-id 0x2266 --data 00 --target "tcp-lines://127.0.0.1:20162" --no-dumpcap
poetry run gallia primitive uds dtc --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap read
poetry run gallia primitive uds dtc --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap clear
poetry run gallia primitive uds dtc --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap control --stop
poetry run gallia primitive uds dtc --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap control --resume
poetry run gallia primitive uds iocbi --ecu-reset --target "tcp-lines://127.0.0.1:20162" --no-dumpcap 0x1000 reset-to-default
poetry run gallia primitive uds ecu-reset
poetry run gallia primitive uds error-log
poetry run gallia primitive uds vin
poetry run gallia primitive uds ping --count 2
poetry run gallia primitive uds rdbid --data-id 0x108d
poetry run gallia primitive uds send-pdu 1001
poetry run gallia primitive uds rdbid --data-id 0x2266 --data 00
poetry run gallia primitive uds dtc read
poetry run gallia primitive uds dtc clear
poetry run gallia primitive uds dtc control --stop
poetry run gallia primitive uds dtc control --resume
poetry run gallia primitive uds iocbi 0x1000 reset-to-default

0 comments on commit 7f6296e

Please sign in to comment.