Testing a C/C++ application

This task is part of the larger task of Developing DB2 Everyplace applications using C/C++. When you complete the steps for Testing a C/C++ application, return to Developing DB2 Everyplace C/C++ applications.

Procedure

To test an application:

  1. Copy the DB2 Everyplace libraries to the emulator or device for your operating system. Without these files, a DB2 Everyplace application will fail to load. The following table summarizes the required DB2 Everyplace files for each operating system.

    ǥ 4. Required DB2 Everyplace files for testing

    Operating system Required files on device or emulator
    Palm OS
    \db2everyplace\clients\palmos\database\DB2eCat.prc
    \db2everyplace\clients\palmos\database\DB2eCLI.prc
    \db2everyplace\clients\palmos\database\DB2eComp.prc
    \db2everyplace\clients\palmos\database\DB2eRunTime.prc
    \db2everyplace\clients\palmos\database\DB2eDMS.prc
    
    Symbian OS Version 6.0 For emulator testing, copy the file \db2everyplace\clients\symbian6\database\wins\DB2e.dll to each of the following emulator directories:
    \EPOCROOT%EPOC32\Release\wins\udeb\ (for debug emulator)
    \EPOCROOT%EPOC32\Release\wins\urel\ (for release emulator)
    

    For device testing, install the following file using the PsiWin connection software:

    \db2everyplace\clients\symbian6\database\armi\DB2e.sis
     
    
    Windows CE Install the appropriate library for your operating system.

    ARM processor:

    • V3.00
      db2everyplace\clients\wince\database\wce300\armrel\DB2e.dll
      

    MIPS processor:

    • V3.00
      \db2everyplace\clients\wince\database\wce300\mipsrel\DB2e.dll
      

    SH3 processor:

    • V3.00
      \db2everyplace\clients\wince\database\wce300\sh3rel\DB2e.dll
      

    Windows CE emulator:

    • V3.00

      For Pocket PC emulator:

      db2everyplace\clients\wince\database\wce300\x86emrel\DB2e.dll
      

      For Pocket PC 2002 emulator:

      \db2everyplace\clients\wince\database\wce300\x86rel\DB2e.dll
      
    Win32 Copy \db2everyplace\clients\win32\database\x86\DB2e.dll to either the current directory of the application or the PATH environment variable of the system.
    Neutrino /db2e/database/x86/libdb2e.so (for x86 processor type) and /db2e/database/strongarm/libdb2e.so (for strongarm processor type)
    Linux /db2e/database/x86/libdb2e.so (for x86 processor type) and /db2e/database/strongarm/libdb2e.so (for strongarm processor type)
  2. For Linux and Neutrino: Add libdb2e.so to the library search path, using one of the following methods:
  3. Load the files for the application being tested. For example, to test the Visiting Nurse sample application on Palm OS, load the NurseInit.prc and Nurse.prc files.
  4. Test the application.

Related concepts

Related tasks

Related reference