Building the test

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

  1. Include the header for your target object in your test implementation file.
  2. In your *.PinkMake file, link your shared libraries with TestFrameworkLib and the shared library for your target class.
  3. Compile your test.
  4. Use RunTest to perform your test.
This is a sample *.PinkMake file for the sample tests described in this chapter:

    1  sharedlibrary SampleObjectTestLib {
    2  source:
    3      SampleObjectTestInstantiations.C
    4      SampleObjectTest.C
    5  
    6  link:
    7      TestSamplesLib
    8      TestFrameworkLib
    9      PropertyInterfaceLib
    10      {SimpleLinkList}
    11  }
Line number 7 links to the target object shared library.


[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