Move CLI E2E runner into CLI tests

This commit is contained in:
vorotamoroz
2026-07-09 02:22:40 +00:00
parent b9a27ffef9
commit fd3e8416b7
5 changed files with 21 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env sh
set -eu
TASK="${CLI_E2E_TASK:-test:p2p-sync}"
case "$TASK" in
test:p2p-host|test:p2p-peers|test:p2p-sync|test:p2p-three-nodes|test:p2p-upload-download)
exec deno task "$TASK"
;;
*)
echo "Unknown CLI_E2E_TASK: $TASK" >&2
echo "Expected one of: test:p2p-host, test:p2p-peers, test:p2p-sync, test:p2p-three-nodes, test:p2p-upload-download" >&2
exit 2
;;
esac