Merge pull request #574 from ennorehling/develop

add an integration test for lighthouse reports
This commit is contained in:
Enno Rehling 2016-09-17 20:52:26 +02:00 committed by GitHub
commit 34149b9fab
4 changed files with 4 additions and 8 deletions

6
.gitignore vendored
View File

@ -26,12 +26,6 @@ ipch/
*.bak
bin/
build*/
game-e2/data
game-e2/*.log*
game-e2/reports/
game-e3/data/
game-e3/*.log*
game-e3/reports/
*.log
*.log.*
tags

View File

@ -18,12 +18,11 @@ static void test_lighthouse_range(CuTest * tc)
{
faction *f;
unit *u;
region *r1, *r2;
region *r1;
building *b;
test_setup();
r1 = test_create_region(0, 0, 0);
r2 = test_create_region(1, 0, 0);
f = test_create_faction(0);
u = test_create_unit(f, r1);
b = test_create_building(r1, test_create_buildingtype("lighthouse"));

Binary file not shown.

View File

@ -53,6 +53,9 @@ assert_grep_count reports/$CRFILE '^BURG' 1
assert_grep_count reports/$CRFILE '^EINHEIT' 2
assert_grep_count reports/$CRFILE '^GEGENSTAENDE' 2
assert_grep_count reports/185-heg.nr 'erblickt' 6
assert_grep_count reports/185-heg.cr '"lighthouse";visibility' 6
assert_grep_count reports/185-heg.cr '"neighbour";visibility' 11
assert_grep_count reports/185-6rLo.cr '^EINHEIT' 2
assert_grep_count reports/185-6rLo.cr '^REGION' 13
echo "integration tests: PASS"