資源簡介
C++單元測試工具gtest1.6.0.zip,google出品!

代碼片段和文件信息
#!/usr/bin/env?python
#
#?Copyright?2009?Google?Inc.
#?All?rights?reserved.
#
#?Redistribution?and?use?in?source?and?binary?forms?with?or?without
#?modification?are?permitted?provided?that?the?following?conditions?are
#?met:
#
#?????*?Redistributions?of?source?code?must?retain?the?above?copyright
#?notice?this?list?of?conditions?and?the?following?disclaimer.
#?????*?Redistributions?in?binary?form?must?reproduce?the?above
#?copyright?notice?this?list?of?conditions?and?the?following?disclaimer
#?in?the?documentation?and/or?other?materials?provided?with?the
#?distribution.
#?????*?Neither?the?name?of?Google?Inc.?nor?the?names?of?its
#?contributors?may?be?used?to?endorse?or?promote?products?derived?from
#?this?software?without?specific?prior?written?permission.
#
#?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS
#?“AS?IS“?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT
#?LIMITED?TO?THE?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR
#?A?PARTICULAR?PURPOSE?ARE?DISCLAIMED.?IN?NO?EVENT?SHALL?THE?COPYRIGHT
#?OWNER?OR?CONTRIBUTORS?BE?LIABLE?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL
#?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL?DAMAGES?(INCLUDING?BUT?NOT
#?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR?SERVICES;?LOSS?OF?USE
#?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER?CAUSED?AND?ON?ANY
#?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY?OR?TORT
#?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE
#?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
“““fuse_gtest_files.py?v0.2.0
Fuses?Google?Test?source?code?into?a?.h?file?and?a?.cc?file.
SYNOPSIS
???????fuse_gtest_files.py?[GTEST_ROOT_DIR]?OUTPUT_DIR
???????Scans?GTEST_ROOT_DIR?for?Google?Test?source?code?and?generates
???????two?files:?OUTPUT_DIR/gtest/gtest.h?and?OUTPUT_DIR/gtest/gtest-all.cc.
???????Then?you?can?build?your?tests?by?adding?OUTPUT_DIR?to?the?include
???????search?path?and?linking?with?OUTPUT_DIR/gtest/gtest-all.cc.??These
???????two?files?contain?everything?you?need?to?use?Google?Test.??Hence
???????you?can?“install“?Google?Test?by?copying?them?to?wherever?you?want.
???????GTEST_ROOT_DIR?can?be?omitted?and?defaults?to?the?parent
???????directory?of?the?directory?holding?this?script.
EXAMPLES
???????./fuse_gtest_files.py?fused_gtest
???????./fuse_gtest_files.py?path/to/unpacked/gtest?fused_gtest
This?tool?is?experimental.??In?particular?it?assumes?that?there?is?no
conditional?inclusion?of?Google?Test?headers.??Please?report?any
problems?to?googletestframework@googlegroups.com.??You?can?read
http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide?for
more?information.
“““
__author__?=?‘wan@google.com?(Zhanyong?Wan)‘
import?os
import?re
import?sets
import?sys
#?We?assume?that?this?file?is?in?the?scripts/?directory?in?the?Google
#?Test?root?directory.
DEFAULT_GTEST_ROOT_DIR?=?os.path.join(os.path.dirname(__file__)?‘..‘)
#?Regex?for?matching?‘#include?“gtest/...“‘.
INCLUDE_GTEST_FILE_
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\build-aux\
?????文件????????1841??2011-04-15?19:51??gtest-1.6.0\build-aux\config.h.in
?????文件???????45612??2011-04-15?19:51??gtest-1.6.0\build-aux\config.guess
?????文件???????34069??2011-04-15?19:51??gtest-1.6.0\build-aux\config.sub
?????文件???????18615??2011-04-15?19:51??gtest-1.6.0\build-aux\depcomp
?????文件???????13663??2011-04-15?19:51??gtest-1.6.0\build-aux\install-sh
?????文件??????243469??2011-04-15?19:51??gtest-1.6.0\build-aux\ltmain.sh
?????文件???????11419??2011-04-15?19:51??gtest-1.6.0\build-aux\missing
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\cmake\
?????文件????????8980??2011-04-15?19:49??gtest-1.6.0\cmake\internal_utils.cmake
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\codegear\
?????文件???????10486??2011-04-15?19:49??gtest-1.6.0\codegear\gtest.cbproj
?????文件????????2008??2011-04-15?19:49??gtest-1.6.0\codegear\gtest.groupproj
?????文件????????1865??2011-04-15?19:49??gtest-1.6.0\codegear\gtest_all.cc
?????文件????????1993??2011-04-15?19:49??gtest-1.6.0\codegear\gtest_li
?????文件????????8580??2011-04-15?19:49??gtest-1.6.0\codegear\gtest_main.cbproj
?????文件????????8691??2011-04-15?19:49??gtest-1.6.0\codegear\gtest_unittest.cbproj
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\fused-src\
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\fused-src\gtest\
?????文件??????337020??2011-04-15?19:54??gtest-1.6.0\fused-src\gtest\gtest-all.cc
?????文件??????801700??2011-04-15?19:54??gtest-1.6.0\fused-src\gtest\gtest.h
?????文件????????1772??2011-04-15?19:54??gtest-1.6.0\fused-src\gtest\gtest_main.cc
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\include\
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\include\gtest\
?????目錄???????????0??2011-04-15?19:54??gtest-1.6.0\include\gtest\internal\
?????文件???????12901??2011-04-15?19:49??gtest-1.6.0\include\gtest\internal\gtest-death-test-internal.h
?????文件????????9697??2011-04-15?19:49??gtest-1.6.0\include\gtest\internal\gtest-filepath.h
?????文件???????47325??2011-04-15?19:49??gtest-1.6.0\include\gtest\internal\gtest-internal.h
?????文件????????8063??2011-04-15?19:49??gtest-1.6.0\include\gtest\internal\gtest-li
?????文件??????169224??2011-04-15?19:49??gtest-1.6.0\include\gtest\internal\gtest-param-util-generated.h
............此處省略173個文件信息
- 上一篇:C語言編程經典200
- 下一篇:五子棋(C++Builder)
評論
共有 條評論