]> git.localhorst.tv Git - blank.git/blob - tst/integration/StandaloneTest.cpp
95dfc3a2568592607b313f9e6ee3398062a605b1
[blank.git] / tst / integration / StandaloneTest.cpp
1 #include "StandaloneTest.hpp"
2
3 #include "TestInstance.hpp"
4
5
6 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(blank::test::StandaloneTest, "headed");
7
8
9 namespace blank {
10 namespace test {
11
12 void StandaloneTest::setUp() {
13         instance.reset(new TestInstance({ "--no-vsync" }));
14         instance->AssertRunning();
15 }
16
17 void StandaloneTest::tearDown() {
18         std::unique_ptr<TestInstance> inst(std::move(instance));
19         if (inst) {
20                 inst->Terminate();
21                 inst->AssertNoOutput();
22                 inst->AssertNoError();
23                 inst->AssertExitStatus(0);
24         }
25 }
26
27
28 void StandaloneTest::testStartup() {
29         instance->AssertOutputLine("chunk preloading complete");
30 }
31
32 }
33 }