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
2b64a8fa
Commit
2b64a8fa
authored
7 years ago
by
mc2zk
Browse files
Options
Downloads
Patches
Plain Diff
Bug fixes to aggregate assurance case data gathering
Former-commit-id: 03b5de2601f7948f72031192dc4ee07c2c17726f
parent
74d67814
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/generate_mvee_package.sh
+10
-6
10 additions, 6 deletions
tools/generate_mvee_package.sh
with
10 additions
and
6 deletions
tools/generate_mvee_package.sh
+
10
−
6
View file @
2b64a8fa
...
...
@@ -382,10 +382,6 @@ parse_aggregate_assurance_file()
# find the binary names
binary_names
=
`
cat
$input
|
awk
'BEGIN{FS="::"}{print $1}'
|
sort
|
uniq
`
# find the variant names
variant_names
=
`
cat
$input
|
awk
'BEGIN{FS="::"} {print $2}'
|
sort
|
uniq
`
# find the transform names
transform_names
=
`
cat
$input
|
awk
'BEGIN{FS="::"} {print $3}'
|sort |
uniq
`
# for each binary
for
b
in
$binary_names
...
...
@@ -394,16 +390,22 @@ parse_aggregate_assurance_file()
echo
"Binary Name:
$b
"
>>
$output
echo
>>
$output
# find the transform names for this binary
transform_names
=
`
cat
$input
|grep
$b
|
awk
'BEGIN{FS="::"} {print $3}'
|sort |
uniq
`
t_label
=
A
# for each transform
for
t
in
$transform_names
do
echo
-n
"
${
t_label
}
. Transform Name: "
>>
$output
echo
"
$t
"
|
sed
's/_/ /g'
>>
$output
# find the unique stat names
# stat name with values is in 4th field
# so remove everything from = to EOL
stat_names
=
`
grep
"
$t
"
$input
|
awk
'BEGIN{FS="::"} {print $4}'
|
sed
"s/=.*//g"
|
sort
|
uniq
`
stat_names
=
`
grep
"
$b
"
$input
|
grep
"
$t
"
|
awk
'BEGIN{FS="::"} {print $4}'
|
sed
"s/=.*//g"
|
sort
|
uniq
`
s_label
=
1
for
s
in
$stat_names
do
...
...
@@ -412,6 +414,8 @@ parse_aggregate_assurance_file()
# remove the underscores
echo
"
$s
"
|
sed
's/_/ /g'
>>
$output
# find the variant names
variant_names
=
`
cat
$input
|
grep
$b
|
awk
'BEGIN{FS="::"} {print $2}'
|
sort
|
uniq
`
v_label
=
a
for
v
in
$variant_names
do
...
...
@@ -743,7 +747,7 @@ finalize_json()
# copy assurance evidence
copy_assurance_evidence
$indir
/
$lib_dir
/peasoup_executable_dir/logs/assurance_case_evidence.log
$outdir
/assurance/vs-
${
vs
}
_variant-
${
seq
}
_evidence.txt
$lib
0
$config
"vs-
${
vs
}
_variant-
${
seq
}
"
# gather aggregate assurance evidence
gather_aggregate_assurance_evidence
$full_exe_dir
/peasoup_executable_dir/logs/assurance_case_evidence.log
$outdir
/assurance/vs-
${
vs
}
_aggregate_evidence.tmp.txt
"
vs-
${
vs
}
"
$lib
gather_aggregate_assurance_evidence
$full_exe_dir
/peasoup_executable_dir/logs/assurance_case_evidence.log
$outdir
/assurance/vs-
${
vs
}
_aggregate_evidence.tmp.txt
"
$seq
"
$lib
variant_config_contents
=
"
${
variant_config_contents
//,<<LIBS>>/
$line
,<<LIBS>>
}
"
...
...
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