X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php83-brotli_0.5.0-3.el8/brotli/tests
opt
/
alt
/
tests
/
alt-php83-brotli_0.5.0-3.el8
/
brotli
/
tests
/
ðŸ“
..
📄
Makefile
(260 B)
📄
compatibility_test.sh
(558 B)
📄
roundtrip_test.sh
(756 B)
📄
run-compatibility-test.cmake
(1.04 KB)
📄
run-roundtrip-test.cmake
(1.05 KB)
ðŸ“
testdata
Editing: roundtrip_test.sh
#!/usr/bin/bash # # Roundtrip test for the brotli command-line tool. set -o errexit BROTLI=bin/brotli TMP_DIR=bin/tmp INPUTS=""" tests/testdata/alice29.txt tests/testdata/asyoulik.txt tests/testdata/lcet10.txt tests/testdata/plrabn12.txt c/enc/encode.c c/common/dictionary.h c/dec/decode.c """ for file in $INPUTS; do for quality in 1 6 9 11; do echo "Roundtrip testing $file at quality $quality" compressed=${TMP_DIR}/${file##*/}.br uncompressed=${TMP_DIR}/${file##*/}.unbr $BROTLI -fq $quality $file -o $compressed $BROTLI $compressed -fdo $uncompressed diff -q $file $uncompressed # Test the streaming version cat $file | $BROTLI -cq $quality | $BROTLI -cd >$uncompressed diff -q $file $uncompressed done done
Upload File
Create Folder