aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEvgenii Kliuchnikov <eustas@google.com>2023-09-11 07:08:16 -0700
committerCopybara-Service <copybara-worker@google.com>2023-09-11 07:08:50 -0700
commitcf95fbb9c5ef348902f74d989bc8167c08ae9bc5 (patch)
treefe49c6bd10169d89d673ad7351c0441e7107c83a /tests
parente8569f79fc7c3a8b411be13b44ff8c41e93bb7be (diff)
downloadbrotli-cf95fbb9c5ef348902f74d989bc8167c08ae9bc5.zip
brotli-cf95fbb9c5ef348902f74d989bc8167c08ae9bc5.tar.gz
brotli-cf95fbb9c5ef348902f74d989bc8167c08ae9bc5.tar.bz2
reword cmake test generator warning
PiperOrigin-RevId: 564371898
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile17
-rwxr-xr-xtests/compatibility_test.sh25
-rwxr-xr-xtests/roundtrip_test.sh36
3 files changed, 0 insertions, 78 deletions
diff --git a/tests/Makefile b/tests/Makefile
deleted file mode 100644
index 28da198..0000000
--- a/tests/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-#brotli/tests
-
-BROTLI = ..
-
-all: test
-
-test: deps
- ./compatibility_test.sh
- ./roundtrip_test.sh
-
-deps :
- $(MAKE) -C $(BROTLI) brotli
-
-clean :
- rm -f testdata/*.{br,unbr,uncompressed}
- rm -f $(BROTLI)/{enc,dec,tools}/*.{un,}br
- $(MAKE) -C $(BROTLI)/tools clean
diff --git a/tests/compatibility_test.sh b/tests/compatibility_test.sh
deleted file mode 100755
index c5af8bf..0000000
--- a/tests/compatibility_test.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env bash
-#
-# Test that the brotli command-line tool can decompress old brotli-compressed
-# files.
-#
-# The first argument may be a wrapper for brotli, such as 'qemu-arm'.
-
-set -o errexit
-
-BROTLI_WRAPPER=$1
-BROTLI="${BROTLI_WRAPPER} bin/brotli"
-TMP_DIR=bin/tmp
-
-for file in tests/testdata/*.compressed*; do
- echo "Testing decompression of file $file"
- expected=${file%.compressed*}
- uncompressed=${TMP_DIR}/${expected##*/}.uncompressed
- echo $uncompressed
- $BROTLI $file -fdo $uncompressed
- diff -q $uncompressed $expected
- # Test the streaming version
- cat $file | $BROTLI -dc > $uncompressed
- diff -q $uncompressed $expected
- rm -f $uncompressed
-done
diff --git a/tests/roundtrip_test.sh b/tests/roundtrip_test.sh
deleted file mode 100755
index 0a0b910..0000000
--- a/tests/roundtrip_test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Roundtrip test for the brotli command-line tool.
-#
-# The first argument may be a wrapper for brotli, such as 'qemu-arm'.
-
-set -o errexit
-
-BROTLI_WRAPPER=$1
-BROTLI="${BROTLI_WRAPPER} 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
- if [ -f $file ]; then
- 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
- fi
-done