Rhapsody® IBM Engineering Systems Design Rhapsody ‐ TestConductor Add On Testing on a Linux Target Release 2.8.4
This document describes how TestCases can be executed with IBM Engineering Systems Design Rhapsody TestConductor Add On on a Linux target while Rhapsody runs on a Windows or Linux host. It assumes the basic installation is already done and that a TCP/IP connection exists between host and target, plus a shared folder reachable from both machines (referred to in the document as "/mnt/winlinux"). Two execution modes are covered: animation based mode and assertion based mode, the latter available since Rhapsody 7.6 and the default for newly created TestArchitectures.
The guide walks through preparing the execution: deploying the Rhapsody Linux framework from linuxShare.tar, copying the TestConductor header and source files, and deploying the Linux code coverage tools for assertion based testing. It then shows how to prepare the Rhapsody model, set the folder for generated code, enter the host IP address in the RemoteHost property, specify the build command via the InvokeMake property using the linuxmake script, and launch the application with InvokeExecutable in animation based mode, including an example using plink.exe from PuTTY. The publication is copyrighted by BTC Embedded Systems AG.
| Test execution modes | Animation based mode and assertion based mode |
|---|---|
| Assertion based mode availability | Available since Rhapsody 7.6; default mode for newly created TestArchitectures |
| Host-to-target connection | TCP/IP connection between host and Linux target machine |
| Example shared folder path | /mnt/winlinux |
| Linux framework archive | linuxShare.tar, found in \Share\LangCpp (or \Share\LangC for C) |
Deploy the Rhapsody Linux framework and TestConductor files in a shared folder both machines can access, set the code generation folder, host IP address and build command, then start the application from Rhapsody over the TCP/IP connection.
Enter it in the property CPP_CG::Linux::RemoteHost for C++ or C_CG::Linux::RemoteHost for C, so it is generated into the code before the application is compiled.
Only for animation based mode; for assertion based mode animation instrumentation is not needed, although testing applications with it is supported.
The InvokeMake property specifies the command, for example the linuxmake script in /mnt/winlinux/Share/etc, called with the Makefile path and one of the make targets build, rebuild or clean.