ultimatepp/bazaar/upt/GoogleTest.upt
klugier 8e3e11e5ce .bazaar minor gtest improvements, added template for gtest (in bazaar/upt)
git-svn-id: svn://ultimatepp.org/upp/trunk@9432 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-01-24 12:16:17 +00:00

28 lines
453 B
Text

template "Unit test package with Google Test" main;
option "Main package" mainPackage = 1;
@@<:PACKAGE:>.cpp
??mainPackage
#include <plugin/gtest/gtest.h>
int main(int argc, char *argv[])
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}<:.:>
@@<:PACKAGE:>.upp
uses
plugin/gtest;
file
Tests readonly separator<:?mainPackage == 0:>;<:.:><:?mainPackage:>,
Init readonly separator,
<:PACKAGE:>.cpp
mainconfig
"" = "";
<:.:>