<commit_before><commit_msg>add new test script<commit_after>#!/bin/bash
set -e
thisdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

rm -rf build
mkdir build 
cd build

mode=$1
if [ "$mode" != "Debug" ];then
    mode="Release"     
fi

cmake -DCMAKE_BUILD_TYPE=$1 $thisdir
make -j4

app=./transwarp_test
echo "+++ Running $app ..."
count=0
while [ $count -lt 100 ]; do
    $app --use-colour no --order rand --rng-seed 'time' > /dev/null
    let count+=1
done
$thisdir/valgrind.sh $app --use-colour no
echo "Tests OK"

echo "+++ Running examples"
./basic_with_three_tasks
./benchmark_simple
./benchmark_statistical
./single_thread_lock_free
./statistical_key_facts
echo "Examples OK"

cd ..
rm -rf build 
echo "All OK"
{'fraction_non_alphanumeric': 0.16160220994475138, 'fraction_numerical': 0.012430939226519336, 'mean_word_length': 3.707792207792208, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '6654908', 'n_tokens_mistral': 287, 'n_tokens_neox': 268, 'n_words': 76}