20 Commits

Author SHA1 Message Date
dumb-kevin e4bb943d3b Fix CI skip-detection job refs, Makefile parallel safety, and test tag syntax
- matrix.yml SKIP condition referenced non-existent job names
  (skip-duplicates, skip-duplicates-mods); corrected to match declared
  jobs (skip-duplicates-code, skip-duplicates-data). Same fix for the
  commented emscripten block.
- tests/Makefile batch runs now use --user-dir with a unique PID-based
  path so parallel shard execution doesn't collide on filesystem state.
- Normalized comma-separated TEST_CASE tags to space-separated across
  9 test files (25 declarations). Comma syntax is deprecated in Catch2
  v2 and removed in v3. Also fixed a missing space between adjacent
  tags in throwing_test.cpp.
2026-02-24 21:24:24 +04:00
Andrew Krieger 0215b26cce Rewrite all tests to clear map without touching character map memory, for performance. 2026-02-08 23:05:55 -08:00
dynst 916d1aa9e5 migrate "longarm bag" item (#81883)
* migrate "longarm bag" item

This player-craftable item was designed based on no real world
item, and looks like it was created because rifle cases didn't exist
yet at the time.

It isn't a duffelbag, it isn't a rifle case, its dimensions make
zero sense, it isn't a dessert OR a floor wax.

* update reload time test

* reload time test

use an item that lacks a speedy pocket for long items.
arrow_wood is 76cm.
2025-07-18 19:09:54 +02:00
PatrikLundell 586cf5f1ce Mapify: character etc. sees + sundry others (#79699)
* Mapify: character etc. sees + sundry others

* demanded changes

* Corrected correction
2025-02-18 09:29:22 -06:00
moxian c44d65a8ae Run IWYU again to pick up the changes 2025-02-11 13:02:19 -08:00
moxian 2ee44002fd Mechanically IWYU the tests
python3 ~/github/include-what-you-use/iwyu_tool.py -j5 -p build $( find
src/ tests/ -maxdepth 1 -name '*.cpp' | grep -v -f
tools/iwyu/bad_files.txt )  --  -Xiwyu --comment_style=long -Xiwyu -
-max_line_length=1000 -Xiwyu --cxx17ns -Xiwyu
--mapping_file=../tools/iwyu/cata.imp   | tee out/iwyu/f-a-01.txt >
/dev/null

followed by

cat out/iwyu/f-a-02.txt | python3
~/github/include-what-you-use/fix_includes.py --reorder --nosafe_headers

followed by manual fixups of <stddef.h> -> <cstddef> and similar.

tests/generic_factory_test.cpp gets mangled very badly (IWYU bug) so
it's excluded from the list.

Code size:
includes:
$ cat obj/tiles/*.inc | wc
 288068  576136 17898260
$ cat tests/obj/tiles/*.inc | wc
 167044  334088 10465766

post-processed source (clang -E):
./make_preproc.sh src/
68567896 177775140 2134075721
./make_preproc.sh tests/
39341957 102891720 1243323710
2025-02-10 00:46:57 -08:00
PatrikLundell 278c26a11d Convert some vehicle operations to be map aware (#79477)
* Convert some vehicle operations to be map aware

* Oops, forgot to carry the parameter through

* removed unused operation
2025-02-03 07:54:29 +01:00
Procyonae 982df19d0f Change /tests remaining uses of raw string item initialisation to use itype_id s
"remaining uses" being somewhat of an understatement -_-
2025-01-10 15:31:15 +00:00
mqrause 4c69e47b2a change target_handler::trajectory to std::vector<tripoint_bub_ms> and then fix errors until it compiles again (#76671)
Co-authored-by: mqrause <martin@qrause.de>
2024-09-27 12:10:50 -07:00
PatrikLundell ab062c5e8b typified a bit of map.h/cpp + some dependents (#75125)
* typified a bit of map.h/cpp + some dependents

* Macro crasher found by one compiler!

* demanded changes

* stupid wokaround for demanded changes

* Sort out conflict mess
2024-09-10 09:42:54 -05:00
osuphobia 812d08ada9 Adapted from solution by KheirFerrum
Co-Authored-By: KheirFerrum <102964889+KheirFerrum@users.noreply.github.com>
2024-05-04 12:35:18 +08:00
I-am-Erk 31443011f7 Revert "Bow reload time fix (#73305)"
This reverts commit da07b2aa8c.
2024-05-03 10:55:45 -07:00
osuphobia da07b2aa8c Bow reload time fix (#73305)
* Fix RAS weapon reload time and stamina drain.

* fix typo

* clang-tidy
2024-04-27 17:06:06 -05:00
RenechCDDA b0882ee2eb Update tests for protected moves variable 2024-03-09 16:33:12 -05:00
Anton Simakov 3bdc7b53d7 Cleanup arrows (#68029)
* Initial commit

* Remove arrows from bad_density, expect to fail the tests

* Correct volume and weight of an arrow

* Material tweaks

* update reload test to new values

* Update no_hope lodge
2023-09-07 21:58:27 -05:00
John Bytheway 875cadf142 Enable performance-unnecessary-value-param (#59533)
This clang-tidy check looks for potentially-expensive-to-copy value
parameters which are only used as const values.

If they are only used once, in an assignment or initialization, then
their use will be converted to std::move.  This can save a copy in some
cases.

Otherwise, the parameter will be converted to a const reference, which
can also save a copy in some cases.
2022-07-23 19:29:45 -04:00
mqrause 5fd62948a3 refactor reloading code (#58625)
Co-authored-by: mqrause <martin@qrause.de>
2022-07-20 13:58:48 -04:00
mqrause 979718d90a change return type of Character::get_wielded_item to item_location (#58666)
Co-authored-by: mqrause <martin@qrause.de>
2022-07-09 02:03:09 -04:00
KorGgenT 99a62861eb Create wrapper for worn items called outfit 2022-02-27 23:44:51 -05:00
Kevin Granade d09f449475 Add a test with assertions about time to reload various weapons 2021-10-27 11:28:49 -07:00