Building the SimpleTest program

After you have written your test, you must build the test and compile it into a shared library. Follow these steps when you build your test:

  1. Use this *.PinkMake file, which links to the TestFrameworkLib.
      sharedlibrary SimpleTestLib {
      source:
          SimpleTest.C
      
      link:
          TestFrameworkLib
          {SimpleLinkList}
      }
  2. Compile your test with Makeit.
  3. Make sure that the CommonPoint application system is running.
  4. From the console, use RunTest to perform your test.
      RunTest -t TSimpleTest SimpleTestLib
This test displays the following output on the console.

      TSimpleTest - Test method called.
      Test TSimpleTest ( Pass ) {}

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker