0.0.002
ddat interop with dat js cable interop with cabal js ddat's frontend = dat-thang cable fe = cable-thang dillo support based on cel's dillo-dat bootstrap node xplatform support Signed-off-by: divo <418@cryspace.space>
This commit is contained in:
1 parent
f0f91540be
commit
b735900f2e
323 files changed
+134347
-343
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# Dillo integration checks
|
||||
|
||||
These scripts were moved out of `build/` so cleaning or recreating compiler
|
||||
outputs cannot remove the test procedure.
|
||||
|
||||
- `cold-site-dpip.sh` invokes the local Linux DPI with a canned DPIP exchange
|
||||
and writes its response and diagnostics to ignored `local-data/`.
|
||||
- `real-site-dpip.sh` invokes an installed Dillo DPI against the seeded test
|
||||
archive. Set `DILLO_DPID_KEY_FILE` when the dpid key is outside
|
||||
`$HOME/.dillo/dpid_comm_keys`; set `DAT_DPI_BIN` if the DPI executable is at
|
||||
a different path. Its captured response goes to ignored `local-data/`.
|
||||
- `../../test_dpi.sh` is the automated socket-framing check run by `make test`.
|
||||
|
||||
These checks need a running Cesspool bootstrap and a peer seeding the requested
|
||||
archive to exercise a network fetch. Cached responses can be inspected under
|
||||
`local-data/test-runs/dillo/` after running them.
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
repo=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)
|
||||
cold="$repo/local-data/test-runs/dpi-cold-parity-20261007"
|
||||
output="$repo/local-data/test-runs/dillo"
|
||||
mkdir -p "$cold/.dillo" "$cold/.config/dat-gpt"
|
||||
mkdir -p "$output"
|
||||
printf '12345 abcdef1234567890\n' > "$cold/.dillo/dpid_comm_keys"
|
||||
printf '127.0.0.1:3282\n' > "$cold/.config/dat-gpt/bootstrap"
|
||||
{
|
||||
printf "<cmd='auth' msg='abcdef1234567890' '>\n"
|
||||
printf "%s\n" "<cmd='open_url' url='dat://4a93f5824c7f4a39d485c84a4de0f563a33915954e7ee3f10ea3f6699f2a9ee8/' '>"
|
||||
printf "%s\n" "<cmd='DpiBye' '>"
|
||||
} | HOME="$cold" "$repo/build/linux/dat.dpi" > "$output/dpi-cold-site.response" 2> "$output/dpi-cold-site.error"
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
repo=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)
|
||||
key_file=${DILLO_DPID_KEY_FILE:-"$HOME/.dillo/dpid_comm_keys"}
|
||||
dpi_bin=${DAT_DPI_BIN:-/usr/local/lib/dillo/dpi/dat/dat.dpi.exe}
|
||||
output="$repo/local-data/test-runs/dillo/real-site-dpi.response"
|
||||
mkdir -p "$(dirname -- "$output")"
|
||||
read -r _ secret _ < "$key_file"
|
||||
{
|
||||
printf "<cmd='auth' msg='%s' '>\n" "$secret"
|
||||
printf "%s\n" "<cmd='open_url' url='dat://4a93f5824c7f4a39d485c84a4de0f563a33915954e7ee3f10ea3f6699f2a9ee8/' '>"
|
||||
printf "%s\n" "<cmd='open_url' url='dat://4a93f5824c7f4a39d485c84a4de0f563a33915954e7ee3f10ea3f6699f2a9ee8/dat-logo.png' '>"
|
||||
printf "%s\n" "<cmd='DpiBye' '>"
|
||||
} | "$dpi_bin" > "$output"
|
||||
grep -E "start_send_page|Site is online|The site is online|Content-Type|Content-Length" "$output"
|
||||
Reference in new issue
Block a user