<commit_before>#!/bin/bash
#set -ev
set -ev

# Clone MNE-CPP test data
git clone https://github.com/mne-tools/mne-cpp-test-data.git mne-cpp-test-data

# Set Environment variable
export LD_LIBRARY_PATH=$(pwd)/lib:$LD_LIBRARY_PATH
MNECPP_ROOT=$(pwd)

#tbd: later on do a grep of all cpps within testframe
# Create Code Coverage
tests=( test_codecov test_fiff_rwr )

for test in "{tests[@]}"
do
    echo $test
	./bin/${test}
    cd ./testframes/${test}
    gcov ./${test}.cpp -r
    cd $MNECPP_ROOT
done<commit_msg>[LIB-91] Change test loop<commit_after>#!/bin/bash
#set -ev
set -ev

# Clone MNE-CPP test data
git clone https://github.com/mne-tools/mne-cpp-test-data.git mne-cpp-test-data

# Set Environment variable
export LD_LIBRARY_PATH=$(pwd)/lib:$LD_LIBRARY_PATH
MNECPP_ROOT=$(pwd)

#tbd: later on do a grep of all cpps within testframe
# Create Code Coverage
tests=( test_codecov test_fiff_rwr )

for test in ${tests[*]};
do
    echo "$test"
	./bin/$test
    cd "./testframes/$test"
    gcov "./$test.cpp" -r
    cd $MNECPP_ROOT
done
{'fraction_non_alphanumeric': 0.14189189189189189, 'fraction_numerical': 0.0019305019305019305, 'mean_word_length': 3.8232558139534882, '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': '5551756', 'n_tokens_mistral': 417, 'n_tokens_neox': 399, 'n_words': 106}