diff --git a/wiki/GoogleTestAdvancedGuide.wiki b/wiki/GoogleTestAdvancedGuide.wiki index 79730fa4..8aa07ec7 100644 --- a/wiki/GoogleTestAdvancedGuide.wiki +++ b/wiki/GoogleTestAdvancedGuide.wiki @@ -1595,6 +1595,26 @@ which disabled tests to run. _Availability:_ Linux, Windows, Mac; since version 1.3.0. += Fusing Google Test Source Files = + +Google Test's implementation consists of ~30 files (excluding its own +tests). Sometimes you may want them to be packaged up in two files (a +`.h` and a `.cc`) instead, such that you can easily copy them to a new +machine and start hacking there. For this we provide an experimental +Python script `fuse_gtest_files.py` in the `scripts/` directory. +Assuming you have Python 2.4 or above installed on your machine, just +go to that directory and run +{{{ +python fuse_gtest_files.py OUTPUT_DIR +}}} + +and you should see an `OUTPUT_DIR` directory being created with files +`gtest/gtest.h` and `gtest/gtest-all.cc` in it. These files contain +everything you need to use Google Test. Just copy them to anywhere +you want and you are ready to write tests. You can use the +[http://code.google.com/p/googletest/source/browse/trunk/scripts/test/Makefile scrpts/test/Makefile] +file as an example on how to compile your tests against them. + = Where to Go from Here = Congratulations! You've now learned more advanced Google Test tools and are