]> git.localhorst.tv Git - blank.git/blob - tst/integration/ServerTest.cpp
timeouts reading from spawned processes
[blank.git] / tst / integration / ServerTest.cpp
1 #include "ServerTest.hpp"
2
3 #include "TestInstance.hpp"
4
5 CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::ServerTest);
6
7
8 namespace blank {
9 namespace test {
10
11 void ServerTest::setUp() {
12         instance.reset(new TestInstance({ "--server" }, true));
13         instance->AssertRunning();
14 }
15
16 void ServerTest::tearDown() {
17         std::unique_ptr<TestInstance> inst(std::move(instance));
18         inst->Terminate();
19         inst->AssertExitStatus(0);
20         inst->AssertNoError();
21 }
22
23
24 void ServerTest::testStartup() {
25         // setUp and testDown do all the tests
26 }
27
28 }
29 }