1 / 5

Install CppUnit

Install CppUnit. Download the cppunit( cppunit-1.12.0.tar.gz ) in the following link https://sourceforge.net/project/showfiles.php?group_id=11795&package_id=11019&release_id=428545. Install CppUnit. 2. Using the following commands - gunzip cppunit-1.12.0.tar.gz

crete
Download Presentation

Install CppUnit

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Install CppUnit Download the cppunit(cppunit-1.12.0.tar.gz) in the following link https://sourceforge.net/project/showfiles.php?group_id=11795&package_id=11019&release_id=428545

  2. Install CppUnit 2. Using the following commands - gunzip cppunit-1.12.0.tar.gz - tar –xvf cppunit-1.12.0.tar - cd cppunit-1.12.0

  3. Install CppUnit ./configure --prefix =“/users/projects/groups/morale/isvis/cppunit” --disable-shared

  4. Install CppUnit • make • make install 5. cppunit-config --version (Test that CppUnit has been installed properly. If you see 1.12.0 as the output, then CppUnit has been installed properly.)

  5. Testing CppUnit • Create a testfiles directory. • Put all files in it including your programs and test program. • Compile your programs by g++ -c (eg. g++ -c TestStudent.cpp) • Compile test program by g++ -I../include –c (eg. g++ -I../include -c TestStudent.cpp) • put everything together to create an executable test program (g++ -o tester Course.o Student.o TestStudent.o –L../lib –lcppunit) • To run the test suite, simply type: tester

More Related