Skip to content

Commit

Permalink
Allow @glob goals to be parameterized #155 : add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 3, 2024
1 parent 28bfb78 commit 2d8ebb0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/29_glob_plus_pg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

@goal gpg @glob 'glob_test/*.txt' @params P
echo "$ITEM $P"

@goal g1
@depends_on gpg @args 'hello'

@goal g2
@depends_on gpg @args 'hello'
@depends_on gpg @args 'hi'

@goal g3
@depends_on g3pg @args 'salut'

@goal g3pg @params X
@depends_on gpg @args X
8 changes: 8 additions & 0 deletions tests/29_glob_plus_pg.tush
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

$ cd "$MYDIR"; ./$MAKESURE -f tests/29_glob_plus_pg.sh -l

$ cd "$MYDIR"; ./$MAKESURE -f tests/29_glob_plus_pg.sh g1

$ cd "$MYDIR"; ./$MAKESURE -f tests/29_glob_plus_pg.sh g2

$ cd "$MYDIR"; ./$MAKESURE -f tests/29_glob_plus_pg.sh g3
1 change: 1 addition & 0 deletions tests/glob_test/1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
111
1 change: 1 addition & 0 deletions tests/glob_test/2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
222

0 comments on commit 2d8ebb0

Please sign in to comment.