Skip to content

Commit

Permalink
Added test to ensure autotrace doesn't have a wrong imput format hand…
Browse files Browse the repository at this point in the history
…ling

Closes issue autotrace#5.

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
  • Loading branch information
lemenkov committed Jun 30, 2022
1 parent 17c9cfb commit 6011315
Show file tree
Hide file tree
Showing 3 changed files with 30,241 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/github-#5/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

. "`dirname "$0"`/../functions"

DIR=$1

autotrace -output-file $DIR/trace01.svg -output-format svg -report-progress -input-format BPM $DIR/trace01.bmp
RESULT=$?

if [ $RESULT -ne 0 ]; then
rm -f $DIR/trace01.svg
expected_fail
else
fail "Invalid options parsing"
fi
ok
Binary file added tests/github-#5/trace01.bmp
Binary file not shown.

0 comments on commit 6011315

Please sign in to comment.