Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 Routing API #95

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/tour.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex
echo Clone tester repo.
git clone https://github.com/John-LittleBearLabs/ipfs_client_clitester.git
git clone --single-branch --branch simplify https://github.com/John-LittleBearLabs/ipfs_client_clitester.git

echo Install dependencies.
sudo apt-get update
Expand Down Expand Up @@ -38,16 +38,25 @@ do
done

function url_case() {
echo "url_case(" "${@}" ")"
if timeout 360 ./tester_build/clitester warning "${1}://${2}"
echo "namespace =${1}"
echo "path remaining =${2}"
echo "output hash =${3}"
echo "test case description =${4}"
echo "log level =${5-trace}"
if timeout 360 ./tester_build/clitester "${5-trace}" "${1}://${2}"
then
echo clitester exited with successful status
else
echo "Directly reported error code from clitester run - usually means timeout killed it. " "${@}"
exit 7
fi
n=`sed 's,[^A-Za-z0-9\.],_,g' <<< ${2}`
if cat "_${1}_${n}" | md5sum | cut -d ' ' -f 1 > actual
if [ ! -f "_${1}_${n}" ]
then
echo "Failed to produce expected file _${1}_${n} for test case " "${@}"
ls -lrth
exit 7
elif cat "_${1}_${n}" | md5sum | cut -d ' ' -f 1 > actual
then
ls -lrth _ip?s_*
if [ $# -ge 3 ]
Expand All @@ -57,6 +66,7 @@ function url_case() {
then
echo good
else
xxd "_${1}_${n}"
echo "Got wrong result: " "${@}"
exit 8
fi
Expand All @@ -74,7 +84,7 @@ url_case ipfs bafkqacdjmrsw45djor4q ff483d1ff591898a9942916050d2ca3f 'Identity (
url_case ipfs baguqeerah2nswg7r2pvlpbnsz5y4c4pr4wsgbzixdl632w5qxvedqzryf54q 7750fd7b0928f007e1d181763c0dbdb5 'A DAG-JSON document. The block itself md5s to b92348005af4ae4795e6f312844fb359, but the response we are hashing here is an HTML preview page. This does mean this test breaks if you make the preview less ugly.'
url_case ipns en.wikipedia-on-ipfs.org/I/HFE_Too_Slow_1.JPG.webp 09c09b2654e8529740b5a7625e39e0c8 'An image fetched through DNSLink and HAMT sharded directories.'
url_case ipfs bafybeieb33pqideyl5ncd33kho622thym5rqv6sujrmelcuhkjlf2hdpu4/Big%20Buck%20Bunny.webm 06d51286e56badb4455594ebed6daba2 'A large UnixFS file - several hundred blocks.'
echo 'Skip as it takes too long.' url_case ipfs bafybeieb33pqideyl5ncd33kho622thym5rqv6sujrmelcuhkjlf2hdpu4/Big%20Buck%20Bunny.webm 06d51286e56badb4455594ebed6daba2 'A large UnixFS file - several hundred blocks.' error
url_case ipns k51qzi5uqu5dijv526o4z2z10ejylnel0bfvrtw53itcmsecffo8yf0zb4g9gi/symlinks/relative_link.txt cfe9b69523140b5b5e63874a8e4997e4 'A relative symlink resolves successfully to the file pointed to.'
echo Stop test server.
Expand Down

This file was deleted.

This file was deleted.

64 changes: 0 additions & 64 deletions chromium_edits/121.0.6147.0/url/url_canon_ipfs.cc

This file was deleted.

17 changes: 0 additions & 17 deletions chromium_edits/121.0.6147.0/url/url_util.cc.patch

This file was deleted.

23 changes: 0 additions & 23 deletions chromium_edits/121.0.6156.3/chrome/browser/BUILD.gn.patch

This file was deleted.

32 changes: 0 additions & 32 deletions chromium_edits/121.0.6156.3/url/BUILD.gn.patch

This file was deleted.

28 changes: 0 additions & 28 deletions chromium_edits/121.0.6156.3/url/url_canon.h.patch

This file was deleted.

17 changes: 0 additions & 17 deletions chromium_edits/121.0.6156.3/url/url_util.cc.patch

This file was deleted.

38 changes: 0 additions & 38 deletions chromium_edits/121.0.6167.8/chrome/browser/about_flags.cc.patch

This file was deleted.

This file was deleted.

Loading
Loading