mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-04 22:03:29 -06:00
27 lines
607 B
Text
27 lines
607 B
Text
template "Unit test package with Google Test" main;
|
|
|
|
option "Main package" mainPackage = 1;
|
|
option "Use Google Mock" googleMock = 1;
|
|
|
|
@@<:PACKAGE:>.cpp
|
|
??mainPackage
|
|
#include <Core/Core.h>
|
|
<:?googleMock == 0:>#include <plugin/gtest/gtest.h><:.:><:?googleMock == 1:>#include <plugin/gmock/gmock.h><:.:>
|
|
|
|
using namespace Upp;
|
|
|
|
TEST_APP_MAIN {}<:.:>
|
|
@@<:PACKAGE:>.upp
|
|
uses
|
|
Core,
|
|
plugin/gtest<:?googleMock == 0:>;<:.:><:?googleMock == 1:>,
|
|
plugin/gmock;<:.:>
|
|
|
|
file
|
|
Tests readonly separator<:?mainPackage == 0:>;<:.:><:?mainPackage:>,
|
|
Init readonly separator,
|
|
<:PACKAGE:>.cpp;
|
|
|
|
mainconfig
|
|
"" = "";
|
|
<:.:>
|