Skip to content

Commit

Permalink
Made yw-cli-tests run with gcc and ccputest.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcphillips committed Sep 25, 2017
1 parent 6007a94 commit bfe702a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
7 changes: 7 additions & 0 deletions gcc/yw-cli-tests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include ../yw.setup.makefile
include ../cpp.setup.makefile
include ../tests.setup.makefile

TESTS = $(wildcard $(YW_TEST_DIR)/yw-cli-tests/*.cpp)

include ../test.targets.makefile
7 changes: 7 additions & 0 deletions gcc/yw-cli-tests/test_runner.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "CppUTest/CommandLineTestRunner.h"

int main(int ac, char** av)
{
MemoryLeakWarningPlugin::turnOffNewDeleteOverloads();
return CommandLineTestRunner::RunAllTests(ac, av);
}
4 changes: 4 additions & 0 deletions msvc/yw.sln
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "yw-cli", "yw-cli", "{9265BA
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "yw-cli-tests", "yw-cli-tests", "{F1EC2F6B-014F-4064-B2C5-F37172E156E9}"
ProjectSection(SolutionItems) = preProject
..\gcc\yw-cli-tests\Makefile = ..\gcc\yw-cli-tests\Makefile
..\gcc\yw-cli-tests\test_runner.cpp = ..\gcc\yw-cli-tests\test_runner.cpp
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
2 changes: 1 addition & 1 deletion test/yw-cli-tests/command_line_context_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace yw;
using namespace yw::cli;
using namespace yw::test;

YW_TEST_FIXTURE(BeginContext)
YW_TEST_FIXTURE(CommandLineContext)

StderrRecorder stderrRecorder;

Expand Down
2 changes: 1 addition & 1 deletion test/yw-cli-tests/command_line_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace yw;
using namespace yw::cli;
using namespace yw::test;

YW_TEST_FIXTURE(BeginContext)
YW_TEST_FIXTURE(CommandLine)

StderrRecorder stderrRecorder;

Expand Down
2 changes: 1 addition & 1 deletion test/yw-config-tests/yw_config_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
#include <iostream>
#include <sstream>

#include "yw_test.h"
#include "yw_config.h"
#include "yw_test.h"

0 comments on commit bfe702a

Please sign in to comment.