This topic explains how to install the C++test plugin into a working copy of Eclipse or Linux system.
The section includes:
Each instance of Eclipse creates and writes to a configuration folder. If multiple instances of Ecipse/C++test are running in parallel, data corruption may occur. Eclipse provides a number of strategies for initializing the Eclipse configuration area in order to support multi-user installations. If you are implementing a multi-user installation of C++test, please choose the appropriate installation scenario:
In this scenario, users share not only an install area but also a master configuration area. By default, users must still have their own private writable configuration areas. A user's private configuration area is cascaded to the master configuration and will not contain any interesting data if the master configuration has been fully initialized and no changes to the set of plug-ins to be installed has occurred.
In this scenario, the system administrator initializes the master configuration (typically under the install location), and ensures the whole install and configuration areas are read-only to users. When users run the Eclipse-based product from the shared install location, since they do not have write access privileges to the configuration area under the install area, a local configuration area will be automatically computed and initialized.
In this scenario, a single install area is shared by many users. The 'configuration' directory under the install area is home only to the config.ini as shipped with the product (it is not initialized). Every user has their own local standalone configuration location. This scenario requires making the install area read-only for regular users. When users start Eclipse, this causes the configuration area to automatically default to a directory under the user home dir.
In most cases, 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++test’s full functionality, the machine where C++test is run must have the complete development environment and compiler tool chain.
<Eclipse_Installation_dir>/configuration/config.inifile, 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)/EclipseConfigDatadirectory. You must have full access rights to that location
Known issues with the location of Eclipse configuration/cached data (https://bugs.eclipse.org/bugs/show_bug.cgi?id=54919) could prevent Eclipse from starting properly once C++test is installed.
To prevent this problem:
As a result, Eclipse should keep all its config data in
Installing C++test involves installation of Parasoft Test components that are common across a number of Parasoft products. Multiple Parasoft Test version 9.x products can coexist on a single Eclipse installation. If you run the Parasoft C++test installation as described below, C++test will be added to the same Eclipse installation as your existing Parasoft products — just be sure to specify that you want to install C++test into the Eclipse installation directory that the other Parasoft Test products use.
If Parasoft Test is already installed, it will be upgraded to the latest version (if needed) during C++test installation.
If you want C++test to be installed along with pre 9.x Parasoft Test products, either install C++test into another Eclipse installation directory or uninstall the other products.
To install the C++test plugin for Eclipse on Linux:
tar -xf cpptest_<version>_<arch>.tar
If you later want to uninstall C++test:
extuninstallC++test will then be "unregistered" from Eclipse.
For details on performing a silent installation see Preconfiguration C++test During Installation.
To allow C++test to autodetect compiler and makefile settings, ensure that the necessary executables (compiler/linker, makefile, etc.) are correctly configured. "Correctly configured" means different things on different compilers, but it typically involves ensuring that the executable is on the PATH.
To launch the plugin:
Eclipse will automatically find the C++test plugin.
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++test is not properly installed, see Troubleshooting and FAQs for help resolving some common installation problems.
The license is configured through the centralized licensing framework (Parasoft> Preferences> Parasoft> Licenses). For details, see Licensing.