Commit Graph

2649 Commits

Author SHA1 Message Date
Eric Wasylishen b54edf704e vis: fix cmake typo 2022-05-15 16:20:30 -06:00
Eric Wasylishen 49c78292dd testvis: stub setup 2022-05-15 15:52:54 -06:00
Eric Wasylishen a4ebfab691 tests: fix case issue with catch includes 2022-05-15 13:19:46 -06:00
Eric Wasylishen 03d9df50e5 tests: don't include(CTest) as it generates unwanted targets 2022-05-15 12:43:35 -06:00
Eric Wasylishen 7f0f3e9992 tests: fix build errors 2022-05-15 12:40:20 -06:00
Eric Wasylishen c925f7be74 test: convert test case macros to Catch2 2022-05-15 12:27:43 -06:00
Eric Wasylishen 28bea85d97 test: convert assertions to Catch2 format 2022-05-15 12:18:09 -06:00
Eric Wasylishen 9fe42ef6c7 test: swap GTest out in favour of Catch2 2022-05-15 12:00:50 -06:00
Eric Wasylishen 254310dc2c tests: switch to Catch2 style 2022-05-15 11:20:02 -06:00
Jonathan d9c6e52bd3 Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup 2022-05-15 10:09:41 -04:00
Jonathan e2512372c3 fix -convert not working properly for Q2 maps
begin code for alias files
2022-05-15 10:09:38 -04:00
Eric Wasylishen 215c6549b9 testqbsp: add test of nodraw + includeskip 2022-05-15 01:49:27 -06:00
Eric Wasylishen 67a895d1e7 testqbsp: fix use of msvc-ism 2022-05-15 00:50:53 -06:00
Eric Wasylishen d34d41a390 testqbsp: add helper for compiling with an external bsp tool 2022-05-15 00:37:58 -06:00
Eric Wasylishen e834b848b9 qbsp: fix areanodes test 2022-05-15 00:15:17 -06:00
Eric Wasylishen 153bde886b testmaps_q2.base1leak: remove brushbsp arg 2022-05-14 20:14:09 -06:00
Eric Wasylishen 73e9819e82 tests: run testcommon 2022-05-14 18:25:35 -06:00
Eric Wasylishen 9c806d2d15 settings: don't call exit(0) in printHelp() as it's problematic for tests 2022-05-14 18:11:14 -06:00
Eric Wasylishen 9f6ef5c5cc ci: don't run automatated_tests.sh, it's deprecated 2022-05-14 17:47:47 -06:00
Eric Wasylishen c537ad39c1 qbsp: move wadlist to map struct 2022-05-14 15:55:18 -06:00
Eric Wasylishen bc90198006 qbsp: move wal_cache to map struct 2022-05-14 15:29:58 -06:00
Eric Wasylishen fa18a6755a qbsp: fix q2 brush export breaking when multiple tests run 2022-05-14 15:13:47 -06:00
Eric Wasylishen 863a3de04f testqbsp: write out .bsp.json files for testmaps 2022-05-14 15:08:49 -06:00
Eric Wasylishen ba37ae3a54 move serialize_bsp() to common/bspinfo.cc 2022-05-14 14:54:21 -06:00
Eric Wasylishen 2195a3f5a4 testqbsp: adjust testmaps_q2.detail to accept extra solid leafs generated on type-cleanup branch 2022-05-13 01:18:30 -06:00
Eric Wasylishen b2e78376cb qbsp: require nonzero intersection between leaf/brush in order to add a leafbrush
removes some unnecessary leafbrushes in testmaps_q2.detail
2022-05-13 01:17:45 -06:00
Eric Wasylishen b3f35b28ad testqbsp: relax node count requirement in simple_worldspawn_sky 2022-05-13 00:27:40 -06:00
Eric Wasylishen f9242f51d6 bspinfo: .json: output readable node plane 2022-05-13 00:27:10 -06:00
Eric Wasylishen b6ce6ae527 testqbsp: simple_worldspawn_sky: fix expectation so sky leafs don't fill outwards 2022-05-12 23:51:05 -06:00
Eric Wasylishen 8f0034565d qbsp: surfaces.cc: don't output inside faces of sky brushes
Can't see them anyway
2022-05-12 23:43:32 -06:00
Eric Wasylishen a02a4b1b5a Update googletest 2022-05-12 00:38:28 -06:00
Eric Wasylishen 0c27c92e41 vis: fix 32-bit shift warning
"result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)"
2022-05-12 00:37:22 -06:00
Eric Wasylishen 15a136a742 light/CMakeLists.txt: fix vcpkg builds
improve tbb12.dll hack, which is only desired for the embree binary releases
2022-05-12 00:25:18 -06:00
Jonathan 59db5bfdc5 Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
# Conflicts:
#	include/qbsp/qbsp.hh
#	qbsp/map.cc
#	qbsp/qbsp.cc
2022-05-11 09:50:46 -04:00
Jonathan cbdb5c0c73 slight bit of cleaning 2022-05-11 09:46:39 -04:00
Eric Wasylishen a1b8a38283 merge non-brush bsp specific changes from brushbsp branch 2022-05-11 01:58:53 -06:00
Eric Wasylishen 6e3bb91d98 build: fix build on macOS/clang 2022-05-11 00:21:14 -06:00
Eric Wasylishen 0147e51658 build: fix testcommon on clang-cl 2022-05-10 23:32:56 -06:00
Eric Wasylishen e9abb212bb settings: allow setting_enum to parse numeric representation of enums
use it for light forumla. disallow enums in setting_numeric.
2022-05-10 22:55:41 -06:00
Eric Wasylishen d390ac2030 build: restore !enum check on setting_numeric constructor and boolValue()
with non-MSVC workaround
2022-05-10 22:08:41 -06:00
Eric Wasylishen abc799554d build: fix all clang-cl warnings 2022-05-10 21:57:17 -06:00
Eric Wasylishen d763b2e336 build: support clang-cl 2022-05-10 21:39:58 -06:00
Eric Wasylishen f916fe3c6a build: workaround for clang-cl 2022-05-10 20:48:32 -06:00
Eric Wasylishen 0c4833226a settings: implement reset(). Fix setting_mangle::copyFrom()
We can't use the string serialization/deserialization trick because setting_mangle transforms
the value upon parsing
2022-05-10 00:43:22 -06:00
Eric Wasylishen 768e4a0ff7 Merge branch 'master' into type-cleanup 2022-05-09 23:37:48 -06:00
Eric Wasylishen 4042f1c7b9 light: fix compile after previous change 2022-05-09 23:27:33 -06:00
Eric Wasylishen 081d63a64c settings: add setting_container::copyFrom, setting_base::copyFrom
disable copy constructors on setting_container/setting_base, which were previously available but broken
2022-05-09 22:32:09 -06:00
Jonathan d6377acff9 -q2rtx implies -q2bsp now 2022-04-30 23:30:18 -04:00
Jonathan cc0e1a5561 move Face_IsLightmapped to light
Fix q2rtx, needs to include lightstyle for nodraw for emissive invisibles with lightstyles
fix wal (for the 900th time)
auto-set -nolighting for -q2rtx
2022-04-30 23:27:21 -04:00
Jonathan 1b852e3a20 fix WINDOW issue
surflight_subdivide minimum 1.0, to allow for people breaking their computers
2022-04-30 22:26:08 -04:00