This topic explains how to install the standalone version of C/C++test (which is built upon the Eclipse framework) on a Linux system.

The section includes:

Prerequisites

System Requirements

Linux 64-bit

  • Linux with glibc 2.12 or higher
  • 4GB memory minimum, 8GB recommended
  • 2GHz or faster processor (x86_64-compatible), multi-CPU configuration recommended
  • Supported C / C++ compiler (see Compilers for a list of supported compilers)

Linux 32-bit (deprecated)

  • Linux with glibc 2.12 or higher
  • 4GB memory minimum, 8GB recommended
  • 2GHz or faster processor (x86-compatible), multi-CPU configuration recommended
  • Supported C / C++ compiler (see Compilers for a list of supported compilers

If you are using a cross-compiler that is not listed as supported, see Configuring Testing with the Cross Compiler for information on how you can use your compiler with C/C++test.

Proper Compiler Configuration is Critical

In most cases, C/C++test needs to invoke the compiler and linker in order to perform static analysis and runtime testing tasks, which commonly involve preprocessing, compiling, and linking programs.

To access C/C++test’s full functionality, the machine where C++test is run must have the complete development environment and compiler tool chain.

Other Requirements

  • All users must be able to write to the Eclipse configuration directory. If all users cannot write to the current Eclipse configuration directory, then the location of that directory must be changed. To change the directory location, open the <Parasoft Test Install Dir>/configuration/config.ini file, then add a line of the format [email protected]/EclipseConfigData (Be sure to enter the appropriate location.) This configures Eclipse to keep all its configuration data in the $(HOME)/EclipseConfigData directory. You must have full access rights to that location.
  • If earlier versions of C/C++test are installed on your system, the latest version of C/C++test must be installed in a fresh directory. Please install C/C++test in a different directory than the previous version installation, and then modify the PATH to point to the new installation.
  • Additional disk space is required for C/C++test project data.
  • The recommended Japanese language encoding is Shift_JIS (ja_JP.PCK locale on Unix). Other encodings might cause font problems or prevent C++test from reading test results.
  • Installation scripts require that the working directory has write permissions.

Multi-user installations

For details on running multiple instances of Eclipse with C/C++test in parallel see Multi-user Installations.

Installation

To install the standalone version of C/C++test on a Linux system:

  1. Copy the distribution file to the target location.
    • Since Linux does not have any restrictions on having multiple versions of the same software installed on the same machine, the best way to install C/C++test is to provide a separate directory for each version.
    • For example, if your software is installed in /opt/app/, then the recommended installation directory configuration should be something like /opt/app/parasoft/cpptest/<version>. Version 10.3 could be installed in /opt/app/parasoft/cpptest/10.3/ and version 10.4 could be installed in /opt/app/parasoft/cpptest/10.4/. This provides the safest, most intuitive, and most flexible installation structure. During the installation, you will be promped to enter a destination location for C/C++test's and Parasoft Test's files; defaults will be "parasoft/cpptest/<version>" and "parasoft/test/<version>". In this case, the target location for the distribution file should be /opt/app.
  2. Unpack the installation script using the appropriate command(s):
    • gunzip cpptest_<version>_<arch>.tar.gz
      tar -xf cpptest_<version>_<arch>.tar
  3. Execute the following command to run the installation script:
    • .cpptest_<version>_<arch>.sh

  4. When the script requests confirmation, confirm that C/C++test should be installed in the current directory.

  5. Follow the additional instructions given by the installation script.

C/C++test will be installed in the current  directory.

Following the installation, set your path to include the installation location of C/C++test (unless you prefer to start C/C++test GUI with the full path /install/directory/path/cpptest).

Alternative installation methods

Startup

Before launching C/C++test

For C/C++test to autodetect compiler and makefile settings, the necessary executables (compiler/linker, makefile, etc.) must be correctly configured. "Correctly configured" means different things for different compilers, but it typically involves ensuring that the executable is on the PATH.

To launch the standalone:

  • Launch the cpptest executable. Include the appropriate location (install dir) on the $PATH or launch it with the full path to the executable ( /install/directory/path/cpptest).

After Eclipse is launched, you should see a Parasoft menu added to the Eclipse menu bar. If you do not see this menu, choose Window> Open Perspective> Other, select C++test, then click OK.

If you suspect that C/C++test is not properly installed, see Troubleshooting and FAQs for help resolving some common installation problems.

  • No labels