Skip to content

Commit

Permalink
CI: run the encoding tests on its own job
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioandre-br authored and magnumripper committed Nov 27, 2017
1 parent 6711b24 commit a504809
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ matrix:
env: ASAN="--enable-asan" TEST="fresh test"
group: deprecated-2017Q3

- os: linux
compiler: gcc
env: ASAN="" OPENCL="yes" TEST="encoding"

- os: linux
compiler: clang
env: ASAN="" OPENCL="yes" TEST="encoding"

- os: osx
osx_image: xcode8.3
env: ASAN="" OPENCL="yes"
Expand Down
4 changes: 2 additions & 2 deletions .travis/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then

../.travis/test.sh

elif [[ -z "$TEST" ]]; then
elif [[ -z "$TEST" || "$TEST" == "encoding" ]]; then
cd src

# Build and run with the address sanitizer instrumented code
Expand Down Expand Up @@ -38,7 +38,7 @@ elif [[ -z "$TEST" ]]; then
./configure CPPFLAGS=-mno-avx2 $ASAN
make -sj4

../.travis/test.sh
../.travis/test.sh "$TEST"

elif [[ "$TEST" == "fresh test" ]]; then
# ASAN using a 'recent' compiler
Expand Down
31 changes: 19 additions & 12 deletions .travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,27 @@ echo 'Raw-SHA512-free-opencl = Y' >> john-local.conf
echo 'XSHA512-free-opencl = Y' >> john-local.conf
echo 'gpg-opencl = Y' >> john-local.conf

# Proper testing. Trusty AMD GPU drivers on Travis are fragile
if test "$PROBLEM" = "slow" ; then
../run/john -test=0 --format=cpu
../run/john -test=0 --format=cpu --encoding=utf8
../run/john -test=0 --format=cpu --encoding=cp737
else
../run/john -test-full=0 --format=cpu
if test "$1" = "encoding" ; then
../run/john -test-full=0 --format=cpu --encoding=utf8
echo
../run/john -test-full=0 --format=cpu --encoding=cp737
fi

if test "$OPENCL" = "yes" ; then
../run/john -test-full=0 --format=opencl
../run/john -test-full=0 --format=opencl --encoding=utf8
../run/john -test-full=0 --format=opencl --encoding=cp737
if test "$OPENCL" = "yes" ; then
../run/john -test-full=0 --format=opencl --encoding=utf8
echo
../run/john -test-full=0 --format=opencl --encoding=cp737
fi
else

# Proper testing. Trusty AMD GPU drivers on Travis are fragile
if test "$PROBLEM" = "slow" ; then
../run/john -test=0 --format=cpu
else
../run/john -test-full=0 --format=cpu
fi

if test "$OPENCL" = "yes" ; then
../run/john -test-full=0 --format=opencl
fi
fi

0 comments on commit a504809

Please sign in to comment.