diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2023-11-21 20:15:42 +0100 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2023-11-22 16:18:17 +0100 |
commit | aa330e53132ee01981d21d5d66f39c0d808cf418 (patch) | |
tree | f5276a43d8837a54746ca84826368cdba423ad40 /test/end-to-end/remote-execution | |
parent | 3b1095f7e3584f37c984a79ad7a2b94ebaa0700f (diff) | |
download | justbuild-aa330e53132ee01981d21d5d66f39c0d808cf418.tar.gz |
Add test case for blob splitting
Diffstat (limited to 'test/end-to-end/remote-execution')
-rw-r--r-- | test/end-to-end/remote-execution/install.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/end-to-end/remote-execution/install.sh b/test/end-to-end/remote-execution/install.sh index 29c74dfa..11eac6c5 100644 --- a/test/end-to-end/remote-execution/install.sh +++ b/test/end-to-end/remote-execution/install.sh @@ -135,7 +135,11 @@ done # install --remember -## install a tree with --remember +## install a tree with --remember, this also tests blob splitting for: +## - file smaller than minimum chunk size (2 KB) +## - file larger than maximum chunk size (64 KB) +## - tree smaller than minimum chunk size +## - tree larger than maximum chunk size mkdir -p "${SRCDIR_C}" cd "${SRCDIR_C}" @@ -146,11 +150,13 @@ cat > TARGETS <<'EOF' { "type": "generic" , "out_dirs": ["out"] , "cmds": - [ "mkdir -p out/foo out/bar out/baz" + [ "mkdir -p out/foo out/bar out/baz out/large" , "echo some file content > out/foo/data.txt" , "echo more file content > out/bar/file.txt" , "echo even more file content > out/bar/another_file.txt" , "ln -s dummy out/baz/link" + , "for i in $(seq 1000); do echo foo > out/large/$(printf %064d $i).txt; done" + , "for i in $(seq 128); do seq 1 1024 >> out/large.txt; done" ] } } |