Skip to content

Commit

Permalink
Add missing tests for @lib #111
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 3, 2022
1 parent c463c3a commit 510fabb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/12_errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ echo 'more code in prelude'

@goal g14
@depends_on unknown1

@lib lib2
2 changes: 2 additions & 0 deletions tests/12_errors.tush
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/12_errors.sh
@ tests/12_errors.sh:36: @unknown_directive arg
@ You can only use one @lib in a @goal:
@ tests/12_errors.sh:38: @use_lib lib2
@ Lib 'lib2' is already defined:
@ tests/12_errors.sh:46: @lib lib2
@ Goal 'g1' has unknown dependency 'unknown':
@ tests/12_errors.sh:18: @depends_on unknown
@ Goal 'g2' uses unknown lib 'unknown':
Expand Down

0 comments on commit 510fabb

Please sign in to comment.