forked from riebl/artery
-
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.
run_artery.sh: support opp_runall as an option
If arguments -j and/or -b are provided, opp_runall is called instead of opp_run. Pass --all to use opp_runall without specifying any values for -j or -b. For details, see https://doc.omnetpp.org/omnetpp/manual/#sec:run-sim:batches-using-opp-runall
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
#!/bin/bash | ||
OPP_RUNALL=@opp_runall_script@ | ||
OPP_RUN=@opp_run_executable@ | ||
NED_FOLDERS="@opp_run_ned_folders@" | ||
LIBRARIES="@opp_run_libraries@" | ||
|
||
$OPP_RUN -n $NED_FOLDERS $LIBRARIES $@ | ||
RUNALL=false | ||
for arg do | ||
shift | ||
[[ "$arg" == -j* ]] && RUNALL=true && J=$arg && continue | ||
[[ "$arg" == -b* ]] && RUNALL=true && B=$arg && continue | ||
# run opp_runall with default values for -j* and -b* options by just specifying '--all' | ||
[[ "$arg" == "--all" ]] && RUNALL=true && continue | ||
set -- "$@" "$arg" | ||
done | ||
|
||
if [ "$RUNALL" = true ] ; then | ||
$OPP_RUNALL $J $B $OPP_RUN -n $NED_FOLDERS $LIBRARIES $@ | ||
else | ||
$OPP_RUN -n $NED_FOLDERS $LIBRARIES $@ | ||
fi |