White paper: Root of Trust in the software-defined vehicle

Case · Veoneer · Autotech

Every commit tested on a forward-looking radar

How Veoneer took a forward-looking radar from manual verification to a CI chain that builds and tests every commit, with Diadrom Dolphin and Diadrom.

An automotive radar sensor on a test fixture, wired to a CAN interface, with automated test results on a screen behind it
Illustration, AI-generated

In brief

  1. 01 · Verification

    200+ automated test cases over CAN and CAN FD, run on every release and between releases.

  2. 02 · Business

    The release build went from about three days of manual work to about one hour of automated build.

  3. 03 · Technical

    UDS over CAN and CAN FD, diagnostic test cases in Python, a Jenkins CI chain with unit tests, static analysis and code coverage.

  4. 04 · Capability

    From a proof of concept to a CI chain where every commit is built and tested.

Standards and products in this programme

How Veoneer took a forward-looking radar from manual verification to a CI chain where every commit is built and tested — with Diadrom Dolphin and Diadrom’s CI team.

It began as a proof of concept and a set of workshops on automated testing. It ended with 200+ automated test cases on every release and a release build that went from days to an hour.

Active safety is only as good as its verification

A forward-looking radar is part of what lets a car brake and steer for the driver. Its software changes often, and every change has to be proved before it reaches a vehicle: the communication, the diagnostics, the software download and the function itself. When that proof depends on people running tests by hand and assembling builds by hand, verification becomes the slowest step in the programme, and the most expensive place to find a defect.

A radar node, verified by hand

Veoneer was developing the software for a vehicle manufacturer’s forward-looking radar. The tests ran against the manufacturer’s base-technology requirements, over both CAN and CAN FD, and every release had to pass them. Building a release was largely manual work, and there was no automated build and test chain behind the team. Veoneer wanted to run the full verification in its own environment, overnight and on every release, without waiting for people to do it.

Step one: Dolphin as the test framework

After a proof of concept and joint workshops, Diadrom delivered Diadrom Dolphin as the automated test framework for the radar node. The work covered:

  • Dolphin adapted for testing embedded hardware
  • UDS over CAN and over CAN FD
  • Diagnostic test cases written in Python, built from the manufacturer’s test procedures
  • Test results exported to the requirements and test-management tools the programme used, such as DOORS and Elektra
  • Deep analysis, fault tracing and bug tracing on the active-safety node

More than 200 test cases were automated. They ran on every release and between releases, so a regression showed up the day it was introduced.

Step two: a CI chain around it

With the tests automated, Veoneer asked Diadrom to help improve the CI system around them. Diadrom started with a four-week pre-study: mapping the existing systems, comparing CI servers, looking at integration with the configuration-management system and at how embedded software and reports should be handled. The pre-study ended in recommendations and a plan.

The implementation followed: a CI solution built around Jenkins, designed for both module-level and system-level CI. Its scope included:

  • Distributed Jenkins with pipelines and a staging environment
  • Unit tests with CppUTest, test reports in xUnit/JUnit format and code coverage with gcovr and Cobertura
  • Static analysis with QAC/PRQA
  • Integration with PTC Integrity for configuration management
  • Builds on virtual machines and in containers, with the TriCore toolchain
  • Hardware and system integration

What it changed

Every commit was now built and tested automatically. The release build, which had taken about three days of manual work, became an automated build of about an hour. The 200+ test cases kept running on every release. Verification went from the slowest step in the programme to something that happened on its own.

The next step: verify before the vehicle

The same approach was then drawn up as a concept for future radar generations: a chain from build, to testing off-target, to testing on-target, to testing in the vehicle, orchestrated by CI. Development jobs would give fast feedback, nightly jobs would run the heavier verification, and release jobs would build everything from a clean environment with full traceability. The on-target stage would reuse the Dolphin test cases from the radar project, together with radar target simulation. The aim was to test more and earlier and to depend less on early hardware and vehicles. It was a concept for the next generation, not a part of the delivery described above.

For the engineers in the room

  • Test framework: Diadrom Dolphin, adapted for embedded hardware testing
  • Buses and protocols: CAN, CAN FD, UDS (ISO 14229)
  • Test cases: 200+, in Python, run on every release and between releases
  • CI: Jenkins, distributed, with pipelines; module-level and system-level CI
  • Unit test and analysis: CppUTest, gcovr, Cobertura, QAC/PRQA
  • Configuration management: PTC Integrity
  • Results: exported to DOORS and Elektra
  • Release build: from about three days of manual work to about one hour, automated

Advice to peers

Automate the tests first, then the chain around them. Automated tests that nobody triggers still wait for a person. A CI chain that runs only a few tests still lets regressions through. Together they put every commit under test, and that is where the time comes back.

Details drawn from Diadrom’s reference material on the Veoneer forward-looking radar engagement. Programme and platform specifics beyond those stated are excluded.

Your programme next?

Tell us your context — we reply within one business day.

Tell us your context