Files

2.3 KiB

VDE nightly / long-run verification

The default ctest run intentionally skips 14 tests that need external data, environment switches, or long runtimes (see docs/reference/43 §3). This directory provides a single script to run those extra checks on a machine that has the required assets.

What needs to be provided

Asset Env var / CMake var Used by
Real DWG/DXF corpus (corpus/real) VDE_REAL_CORPUS_DIR (CMake cache) Dwg*Corpus*, DxfCorpus.*
Real user models (corpus/realfile) VDE_REALFILE_DIR (CMake cache) ModelCorpus.*
LibreDWG R11/R12 fixtures (test-data/r11) TEST_DWG_R12_DIR DwgObjectDecode.R12*, DwgContainerTest.R12RealFixturesParse
Large real STEP corpus -Dcorpus dir via existing scripts StepSchemaTest.*, test_step_corpus
Network/GPU tools nvcc / hipcc G-4 CUDA/HIP path verification (tools/gpu/verify_gpu_build.ps1)

If an asset is absent the affected tests report GTEST_SKIP (never a false failure). Copy/compose the corpora, then configure once with the cache vars.

Usage

# Full nightly pass (build first!):
powershell -NoProfile -ExecutionPolicy Bypass -File tools/nightly/run_nightly.ps1 `
    -BuildDir build `
    -CorpusRoot D:\corpus\real `
    -RealfileDir D:\corpus\realfile `
    -DwgR12Dir D:\libredwg\test-data\r11

# Skip the 10-minute fuzz long run:
... -SkipFuzz

# Benchmark gate only (same as tools/bench):
powershell -NoProfile -ExecutionPolicy Bypass -File tools/bench/run_bench.ps1 -BuildDir build -Check

Stages run by the script

  1. Corpus regression: ctest -R "Corpus|RealCorpus|RealFile|R12" with the corpus env vars exported (uses existing CMake vars when configured).
  2. Fuzz long run (unless -SkipFuzz): fuzz_boolean_chain, fuzz_format, fuzz_sdf, fuzz_ccd continuous modes with VDE_FUZZ_FOREVER=1 and a -FuzzSeconds time box (default 600 s each; job killed after the box and the script reports pass/fail from the fuzz harness output).
  3. Benchmark gate: tools/bench/run_bench.ps1 -BuildDir <dir> -NoBuild -Check (relative 25% + absolute caps + noise floor; exit code propagated).

The script prints a compact PASS/FAIL summary and exits non-zero on any failure. It does not modify sources; logs go to <BuildDir>\nightly\.