forked from github/server
Merge pull request #574 from ennorehling/develop
add an integration test for lighthouse reports
This commit is contained in:
commit
34149b9fab
|
@ -26,12 +26,6 @@ ipch/
|
||||||
*.bak
|
*.bak
|
||||||
bin/
|
bin/
|
||||||
build*/
|
build*/
|
||||||
game-e2/data
|
|
||||||
game-e2/*.log*
|
|
||||||
game-e2/reports/
|
|
||||||
game-e3/data/
|
|
||||||
game-e3/*.log*
|
|
||||||
game-e3/reports/
|
|
||||||
*.log
|
*.log
|
||||||
*.log.*
|
*.log.*
|
||||||
tags
|
tags
|
||||||
|
|
|
@ -18,12 +18,11 @@ static void test_lighthouse_range(CuTest * tc)
|
||||||
{
|
{
|
||||||
faction *f;
|
faction *f;
|
||||||
unit *u;
|
unit *u;
|
||||||
region *r1, *r2;
|
region *r1;
|
||||||
building *b;
|
building *b;
|
||||||
|
|
||||||
test_setup();
|
test_setup();
|
||||||
r1 = test_create_region(0, 0, 0);
|
r1 = test_create_region(0, 0, 0);
|
||||||
r2 = test_create_region(1, 0, 0);
|
|
||||||
f = test_create_faction(0);
|
f = test_create_faction(0);
|
||||||
u = test_create_unit(f, r1);
|
u = test_create_unit(f, r1);
|
||||||
b = test_create_building(r1, test_create_buildingtype("lighthouse"));
|
b = test_create_building(r1, test_create_buildingtype("lighthouse"));
|
||||||
|
|
Binary file not shown.
|
@ -53,6 +53,9 @@ assert_grep_count reports/$CRFILE '^BURG' 1
|
||||||
assert_grep_count reports/$CRFILE '^EINHEIT' 2
|
assert_grep_count reports/$CRFILE '^EINHEIT' 2
|
||||||
assert_grep_count reports/$CRFILE '^GEGENSTAENDE' 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 '^EINHEIT' 2
|
||||||
assert_grep_count reports/185-6rLo.cr '^REGION' 13
|
assert_grep_count reports/185-6rLo.cr '^REGION' 13
|
||||||
echo "integration tests: PASS"
|
echo "integration tests: PASS"
|
||||||
|
|
Loading…
Reference in New Issue