<commit_before><commit_msg>Add tool kurento_update_test_files intended to checkout test files (videos)<commit_after>#!/bin/bash -x

echo "##################### EXECUTE: update-test-files #####################"
# JENKINS_HOME
#    Root directory where test files are located. Default value is /template

# Set default environment
[ -z "$JENKINS_HOME" ] && JENKINS_HOME=/tmp

if [ ! -d $JENKINS_HOME/test-files/.svn ]; then
	mkdir -p $JENKINS_HOME/test-files || exit 1
	cd $JENKINS_HOME/test-files || exit 1
	svn checkout http://files.kurento.org/svn/kurento . || exit 1
fi

for i in {1..3}
do
	cd $JENKINS_HOME/test-files
	svn update && exit 0
	sleep $((5*$i))
done
{'fraction_non_alphanumeric': 0.18373493975903615, 'fraction_numerical': 0.010542168674698794, 'mean_word_length': 4.40650406504065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2461317', 'n_tokens_mistral': 257, 'n_tokens_neox': 243, 'n_words': 64}