Sha256: b8e6453a2820896283535deeeb2f82b78a1a9d39d401f1745af684fbdb548723

Contents?: true

Size: 354 Bytes

Versions: 213

Compression:

Stored size: 354 Bytes

Contents

#!/bin/sh

if [ $# -eq 0 ]; then
  echo "usage: $0 exercise-slug"
  exit 1
fi

dir=$1

cd $dir

status=0

mv source testbak
mv example source
if ! dub test ; then
  echo "$dir test has failed"
  status=1
fi
# Restore so that if we are running locally,
# we don't accidentally commit the directory moves.
mv source example
mv testbak source

exit $status

Version data entries

213 entries across 213 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/d/bin/test-exercise
trackler-2.2.1.138 tracks/d/bin/test-exercise
trackler-2.2.1.137 tracks/d/bin/test-exercise
trackler-2.2.1.136 tracks/d/bin/test-exercise
trackler-2.2.1.135 tracks/d/bin/test-exercise
trackler-2.2.1.134 tracks/d/bin/test-exercise
trackler-2.2.1.133 tracks/d/bin/test-exercise
trackler-2.2.1.132 tracks/d/bin/test-exercise
trackler-2.2.1.131 tracks/d/bin/test-exercise
trackler-2.2.1.130 tracks/d/bin/test-exercise
trackler-2.2.1.129 tracks/d/bin/test-exercise
trackler-2.2.1.128 tracks/d/bin/test-exercise
trackler-2.2.1.127 tracks/d/bin/test-exercise
trackler-2.2.1.126 tracks/d/bin/test-exercise
trackler-2.2.1.125 tracks/d/bin/test-exercise
trackler-2.2.1.124 tracks/d/bin/test-exercise
trackler-2.2.1.123 tracks/d/bin/test-exercise
trackler-2.2.1.122 tracks/d/bin/test-exercise
trackler-2.2.1.121 tracks/d/bin/test-exercise
trackler-2.2.1.120 tracks/d/bin/test-exercise