# MmapCache / mmap_cache driver / mmap_key — full smoke list (all mmap-related tests).
#
# Run from repo root:
#   tests/pytests/run-mmapcache-smoke-tests.sh
# Or:
#   python -m pytest $(grep -v '^#' tests/pytests/mmapcache-smoke-tests.txt | grep -v '^$') --benchmark-disable --tb=short

# --- salt.utils.mmap_cache ---
tests/pytests/unit/utils/test_mmap_cache.py
tests/pytests/unit/utils/test_mmap_cache_errors.py
tests/pytests/unit/utils/test_mmap_cache_segments.py
tests/pytests/unit/utils/test_mmap_cache_enterprise.py

# --- salt.cache.mmap_cache / mmap_key ---
tests/pytests/unit/cache/test_mmap_cache.py
tests/pytests/unit/cache/test_mmap_cache_errors.py
tests/pytests/unit/cache/test_mmap_key.py

# --- Cache backend parity (parametrized localfs + mmap_cache) ---
tests/pytests/unit/cache/test_cache_backends.py

# --- Runners: cache migrate + PKI mmap helpers ---
tests/pytests/unit/runners/test_cache_migrate.py
tests/pytests/unit/runners/test_pki.py

# --- Functional ---
tests/pytests/functional/cache/test_mmap_cache_driver.py
tests/pytests/functional/cache/test_mmap_key.py
tests/pytests/functional/utils/test_mmap_cache.py
tests/pytests/functional/runners/test_cache_migrate.py

# --- Perf (localfs vs mmap_cache benchmarks) ---
tests/pytests/perf/test_cache_benchmarks.py

# --- Explicit CI regression (Ubuntu 22.04 Arm64 unit / Python 3.12 mmap write path) ---
# Placed after whole-module entries so pytest does not narrow collection (module+node adjacency quirk).
tests/pytests/unit/cache/test_cache_backends.py::test_updated_changes_after_overwrite[mmap_cache]
tests/pytests/unit/cache/test_cache_backends.py::test_flush_entire_bank[mmap_cache]
tests/pytests/unit/cache/test_cache_backends.py::test_list_returns_stored_keys[mmap_cache]
tests/pytests/unit/cache/test_mmap_cache.py::test_flush_entire_bank
tests/pytests/unit/cache/test_mmap_cache.py::test_list_returns_keys
tests/pytests/unit/cache/test_mmap_cache.py::test_nested_bank_list
tests/pytests/unit/cache/test_mmap_key.py::test_list_returns_all_keys
tests/pytests/unit/cache/test_mmap_key.py::test_flush_bank_removes_all_keys
tests/pytests/unit/cache/test_mmap_key.py::test_rebuild_from_localfs
