Skip to content

Commit

Permalink
Add tests for invalid permission file
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed May 17, 2015
1 parent 1ca0a2b commit 4c8944a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions converters/Makefile.am
Expand Up @@ -13,7 +13,7 @@ if COND_GCOV
MAYBE_COVERAGE = --coverage
endif

CLEANFILES = *.gcno *.gcda *.gcov *.png *.sixel *.txt *.pipe
CLEANFILES = *.gcno *.gcda *.gcov *.png *.sixel *.txt *.pipe testfile

if WANT_IMG2SIXEL
bin_PROGRAMS += img2sixel
Expand Down Expand Up @@ -41,6 +41,11 @@ test: all test_impl

test_impl:
if WANT_IMG2SIXEL
touch testfile
chmod -r testfile
test ! $$($(WINE) ./img2sixel testfile)
test ! $$($(WINE) ./img2sixel invalid_filename)
test ! $$($(WINE) ./img2sixel .)
test ! $$($(WINE) ./img2sixel -d invalid_option)
test ! $$($(WINE) ./img2sixel -r invalid_option)
test ! $$($(WINE) ./img2sixel -s invalid_option)
Expand All @@ -57,7 +62,6 @@ if WANT_IMG2SIXEL
test ! $$($(WINE) ./img2sixel -B \#0000000000000)
test ! $$($(WINE) ./img2sixel -B \#00G)
test ! $$($(WINE) ./img2sixel -%)
test ! $$($(WINE) ./img2sixel invalid_filename)
test ! $$($(WINE) ./img2sixel -m invalid_filename ../images/snake.jpg)
test ! $$($(WINE) ./img2sixel -m ../images/map8.png -p 8 ../images/snake.jpg)
test ! $$($(WINE) ./img2sixel -m ../images/map8.png -e ../images/snake.jpg)
Expand Down

0 comments on commit 4c8944a

Please sign in to comment.