Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
e9b0fd77
Commit
e9b0fd77
authored
Jul 03, 2016
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some shellcheck recommendations
parent
92876d38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
asn1c/check-parsing.sh
asn1c/check-parsing.sh
+3
-3
asn1c/check-xxber.sh
asn1c/check-xxber.sh
+2
-2
No files found.
asn1c/check-parsing.sh
View file @
e9b0fd77
...
@@ -21,15 +21,15 @@ fi
...
@@ -21,15 +21,15 @@ fi
for
ref
in
${
top_srcdir
}
/tests/
*
.asn1.-
*
;
do
for
ref
in
${
top_srcdir
}
/tests/
*
.asn1.-
*
;
do
# Figure out the initial source file used to generate this output.
# Figure out the initial source file used to generate this output.
src
=
`
echo
"
$ref
"
|
sed
-e
's/\.-[-a-zA-Z0-9=]*$//'
`
src
=
$(
echo
"
$ref
"
|
sed
-e
's/\.-[-a-zA-Z0-9=]*$//'
)
# Figure out compiler flags used to create the file.
# Figure out compiler flags used to create the file.
flags
=
`
echo
"
$ref
"
|
sed
-e
's/.*\.-//'
`
flags
=
$(
echo
"
$ref
"
|
sed
-e
's/.*\.-//'
)
echo
"Checking
$src
against
$ref
"
echo
"Checking
$src
against
$ref
"
template
=
.tmp.check-parsing.
$$
template
=
.tmp.check-parsing.
$$
oldversion
=
${
template
}
.old
oldversion
=
${
template
}
.old
newversion
=
${
template
}
.new
newversion
=
${
template
}
.new
PROCESSING
=
"
$ref
(from
$src
)"
PROCESSING
=
"
$ref
(from
$src
)"
cat
"
$ref
"
|
LANG
=
C
sed
-e
's/^found in .*/found in .../'
>
$oldversion
LANG
=
C
sed
-e
's/^found in .*/found in .../'
<
"
$ref
"
>
"
$oldversion
"
(
./asn1c
-S
${
top_srcdir
}
/skeletons
"-
$flags
"
"
$src
"
|
LANG
=
C
sed
-e
's/^found in .*/found in .../'
>
"
$newversion
"
)
||
ec
=
$?
(
./asn1c
-S
${
top_srcdir
}
/skeletons
"-
$flags
"
"
$src
"
|
LANG
=
C
sed
-e
's/^found in .*/found in .../'
>
"
$newversion
"
)
||
ec
=
$?
if
[
$?
=
0
]
;
then
if
[
$?
=
0
]
;
then
diff
$diffArgs
"
$oldversion
"
"
$newversion
"
||
ec
=
$?
diff
$diffArgs
"
$oldversion
"
"
$newversion
"
||
ec
=
$?
...
...
asn1c/check-xxber.sh
View file @
e9b0fd77
...
@@ -24,7 +24,7 @@ cat<<EOM > $ORIG
...
@@ -24,7 +24,7 @@ cat<<EOM > $ORIG
EOM
EOM
./enber
$ORIG
| ./unber
-p
-i
0 -
>
$TEST
2>&1
./enber
$ORIG
| ./unber
-p
-i
0 -
>
$TEST
2>&1
diff
$diffArgs
$ORIG
$TEST
>
/dev/null 2>&1
diff
$diffArgs
"
$ORIG
"
"
$TEST
"
>
/dev/null 2>&1
diffExitCode
=
$?
diffExitCode
=
$?
if
[
"
$diffExitCode
"
=
"0"
]
;
then
if
[
"
$diffExitCode
"
=
"0"
]
;
then
...
@@ -38,7 +38,7 @@ echo '</I O="34" T="[UNIVERSAL 0]" TL="2" L="36">' >> $ORIG
...
@@ -38,7 +38,7 @@ echo '</I O="34" T="[UNIVERSAL 0]" TL="2" L="36">' >> $ORIG
# Try trancoding again
# Try trancoding again
./enber
$ORIG
| ./unber
-p
-i
0 -
>
$TEST
2>&1
./enber
$ORIG
| ./unber
-p
-i
0 -
>
$TEST
2>&1
diff
$diffArgs
$ORIG
$TEST
diff
$diffArgs
"
$ORIG
"
"
$TEST
"
diffExitCode
=
$?
diffExitCode
=
$?
rm
-f
$ORIG
$TEST
rm
-f
$ORIG
$TEST
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment