Skip to content

Commit

Permalink
Revamp @define #140 : tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 17, 2023
1 parent b14d141 commit cfd1207
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/28_revamp_define.tush
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh -l

$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh g1

$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh g2

$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh g3

$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh g4

$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh g5

$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh g6

30 changes: 30 additions & 0 deletions tests/28_revamp_define_1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

@define VAR 'Value'

@goal pg @params A
echo "A=$A"

@goal pg2 @params F
@depends_on pg @args F
@depends_on pg @args VAR
@depends_on pg @args 'Str'

@goal g1
@depends_on pg @args VAR

@goal g2
@depends_on pg @args 'Str1'

@goal g3
@depends_on pg2 @args 'Str1'

@goal g4
@depends_on pg2 @args VAR

@goal g5
@depends_on pg2 @args 'Value'

@goal g6
@depends_on pg2 @args 'Str'


0 comments on commit cfd1207

Please sign in to comment.