mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 22:02:58 -06:00
28 lines
453 B
Text
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
|
|
"" = "";
|
|
<:.:>
|