From 406ee1b8c0f6c2ca3e3cd1281eee6dd59e473a68 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 29 Jul 2022 16:20:18 +0200 Subject: InstallCas: Add test for reading large blobs via install-cas --- test/end-to-end/remote-execution/TARGETS | 11 +++- test/end-to-end/remote-execution/large-blobs.sh | 70 +++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 test/end-to-end/remote-execution/large-blobs.sh (limited to 'test/end-to-end/remote-execution') diff --git a/test/end-to-end/remote-execution/TARGETS b/test/end-to-end/remote-execution/TARGETS index d1cd7875..1fa9f8a3 100644 --- a/test/end-to-end/remote-execution/TARGETS +++ b/test/end-to-end/remote-execution/TARGETS @@ -4,6 +4,15 @@ , "test": ["native-protocol.sh"] , "deps": [["test/end-to-end", "tool-under-test"], ["", "bin/just-mr.py"]] } +, "large-blobs": + { "type": ["@", "rules", "shell/test", "script"] + , "name": ["large-blobs"] + , "test": ["large-blobs.sh"] + , "deps": [["test/end-to-end", "tool-under-test"]] + } , "TESTS": - {"type": "install", "tainted": ["test"], "deps": ["native-protocol"]} + { "type": "install" + , "tainted": ["test"] + , "deps": ["native-protocol", "large-blobs"] + } } diff --git a/test/end-to-end/remote-execution/large-blobs.sh b/test/end-to-end/remote-execution/large-blobs.sh new file mode 100644 index 00000000..b4f7add5 --- /dev/null +++ b/test/end-to-end/remote-execution/large-blobs.sh @@ -0,0 +1,70 @@ +#!/bin/sh + +set -eu + +readonly JUST="${PWD}/bin/tool-under-test" + +# create a sufficiently large (>4MB) file for testing upload/download (16MB) +dd if=/dev/zero of=large.file bs=1024 count=$((16*1024)) + +touch ROOT +cat > TARGETS <