Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
f3692785
Commit
f3692785
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
robustness updates
Former-commit-id: dbc85ae6b73c5661e5179673e396ce15dcb40023
parent
c5eab195
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/ps_analyze.sh
+9
-6
9 additions, 6 deletions
tools/ps_analyze.sh
with
9 additions
and
6 deletions
tools/ps_analyze.sh
+
9
−
6
View file @
f3692785
...
@@ -281,9 +281,10 @@ check_options()
...
@@ -281,9 +281,10 @@ check_options()
if
[
"X
$2
"
=
"Xzipr"
]
;
then
if
[
"X
$2
"
=
"Xzipr"
]
;
then
echo
"Using Zipr backend."
echo
"Using Zipr backend."
export
backend
=
"zipr"
export
backend
=
"zipr"
phases_spec
=
"
$phases_spec
gather_libraries=off clone=off stratafy_with_pc_confine=off generate_spri=off spasm=off fast_annot=off
zipr=on
preLoaded_ILR1=off preLoaded_ILR2=off fast_spri=off create_binary_script=off is_so=off"
phases_spec
=
"
$phases_spec
gather_libraries=off clone=off stratafy_with_pc_confine=off generate_spri=off spasm=off fast_annot=off preLoaded_ILR1=off preLoaded_ILR2=off fast_spri=off create_binary_script=off is_so=off"
phases_spec
=
${
phases_spec
/preLoaded_ILR1=on/
}
phases_spec
=
${
phases_spec
/preLoaded_ILR1=on/
}
phases_spec
=
${
phases_spec
/preLoaded_ILR2=on/
}
phases_spec
=
${
phases_spec
/preLoaded_ILR2=on/
}
post_phases_spec
=
"
$post_phases_spec
zipr=on"
step_options_gather_libraries
=
"
$step_options_gather_libraries
--main_exe_only"
step_options_gather_libraries
=
"
$step_options_gather_libraries
--main_exe_only"
elif
[
"X
$2
"
=
"Xstrata"
]
;
then
elif
[
"X
$2
"
=
"Xstrata"
]
;
then
echo
"Using Strata backend."
echo
"Using Strata backend."
...
@@ -362,6 +363,8 @@ check_options()
...
@@ -362,6 +363,8 @@ check_options()
esac
esac
done
done
phases_spec
=
"
$phases_spec
$post_phases_spec
"
#
#
# Check/parse input/output file
# Check/parse input/output file
#
#
...
@@ -445,7 +448,7 @@ is_step_error()
...
@@ -445,7 +448,7 @@ is_step_error()
case
$my_step
in
case
$my_step
in
*
)
*
)
if
[
$my_error
-eq
0
]
;
then
if
[
[
$my_error
-eq
0
]
]
;
then
# if not otherwise specified, programs should return 0
# if not otherwise specified, programs should return 0
return
0
;
return
0
;
fi
fi
...
@@ -664,18 +667,18 @@ perform_step()
...
@@ -664,18 +667,18 @@ perform_step()
echo
"#ATTRIBUTE step_exitcode=
$command_exit
"
>>
$logfile
echo
"#ATTRIBUTE step_exitcode=
$command_exit
"
>>
$logfile
# report job status
# report job status
if
[
$command_exit
-eq
0
]
;
then
if
[
[
$command_exit
-eq
0
]
]
;
then
if
[
$record_stats
-eq
1
]
;
then
if
[
[
$record_stats
-eq
1
]
]
;
then
$PEASOUP_HOME
/tools/db/job_status_report.sh
"
$JOBID
"
"
$step
"
"
$stepnum
"
completed
"
$endtime
"
success
$logfile
$PEASOUP_HOME
/tools/db/job_status_report.sh
"
$JOBID
"
"
$step
"
"
$stepnum
"
completed
"
$endtime
"
success
$logfile
fi
fi
else
else
if
[
$record_stats
-eq
1
]
;
then
if
[
[
$record_stats
-eq
1
]
]
;
then
$PEASOUP_HOME
/tools/db/job_status_report.sh
"
$JOBID
"
"
$step
"
"
$stepnum
"
completed
"
$endtime
"
error
$logfile
$PEASOUP_HOME
/tools/db/job_status_report.sh
"
$JOBID
"
"
$step
"
"
$stepnum
"
completed
"
$endtime
"
error
$logfile
fi
fi
fi
fi
is_step_error
$step
$command_exit
is_step_error
$step
$command_exit
if
[
$?
-ne
0
]
;
then
if
[
[
$?
-ne
0
]
]
;
then
echo
"Done. Command failed! ***************************************"
echo
"Done. Command failed! ***************************************"
# check if we need to exit
# check if we need to exit
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment