I like the idea. Thanks for suggesting it!
I've written a Python script to automate this. Just run
'fuse_gtest.py output_dir' and it will create two files:
output_dir/gtest/gtest.h and output_dir/gtest/gtest-all.cc.
The gtest folder is created such that tests can continue to #include
<gtest/gtest.h>. The .cc file is called gtest-all.cc instead of
gtest.cc for a similar reason.
I'll have the script cleaned up and reviewed next week. It will
probably be part of the next gtest release.
Thanks,
--
Zhanyong
I've uploaded the script for review: http://codereview.appspot.com/12476
In addition to the script, there is a Makefile in scripts/test for testing it.
Can someone take a look? Thanks,
> Thanks,
>
> --
> Zhanyong
>
--
Zhanyong
Wow, you were really good at executing recursive algorithms manually. :-)
> except stripped duplicating copyrights and some
> extra comments I used during manual cutting. So I definitely have switched
> to using the gtest amalgamation produced by your script. Thanks.
Thanks for the confirmation!
--
Zhanyong