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.17 tracks/purescript/bin/test.sh
trackler-2.2.1.16 tracks/purescript/bin/test.sh
trackler-2.2.1.15 tracks/purescript/bin/test.sh
trackler-2.2.1.14 tracks/purescript/bin/test.sh
trackler-2.2.1.13 tracks/purescript/bin/test.sh
trackler-2.2.1.12 tracks/purescript/bin/test.sh
trackler-2.2.1.11 tracks/purescript/bin/test.sh
trackler-2.2.1.10 tracks/purescript/bin/test.sh
trackler-2.2.1.9 tracks/purescript/bin/test.sh
trackler-2.2.1.8 tracks/purescript/bin/test.sh
trackler-2.2.1.7 tracks/purescript/bin/test.sh
trackler-2.2.1.6 tracks/purescript/bin/test.sh
trackler-2.2.1.5 tracks/purescript/bin/test.sh
trackler-2.2.1.4 tracks/purescript/bin/test.sh
trackler-2.2.1.3 tracks/purescript/bin/test.sh
trackler-2.2.1.2 tracks/purescript/bin/test.sh
trackler-2.2.1.1 tracks/purescript/bin/test.sh
trackler-2.2.1.0 tracks/purescript/bin/test.sh
trackler-2.2.0.6 tracks/purescript/bin/test.sh
trackler-2.2.0.5 tracks/purescript/bin/test.sh