Commit Graph

9130 Commits

Author SHA1 Message Date
Ted John 814f67fb3d Revert "Remove unoriginal junior RC tracks"
This reverts commit 6d03980f20.
2016-09-16 18:54:54 +01:00
Ted John 0fbd27a5de Merge pull request #4330 from marijnvdwerf/feature/paint-unit-test
Attempt to add unit testing for track drawing
2016-09-16 18:51:38 +01:00
Marijn van der Werf 18a6d4246b Update scheme to Xcode 8 2016-09-16 19:49:16 +02:00
Ted John dbb822ad35 Ignore zero sized array warning to fix VS builds 2016-09-16 19:45:25 +02:00
Marijn van der Werf c233e0491a Improve tunnel offset detection 2016-09-16 19:45:24 +02:00
Marijn van der Werf 52282e399b Use named addresses for bound box catching 2016-09-16 19:45:22 +02:00
Marijn van der Werf 9ca2f89831 Improve test output 2016-09-16 19:45:21 +02:00
Marijn van der Werf c526d0da3f Rename default palette options 2016-09-16 19:45:13 +02:00
Marijn van der Werf 5524bd0e14 Print address of failed function 2016-09-16 19:45:11 +02:00
Marijn van der Werf 1c585e45e3 Improve Visual Studio compatibility 2016-09-16 19:45:10 +02:00
Marijn van der Werf 987bfa409a Improve track type support check 2016-09-16 19:45:09 +02:00
Marijn van der Werf f2f99d7bb1 Improve environment simulation 2016-09-16 19:45:08 +02:00
Marijn van der Werf 8982d87e77 Add missing paint functions to track_data_old 2016-09-16 19:45:07 +02:00
Marijn van der Werf 4e4a07d1b0 Update testpaint to match develop 2016-09-16 19:45:07 +02:00
Marijn van der Werf 1cc43d5012 Add missing compat function 2016-09-16 19:45:05 +02:00
Marijn van der Werf 0f51be809c Update code to match develop 2016-09-16 19:45:04 +02:00
Marijn van der Werf 2d688e1056 Expand message for support height mismatch 2016-09-16 19:45:03 +02:00
Marijn van der Werf 8af6dd1577 Attempt to fix size mismatch 2016-09-16 19:45:02 +02:00
Ted John 527d18c9f1 Fix testpaint.vcxproj 2016-09-16 19:45:00 +02:00
Ted John 78f653ebb6 Fix x64 build for Windows 2016-09-16 19:44:59 +02:00
Michał Janiszewski 88ffe5f8c2 Fixes for testpaint
Test of `paint_launched_freefall_tower_section` is invalid. Do note this
function [expects another element right past the one just
passed](https://github.com/OpenRCT2/OpenRCT2/blob/d00aa2c/src/ride/thrill/launched_freefall.c#L147):

```
rct_map_element * nextMapElement = mapElement + 1;
```

but you pass only a single map element, which is not marked as last for
tile. The same prevails throughout other tests.
2016-09-16 19:44:56 +02:00
Michał Janiszewski ef008d6fd2 Fixes for GCC6.1 on Linux
GCC6.1 does not support non-trivial designated initializers, but there
are so few fields used, they don't have to be used.
2016-09-16 19:44:55 +02:00
Michał Janiszewski eed46dc367 Fixes for testpaint on Linux 2016-09-16 19:44:54 +02:00
Ted John f13e5c9e3a Add painttest to openrct2.proj 2016-09-16 19:44:54 +02:00
Marijn van der Werf fdbb4998f6 Add vertical tunnel testing 2016-09-16 19:44:53 +02:00
Marijn van der Werf 95f68a3e6a Validate side tunnel calls 2016-09-16 19:44:52 +02:00
Marijn van der Werf a904391a6d Get expected tunnel pattern 2016-09-16 19:44:52 +02:00
Marijn van der Werf 66310a6285 Add check for general supports 2016-09-16 19:44:50 +02:00
Marijn van der Werf 52e4800660 Add rough version of support segment checking 2016-09-16 19:44:49 +02:00
Marijn van der Werf eb39f3fa1c Only add testpaint on unix for standard builds 2016-09-16 19:44:47 +02:00
Michał Janiszewski f354c0ec3f Fix testpaint target for Linux 2016-09-16 19:44:45 +02:00
Ted John de5aa4b7d6 Fix VS solution and test 2016-09-16 19:44:43 +02:00
Ted John a30f2b8f7f Remove x64 configurations from vs project 2016-09-16 19:44:42 +02:00
Ted John 5f0f49be46 Move testpaint vs project to new location 2016-09-16 19:44:41 +02:00
Marijn van der Werf df202d86a6 Change folder structure 2016-09-16 19:44:40 +02:00
duncanspumpkin 5f62443686 Add VS project files. Add code to allow calling into RCT2.exe 2016-09-16 19:44:37 +02:00
Marijn van der Werf fbc28186dd Make TestCase initialisation VS-friendly 2016-09-16 19:44:36 +02:00
Marijn van der Werf d456d86f69 Add header for data.h 2016-09-16 19:44:35 +02:00
Marijn van der Werf ad2e8690bc Rename main.c to intercept.c 2016-09-16 19:44:31 +02:00
Marijn van der Werf 51d8d3ace3 Don’t build test target by default 2016-09-16 19:44:24 +02:00
Marijn van der Werf bce52ea5f6 Fix gcc warnings in main.cpp 2016-09-16 19:44:22 +02:00
Marijn van der Werf f412b67cc2 Fix main.c for gcc 2016-09-16 19:44:21 +02:00
Marijn van der Werf 6d03980f20 Remove unoriginal junior RC tracks 2016-09-16 19:44:20 +02:00
Marijn van der Werf 5a44deac1b Add dependency to segfiles 2016-09-16 19:44:18 +02:00
Marijn van der Werf 99d3579c9f Define gMapSizeUnits 2016-09-16 19:44:16 +02:00
Marijn van der Werf b0a43861e4 Always use GTest output 2016-09-16 19:44:14 +02:00
Marijn van der Werf efc306b2af Don’t use google-test 2016-09-16 19:44:11 +02:00
Marijn van der Werf 6b525f5d6f Update to googletest 1.8 2016-09-16 19:44:10 +02:00
Marijn van der Werf 576e314f61 Fix Cmake project 2016-09-16 19:44:08 +02:00
Marijn van der Werf fe0de811f1 Only show call count warning when counts don’t match 2016-09-16 19:44:04 +02:00