Skip to content

Commit

Permalink
Makefile: test help + additional test on invalid path
Browse files Browse the repository at this point in the history
  • Loading branch information
hirthwork committed Sep 24, 2016
1 parent b61392a commit 866b1e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,17 @@ $(testdir)/errors/run:
# pass invalid option
echo '! $(target) -d $(abspath $(dir $@)ndata) -X -- $(dir $@)mount' \
| sh
# request help
$(target) -h
# `forget' to pass data dir
echo '! $(target) -- $(dir $@)mount' | sh
# ok, test runtime errors
# ok, test runtime errors on invalid paths
$(target) -d $(abspath $(dir $@)data) -m0 -- $(dir $@)mount
test ! -d $(dir $@)mount/tag1/tag2
test ! -f $(dir $@)mount/tag1/file2
test -f $(dir $@)mount/tag1/file1
test ! -e $(dir $@)mount/something
# let's remove file and try access it
test -f $(dir $@)mount/tag1/file1
rm $(dir $@)data/file1
test ! -f $(dir $@)mount/tag1/file1
touch $@
Expand Down

0 comments on commit 866b1e1

Please sign in to comment.