diff --git a/.gitignore b/.gitignore index 5e91248b..bc6dea1b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ result-* # direnv .direnv/ .envrc.local +tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor diff --git a/Makefile b/Makefile index 7416e6a0..4bf214de 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ MANIFEST_SMALL ?= tests/fixtures/test-manifest.json # Real Cardano Haskell node snapshot (Conway era, epoch 507) SNAPSHOT ?= tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor MANIFEST ?= tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.json +SNAP_URL ?= "https://pub-b844360df4774bb092a2bb2043b888e5.r2.dev/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor.gz" SECTIONS_ALL := --params --governance --pools --accounts --utxo @@ -58,8 +59,15 @@ fmt: clippy: $(CARGO) clippy --workspace -- -D warnings +snapshot-download: $(SNAPSHOT) + +$(SNAPSHOT): + echo "Downloading snapshot file..." + curl -L -f -o "$(SNAPSHOT).gz" "$(SNAP_URL)" || { echo "Download failed"; exit 1; } + gunzip "$(SNAPSHOT).gz" + # Streaming snapshot parser test -snap-test-streaming: +snap-test-streaming: $(SNAPSHOT) @echo "Testing Streaming Snapshot Parser" @echo "==================================" @echo "Snapshot: $(SNAPSHOT)" diff --git a/tests/fixtures/.gitattributes b/tests/fixtures/.gitattributes index 9937673b..e69de29b 100644 --- a/tests/fixtures/.gitattributes +++ b/tests/fixtures/.gitattributes @@ -1 +0,0 @@ -134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor filter=lfs diff=lfs merge=lfs -text diff --git a/tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor b/tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor deleted file mode 100644 index 65637590..00000000 --- a/tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c01463bb6d95b3ef7fdfb334a7932199b080bbd80647ae2bdd92f76b40a127e -size 2553095916