Skip to content

Commit

Permalink
Should report only 1 error out of repeating due to glob #159 : add test
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 6, 2024
1 parent 6a76bff commit a983a4b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/30_errors_when_glob.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@lib

# should report only 1 error out of repeating due to glob

@goal @glob 'glob_test/*.txt'
@doc 'aaa'
@doc 'bbb'
@reached_if true
@reached_if true
@use_lib
@use_lib
@depends_on @args
11 changes: 11 additions & 0 deletions tests/30_errors_when_glob.tush
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

$ ./$MAKESURE -f tests/30_errors_when_glob.sh
@ Multiple @doc not allowed for a goal:
@ tests/30_errors_when_glob.sh:7: @doc 'bbb'
@ Multiple @reached_if not allowed for a goal:
@ tests/30_errors_when_glob.sh:9: @reached_if true
@ You can only use one @lib in a @goal:
@ tests/30_errors_when_glob.sh:11: @use_lib
@ @args only allowed at position 3:
@ tests/30_errors_when_glob.sh:12: @depends_on @args
? 1

0 comments on commit a983a4b

Please sign in to comment.