Sha256: b350e88d39fee6ec999f9bba7b3f73272411f1cdeb781f7c00d871d70c733dd0

Contents?: true

Size: 589 Bytes

Versions: 119

Compression:

Stored size: 589 Bytes

Contents

#!/usr/bin/env bash

xpurescript=$(dirname "$BASH_SOURCE")
xpurescript=$(readlink -f "$xpurescript/..")
cd "$xpurescript"

declare -i TEST_RESULT=0
FAILED_EXERCISES=''

cd exercises

for exercise_dir in *
do
  "$xpurescript/bin/test-one.sh" "$exercise_dir"

  if [[ $? == 0 ]]; then
    TEST_RESULT=1
    FAILED_EXERCISES+="$exercise_dir\n"
  fi
done

echo
if [[ $TEST_RESULT == 0 ]]; then
  echo -e "\e[1;32mAll exercises passed\e[0;39m"
else
  echo -e "\e[1;31mThe following exercises failed"

  echo -e "\e[1;33m"
  printf $FAILED_EXERCISES
  echo -e "\e[0;39m"

  exit $TEST_RESULT
fi

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
trackler-2.2.1.37 tracks/purescript/bin/test.sh
trackler-2.2.1.36 tracks/purescript/bin/test.sh
trackler-2.2.1.35 tracks/purescript/bin/test.sh
trackler-2.2.1.34 tracks/purescript/bin/test.sh
trackler-2.2.1.33 tracks/purescript/bin/test.sh
trackler-2.2.1.32 tracks/purescript/bin/test.sh
trackler-2.2.1.31 tracks/purescript/bin/test.sh
trackler-2.2.1.30 tracks/purescript/bin/test.sh
trackler-2.2.1.29 tracks/purescript/bin/test.sh
trackler-2.2.1.28 tracks/purescript/bin/test.sh
trackler-2.2.1.27 tracks/purescript/bin/test.sh
trackler-2.2.1.26 tracks/purescript/bin/test.sh
trackler-2.2.1.25 tracks/purescript/bin/test.sh
trackler-2.2.1.24 tracks/purescript/bin/test.sh
trackler-2.2.1.23 tracks/purescript/bin/test.sh
trackler-2.2.1.22 tracks/purescript/bin/test.sh
trackler-2.2.1.21 tracks/purescript/bin/test.sh
trackler-2.2.1.20 tracks/purescript/bin/test.sh
trackler-2.2.1.19 tracks/purescript/bin/test.sh
trackler-2.2.1.18 tracks/purescript/bin/test.sh