Don't run console tests on Windows

This commit is contained in:
David Capello 2018-09-06 14:21:34 -03:00
parent 0ad4a3935a
commit fc2a3c81a4

View File

@ -23,12 +23,16 @@ $ASEPRITE -b --script scripts/console_assert.lua >tmp 2>tmp_err
! grep -q "assertion failed" tmp && fail "assert() text not found in output"
grep -q "this should not be in the output" tmp && fail "text that shouldn't be in the output is"
$ASEPRITE -b --script scripts/console_print.lua >tmp 2>tmp_err
cat >tmp_expected <<EOF
if [[ "$(uname)" =~ "MINGW32" ]] || [[ "$(uname)" =~ "MSYS_NT-10.0" ]] ; then
echo Ignore console tests on Windows
else
$ASEPRITE -b --script scripts/console_print.lua >tmp 2>tmp_err
cat >tmp_expected <<EOF
hello world
1 2 3
EOF
! diff -u tmp tmp_expected && fail
! diff -u tmp tmp_expected && fail
fi
echo ----------------------------------------------------------------------
echo "Testing scripts..."