<commit_before>#!/bin/bash

# Usage: ./run_tests.sh <gtest filter pattern>
# Example: ./run_tests.sh TCP*
# Runs all tests starting with TCP.

GTEST_FILTER=$1
export DYLD_LIBRARY_PATH=$BOOST_ROOT/stage/lib

cd $GAME_ENGINE_ROOT
for TEST_RESOURCE_DIRECTORY in `find $PWD GameEngine -name "*TestResources"`; do
    cp -r $TEST_RESOURCE_DIRECTORY $GAME_ENGINE_ROOT/GameEngine/GameEngineTesting 2> /dev/null
done

cd $GAME_ENGINE_ROOT/GameEngine/GameEngineTesting
./GameEngineTests --gtest_filter=$GTEST_FILTER
cd $GAME_ENGINE_ROOT
<commit_msg>All tests show now run in Travis<commit_after>#!/bin/bash

# Usage: ./run_tests.sh <gtest filter pattern>
# Example: ./run_tests.sh TCP*
# Runs all tests starting with TCP.

GTEST_FILTER=$1
export DYLD_LIBRARY_PATH=$BOOST_ROOT/stage/lib

cd $GAME_ENGINE_ROOT
for TEST_RESOURCE_DIRECTORY in `find $PWD GameEngine -name "*TestResources"`; do
    cp -r $TEST_RESOURCE_DIRECTORY $GAME_ENGINE_ROOT/GameEngine/GameEngineTesting 2> /dev/null
done

cd $GAME_ENGINE_ROOT/GameEngine/GameEngineTesting
if [[ -z "$GTEST_FILTER" ]]; then
    ./GameEngineTests
else
    ./GameEngineTests --gtest_filter=$GTEST_FILTER
fi
cd $GAME_ENGINE_ROOT

{'fraction_non_alphanumeric': 0.1036846615252785, 'fraction_numerical': 0.003427592116538132, 'mean_word_length': 5.5251396648044695, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4064521', 'n_tokens_mistral': 441, 'n_tokens_neox': 419, 'n_words': 97}