<commit_before>#!/bin/bash

ERROR=0;
function run {
    echo
    echo "==============================================="
    echo $1
    echo "==============================================="
    echo
    shift
    $@
    if [ $? -eq 0 ]; then return; fi
    ERROR=1
}

###### RUN TESTS #######

#export JUNIT_OUTPUT_FILE=sync_tests.xml
#run "Sync tests"        prove --harness=TAP::Harness::JUnit -l t/*/*.t
#
#export JUNIT_OUTPUT_FILE=yaml_lwp.xml
#run 'YAML: HTTPTiny'    ./test/run_yaml_tests.pl --junit
#
#export JUNIT_OUTPUT_FILE=yaml_netcurl.xml
#run 'YAML: NetCurl'     ./test/run_yaml_tests.pl  --cxn NetCurl

export JUNIT_OUTPUT_FILE=yaml_netcurl.xml
run 'YAML: Hijk'        ./test/run_yaml_tests.pl  --cxn Hijk -v elasticsearch/rest-api-spec/test/update/<commit_msg>Trace, verbose and junit enabled<commit_after>#!/bin/bash

ERROR=0;
function run {
    echo
    echo "==============================================="
    echo $1
    echo "==============================================="
    echo
    shift
    $@
    if [ $? -eq 0 ]; then return; fi
    ERROR=1
}

###### RUN TESTS #######

#export JUNIT_OUTPUT_FILE=sync_tests.xml
#run "Sync tests"        prove --harness=TAP::Harness::JUnit -l t/*/*.t
#
#export JUNIT_OUTPUT_FILE=yaml_lwp.xml
#run 'YAML: HTTPTiny'    ./test/run_yaml_tests.pl --junit
#
#export JUNIT_OUTPUT_FILE=yaml_netcurl.xml
#run 'YAML: NetCurl'     ./test/run_yaml_tests.pl  --junit --cxn NetCurl

export JUNIT_OUTPUT_FILE=yaml_netcurl.xml
run 'YAML: Hijk'        ./test/run_yaml_tests.pl  --junit --cxn Hijk -v --trace elasticsearch/rest-api-spec/test/update/
{'fraction_non_alphanumeric': 0.2526645768025078, 'fraction_numerical': 0.005015673981191223, 'mean_word_length': 3.61271676300578, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '7023425', 'n_tokens_mistral': 590, 'n_tokens_neox': 564, 'n_words': 114}