This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce search path for modules; remove --tools command line option
- Loading branch information
joergboe
committed
Apr 1, 2019
1 parent
472b61e
commit 82333cf
Showing
15 changed files
with
95 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import tool1.sh | ||
import "tool2.sh" | ||
|
||
STEPS=( | ||
'echo "######## STEP1"' | ||
'func1' | ||
'func2' | ||
'myEval' | ||
) | ||
|
||
myEval() { | ||
echo "$TTPR_var11=$TTPR_var11" | ||
echo "$TTPR_var12=$TTPR_var12" | ||
echo "$TTPR_var21=$TTPR_var21" | ||
echo "$TTPR_var22=$TTPR_var22" | ||
echo "\$TTRO_var1=$TTRO_var1" | ||
if [[ $TTPR_var11 != 'set_from_tool1.sh' ]]; then setError "wrong value \$TTPR_var11"; fi | ||
if [[ $TTPR_var12 != 'set_from_func1' ]]; then setError "wrong value \$TTPR_var12"; fi | ||
if [[ $TTPR_var21 != 'set_from_tool2.sh' ]]; then setError "wrong value \$TTPR_var21"; fi | ||
if [[ $TTPR_var22 != 'set_from_func2' ]]; then setError "wrong value \$TTPR_var22"; fi | ||
if [[ $TTRO_var1 != '55' ]]; then setError "wrong value \$TTRO_var1"; fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
echo "######### tool2.sh ########" | ||
setVar 'TTPR_var11' 'set_from_tool2.sh' | ||
setVar 'TTPR_var21' 'set_from_tool2.sh' | ||
|
||
func2() { | ||
echo "######### func2 xxxx" | ||
setVar 'TTPR_var11' 'set_from_func2' | ||
setVar 'TTPR_var12' 'set_from_func2' | ||
setVar 'TTPR_var21' 'set_from_func2' | ||
setVar 'TTPR_var22' 'set_from_func2' | ||
} | ||
export -f func2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import Case1/tool2.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
import "$TTRO_inputDir/tool1.sh" | ||
import "$TTRO_inputDir/tool2.sh" | ||
import " tool1.sh " | ||
|
||
setVar 'TTRO_var1' 55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
|
||
echo "######### tool1.sh ########" | ||
setVar 'TTPR_var11' 'set_from_tool1.sh' | ||
|
||
func1() { | ||
echo "func1 xxxx" | ||
echo "TTRO_var1=$TTRO_var1" | ||
echo "######### func1 xxxx" | ||
setVar 'TTPR_var11' 'set_from_func1' | ||
setVar 'TTPR_var12' 'set_from_func1' | ||
} | ||
export -f func1 | ||
|
||
func2() { | ||
echo "func2 xxxx" | ||
setVar 'TTRO_var2' 'func2' | ||
} | ||
export -f func2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import "$TTRO_scriptDir/testutils.sh" | ||
import " testutils.sh" |