Giter VIP home page Giter VIP logo

cpp-ut-project's Introduction

           cpp-ut-project Introduction ( V1.1 )

		   
User Guide
========== 
  
  This is a C/C++ test sample project, using testngpp, mockcpp and premake. It aims at making C/C++ test harmless and full of fun. 
  
  This project not only can generate project files, but also can create .h/.cpp/test files for class/feature, run "premake4 --usage addfile" to show more.

  Before you use this project, be sure about that you have compiled testngpp and mockcpp, and have put the installed files in tools, see also the structure of dir.
  
  And then you can use this project following these steps.  
  
Windows
-------  
1 Run cmd, change to the UserModule dir, run "premake4 vs2005". (or use "premake4 --nomemcheck vs2005" to generate project without memchecker)

2 Change to ../build/vs2005 dir, use the .sln/vcproj.

Linux
-----
1 Install premake4.( Copy the file in tools/bin to /usr/local/bin)

2 Run cmd, change to the UserModule dir, run "premake4 gmake". (or use "premake4 --nomemcheck gmake" to generate project without memchecker)

3 Change to ../build/gmake dir, run "make all".

premake VS. cmake
=================

1 premake can add all the *.cpp/*.h to vcproj easily, it's very usefull for editing.

2 premake can be used on machines without compilers installed. (sometimes, cmake report unintelligible errors about compiler.)

3 premake use lua language to write the script. (lua is simple and powerfull.)

4 premake is much smaller. (one exe file around 200 bytes.)

5 premake also can be used on many platforms, such as linux/Mac OS etc., and it seems that premake support 64 bit platform much better.


Contact
===========
Project :  http://code.google.com/p/cpp-ut-project/, 
Author  :  Chen Guodong<[email protected]>



See Also
===========

testngpp : http://code.google.com/p/test-ng-pp/

mockcpp  : http://code.google.com/p/mockcpp/

premake  : http://industriousone.com/premake


The directory structure of cpp-ut-project :

念岸tools
岫  念岸3rdparty
岫  岫  念岸boost
岫  岫  弩岸mem_checker
岫  念岸mockcpp
岫  岫  念岸include
岫  岫  弩岸lib
岫  念岸scripts
岫  弩岸testngpp
岫      念岸bin
岫      念岸include
岫      念岸lib
岫      弩岸testngpp
岫          念岸generator
岫          弩岸listener
弩岸UserModule
    念岸include
    岫  弩岸UserModule
    念岸src
    弩岸test
			

cpp-ut-project's People

Contributors

sinojelly avatar

Stargazers

 avatar

Watchers

 avatar

cpp-ut-project's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.