<commit_before>#!/bin/sh
################################################################################
# Name:      test-all.sh
# Purpose:   script to run all tests
# Author:    <NAME>
# Copyright: (c) 2014 <NAME>
################################################################################

TOOLKIT=`wx-config --query-toolkit`
TESTDIR=./gcc$TOOLKIT\_dll/

if [ ! -d ~/.wxex-test ]; then
  mkdir ~/.wxex-test
  cp ../extension/data/*.xml ~/.wxex-test
fi

if [ ! -d ~/.wxex-test-gui ]; then
  mkdir ~/.wxex-test-gui
  cp ../extension/data/*.xml ~/.wxex-test-gui
fi

if [ ! -d ~/.wxex-test-gui-report ]; then
  mkdir ~/.wxex-test-gui-report
  cp ../extension/data/*.xml ~/.wxex-test-gui-report
fi

echo "-- test base --"
$TESTDIR/wxex-test-base
RC=$?

echo "-- test gui --"
$TESTDIR/wxex-test-gui
NRC=$?

if [ $RC -eq "0" ]; then
  RC=$NRC
fi

# Skip this test for Travis, it hangs the gui?
if [ ! $TRAVIS ]; then
  echo "-- test gui report --"
  $TESTDIR/wxex-test-gui-report
  NRC=$?
  
  if [ $RC -eq "0" ]; then
    RC=$NRC
  fi
fi

return $RC<commit_msg>check whether report ok on travis<commit_after>#!/bin/sh
################################################################################
# Name:      test-all.sh
# Purpose:   script to run all tests
# Author:    <NAME>
# Copyright: (c) 2014 <NAME>
################################################################################

TOOLKIT=`wx-config --query-toolkit`
TESTDIR=./gcc$TOOLKIT\_dll/

if [ ! -d ~/.wxex-test ]; then
  mkdir ~/.wxex-test
  cp ../extension/data/*.xml ~/.wxex-test
fi

if [ ! -d ~/.wxex-test-gui ]; then
  mkdir ~/.wxex-test-gui
  cp ../extension/data/*.xml ~/.wxex-test-gui
fi

if [ ! -d ~/.wxex-test-gui-report ]; then
  mkdir ~/.wxex-test-gui-report
  cp ../extension/data/*.xml ~/.wxex-test-gui-report
fi

echo "-- test base --"
$TESTDIR/wxex-test-base
RC=$?

echo "-- test gui --"
$TESTDIR/wxex-test-gui
NRC=$?

if [ $RC -eq "0" ]; then
  RC=$NRC
fi

# Skip this test for Travis, it hangs the gui?
#if [ ! $TRAVIS ]; then
  echo "-- test gui report --"
  $TESTDIR/wxex-test-gui-report
  NRC=$?
  
  if [ $RC -eq "0" ]; then
    RC=$NRC
  fi
#fi

return $RC
{'fraction_non_alphanumeric': 0.3209302325581395, 'fraction_numerical': 0.005581395348837209, 'mean_word_length': 3.0280898876404496, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3661992', 'n_tokens_mistral': 829, 'n_tokens_neox': 782, 'n_words': 190}