mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-11 20:17:46 +00:00
test(torrents): harden runtime smoke harness
This commit is contained in:
@@ -23,3 +23,21 @@ cd src-tauri
|
||||
FIRELINK_LIVE_YOUTUBE_URL='https://www.youtube.com/watch?v=dQw4w9WgXcQ' \
|
||||
cargo test filters_live_youtube_metadata_from_env --lib -- --ignored --nocapture
|
||||
```
|
||||
|
||||
Run the real local Torrent runtime smoke test against the host bundled Aria2
|
||||
binary. It starts a local tracker and two Aria2 daemons, then covers magnet
|
||||
metadata resolution, saved-metadata hash validation, selected-file output,
|
||||
pause/resume, ownership reporting, and cancel/remove:
|
||||
|
||||
```sh
|
||||
npm run smoke:torrent
|
||||
```
|
||||
|
||||
Use `node scripts/smoke-torrent.js --binary /path/to/aria2c` when validating a
|
||||
packaged or target-specific Aria2 binary.
|
||||
|
||||
Run the deterministic unavailable-tracker and Aria2-daemon-exit checks with:
|
||||
|
||||
```sh
|
||||
npm run smoke:torrent:failure-paths
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user