<commit_before>#!/usr/bin/env bash

set -e

./build.sh --release

mkdir -p bin
g++ tests/miniz_tester.cpp tests/timer.cpp -o bin/miniz_tester -I. -ggdb -O2 -L. -lminiz_oxide -lutil -ldl -lrt -lpthread -lgcc_s -lc -lm -lrt -lpthread -lutil

for i in 1 2 3 4 5 6
do
    gcc examples/example$i.c -o bin/example$i -lm -I. -ggdb -L. -lminiz_oxide -lutil -ldl -lrt -lpthread -lgcc_s -lc -lm -lrt -lpthread -lutil
done

mkdir -p test_scratch
if ! test -e "test_scratch/linux-4.8.11"
then
    cd test_scratch
    wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz -O linux-4.8.11.tar.xz
    tar xfv linux-4.8.11.tar.xz
    cd ..
fi

cd test_scratch
../bin/miniz_tester -v a linux-4.8.11
../bin/miniz_tester -v -r a linux-4.8.11
../bin/miniz_tester -v -b -r a linux-4.8.11
../bin/miniz_tester -v -a a linux-4.8.11

mkdir -p large_file
truncate -s 5G large_file/lf
../bin/miniz_tester -v -a a large_file<commit_msg>travis troubleshooting#2<commit_after>#!/usr/bin/env bash

set -e

./build.sh --release

mkdir -p bin
g++ tests/miniz_tester.cpp tests/timer.cpp -o bin/miniz_tester -I. -ggdb -O2 -L. -lminiz_oxide -lutil -ldl -lrt -lpthread -lgcc_s -lc -lm -lrt -lpthread -lutil

for i in 1 2 3 4 5 6
do
    gcc examples/example$i.c -o bin/example$i -lm -I. -ggdb -L. -lminiz_oxide -lutil -ldl -lrt -lpthread -lgcc_s -lc -lm -lrt -lpthread -lutil
done

mkdir -p test_scratch
if ! test -e "test_scratch/linux-4.8.11"
then
    cd test_scratch
    wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz -O linux-4.8.11.tar.xz
    tar xf linux-4.8.11.tar.xz
    cd ..
fi

cd test_scratch
pwd
ls
ls ../bin
ls linux-4.8.11
../bin/miniz_tester -v a linux-4.8.11
../bin/miniz_tester -v -r a linux-4.8.11
../bin/miniz_tester -v -b -r a linux-4.8.11
../bin/miniz_tester -v -a a linux-4.8.11

mkdir -p large_file
truncate -s 5G large_file/lf
../bin/miniz_tester -v -a a large_file
{'fraction_non_alphanumeric': 0.1581173982020095, 'fraction_numerical': 0.046007403490216814, 'mean_word_length': 2.3785714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1603517', 'n_tokens_mistral': 946, 'n_tokens_neox': 871, 'n_words': 230}