mirror of
https://github.com/xroche/httrack.git
synced 2026-08-12 10:42:47 +03:00
* tests: resolve online-gate helper scripts against the script's own directory The seven online crawl tests invoked check-network.sh and crawl-test.sh by bare relative name, which the shell resolves against the caller's cwd. make check runs from the build tree's tests/, so an out-of-tree build finds no copy: the gate failed to open, the || branch reported "skipping online unit tests", and the tests skipped whatever --enable-online-unit-tests asked for. check-network.sh had the same defect in its own auto-probe call to crawl-test.sh. Resolve all of them against $(dirname "$0"), the idiom local-crawl.sh already uses. 232 pins the skip reason from an unrelated cwd and sweeps the tree for the same form. The option's help string advertised default=yes; the code has always defaulted to no. Signed-off-by: Xavier Roche <roche@httrack.com> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * tests: keep 232's comment clear of 226's credential-scrub gate 226 flags any .test naming the Windows suite driver without the scrub line, comment or not, so the exemption note tripped it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Xavier Roche <roche@httrack.com> * tests: tighten 232's sweep, which is the only check below the gate With the flag off check-network.sh exits before a test reaches its own crawl-test.sh line, so the runtime probe cannot see that class at all and the static sweep carries it alone. Four spellings of #1016 were getting through: a leading ./, a quoted bare name, eval, and a variable holding the bare name. Quoting and ./ change nothing about what the shell opens, so the shape exemption is gone and the two call sites that mean the cwd are named instead. A variable operand is resolved back to its assignment, and eval sites are pinned as a set rather than passed over. Each form is planted as a fixture, with anchored and commented fixtures for the other direction. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Xavier Roche <roche@httrack.com> * tests: 172 never checked that it ran its own staged suite copy Pointing it at the srcdir copy passed, dropping the reap_leftover_processes neuter it appends to the staged testlib.sh and leaving the test to reap sibling engines under "make check -j", a flake whose symptom points nowhere near its cause. test-timeout.sh sources testlib.sh from the staging directory too, so a plain marker file would still be written under the mutant; record the sourcing script instead and require the driver. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Xavier Roche <roche@httrack.com> --------- Signed-off-by: Xavier Roche <roche@httrack.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
364 B
Executable File
364 B
Executable File