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
a926fce4
Commit
a926fce4
authored
Aug 27, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regenerateed with explicit pdu spec
parent
0c050a81
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
112 additions
and
100 deletions
+112
-100
examples/sample.makefile.regen
examples/sample.makefile.regen
+28
-25
examples/sample.source.J2735/Makefile
examples/sample.source.J2735/Makefile
+28
-25
examples/sample.source.PKIX1/Makefile
examples/sample.source.PKIX1/Makefile
+28
-25
examples/sample.source.RRC/Makefile
examples/sample.source.RRC/Makefile
+28
-25
No files found.
examples/sample.makefile.regen
View file @
a926fce4
...
...
@@ -72,59 +72,62 @@ set +x
echo
echo
'check-ber:'
echo
" @if test -f sample-
${
ASN1PDU
}
-1.[db]er ; then
\\
"
echo
" for f in sample-
${
ASN1PDU
}
-*.[db]er; do
\\
"
echo
" for f in sample-*-*.[db]er; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding $$f into XER and back ($$b)..."; \'
echo
' ./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \'
echo
' echo "Recoding $$f
($$pdu)
into XER and back ($$b)..."; \'
echo
' ./${TARGET} -
p $$pdu -
b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -
p $$pdu -
b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \'
echo
' diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \'
echo
' rm -f ./.tmp.[12].$$$$; \'
echo
' echo "Test junking $$f (please wait)..."; \'
echo
' ./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \'
echo
' ./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \'
echo
' ./${TARGET} -J0.0001 -n 1000 -
p $$pdu -
b $$b -iber -onull $$f || exit 5; \'
echo
' ./${TARGET} -J0.001 -n 1000 -
p $$pdu -
b $$b -iber -onull $$f || exit 6; \'
echo
' done; done; fi'
echo
echo
'check-xer:'
echo
" @if test -f sample-
${
ASN1PDU
}
-1.xer ; then
\\
"
echo
" for f in sample-
${
ASN1PDU
}
-*.xer; do
\\
"
echo
" for f in sample-*-*.xer; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding $$f into DER and back ($$b)..."; \'
echo
' ./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \'
echo
' echo "Recoding $$f
($$pdu)
into DER and back ($$b)..."; \'
echo
' ./${TARGET} -
p $$pdu -
b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -
p $$pdu -
b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \'
echo
' diff $$f ./.tmp.2.$$$$ || exit 4; \'
echo
' rm -f ./.tmp.[12].$$$$; \'
echo
' echo "Test junking $$f (please wait)..."; \'
echo
' ./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \'
echo
' ./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \'
echo
' ./${TARGET} -J0.0001 -n 1000 -
p $$pdu -
b $$b -ixer -onull $$f || exit 5; \'
echo
' ./${TARGET} -J0.001 -n 1000 -
p $$pdu -
b $$b -ixer -onull $$f || exit 6; \'
echo
' done; done; fi'
echo
echo
'check-per:'
echo
" @if test -f sample-
${
ASN1PDU
}
-1-nopad.per ; then
\\
"
echo
" for f in sample-
${
ASN1PDU
}
-[1-9]-nopad.per; do
\\
"
echo
" for f in sample-*-[1-9]-nopad.per; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \'
echo
' ./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \'
echo
' ./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \'
echo
' echo "Recoding non-padded $$f
($$pdu)
into DER into XER and back ($$b)..."; \'
echo
' ./${TARGET} -
p $$pdu -
b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -
p $$pdu -
b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \'
echo
' ./${TARGET} -
p $$pdu -
b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \'
echo
' diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \'
echo
' rm -f ./.tmp.[123].$$$$; \'
echo
' echo "Test junking $$f (please wait)..."; \'
echo
' ./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \'
echo
' ./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \'
echo
' ./${TARGET} -J0.0001 -n 1000 -
p $$pdu -
b $$b -per-nopad -iper -onull $$f || exit 6; \'
echo
' ./${TARGET} -J0.001 -n 1000 -
p $$pdu -
b $$b -per-nopad -iper -onull $$f || exit 7; \'
echo
' done; done; fi'
echo
" @if test -f sample-
${
ASN1PDU
}
-1.per ; then
\\
"
echo
" for f in sample-*-[1-9].per; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding $$f into DER into XER and back ($$b)..."; \'
echo
' ./${TARGET} -
b $$b -p $$pdu
-iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \'
echo
' ./${TARGET} -
b $$b -p $$pdu
-iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \'
echo
' ./${TARGET} -
b $$b -p $$pdu
-ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \'
echo
' echo "Recoding $$f
($$pdu)
into DER into XER and back ($$b)..."; \'
echo
' ./${TARGET} -
p $$pdu -b $$b
-iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \'
echo
' ./${TARGET} -
p $$pdu -b $$b
-iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \'
echo
' ./${TARGET} -
p $$pdu -b $$b
-ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \'
echo
' diff $$f ./.tmp.1.$$$$ || exit 6; \'
echo
' rm -f ./.tmp.[12].$$$$; \'
echo
' echo "Test junking $$f (please wait)..."; \'
echo
' ./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \'
echo
' ./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \'
echo
' ./${TARGET} -J0.0001 -n 1000 -
p $$pdu -
b $$b -iper -onull $$f || exit 7; \'
echo
' ./${TARGET} -J0.001 -n 1000 -
p $$pdu -
b $$b -iper -onull $$f || exit 8; \'
echo
' done; done; fi'
echo
echo
"maybe-wip-pause:"
...
...
examples/sample.source.J2735/Makefile
View file @
a926fce4
...
...
@@ -1092,59 +1092,62 @@ check: ${TARGET} check-ber check-xer check-per
check-ber
:
@
if
test
-f
sample-MessageFrame-1.[db]er
;
then
\
for
f
in
sample-MessageFrame-
*
.[db]er
;
do
\
for
f
in
sample-
*
-
*
.[db]er
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into XER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-xer
:
@
if
test
-f
sample-MessageFrame-1.xer
;
then
\
for
f
in
sample-MessageFrame-
*
.xer
;
do
\
for
f
in
sample-
*
-
*
.xer
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into DER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into DER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-per
:
@
if
test
-f
sample-MessageFrame-1-nopad.per
;
then
\
for
f
in
sample-MessageFrame-[1-9]-nopad.per
;
do
\
for
f
in
sample-
*
-[1-9]-nopad.per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding non-padded
$$
f into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${TARGET}
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
echo
"Recoding non-padded
$$
f
(
$$
pdu)
into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
5
;
\
rm
-f
./.tmp.[123].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
done
;
done
;
fi
@
if
test
-f
sample-MessageFrame-1.per
;
then
\
for
f
in
sample-
*
-[1-9].per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
6
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
done
;
done
;
fi
maybe-wip-pause
:
...
...
examples/sample.source.PKIX1/Makefile
View file @
a926fce4
...
...
@@ -396,59 +396,62 @@ check: ${TARGET} check-ber check-xer check-per
check-ber
:
@
if
test
-f
sample-Certificate-1.[db]er
;
then
\
for
f
in
sample-Certificate-
*
.[db]er
;
do
\
for
f
in
sample-
*
-
*
.[db]er
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into XER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-xer
:
@
if
test
-f
sample-Certificate-1.xer
;
then
\
for
f
in
sample-Certificate-
*
.xer
;
do
\
for
f
in
sample-
*
-
*
.xer
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into DER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into DER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-per
:
@
if
test
-f
sample-Certificate-1-nopad.per
;
then
\
for
f
in
sample-Certificate-[1-9]-nopad.per
;
do
\
for
f
in
sample-
*
-[1-9]-nopad.per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding non-padded
$$
f into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${TARGET}
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
echo
"Recoding non-padded
$$
f
(
$$
pdu)
into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
5
;
\
rm
-f
./.tmp.[123].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
done
;
done
;
fi
@
if
test
-f
sample-Certificate-1.per
;
then
\
for
f
in
sample-
*
-[1-9].per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
6
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
done
;
done
;
fi
maybe-wip-pause
:
...
...
examples/sample.source.RRC/Makefile
View file @
a926fce4
...
...
@@ -4789,59 +4789,62 @@ check: ${TARGET} check-ber check-xer check-per
check-ber
:
@
if
test
-f
sample-DL-DCCH-Message-1.[db]er
;
then
\
for
f
in
sample-DL-DCCH-Message-
*
.[db]er
;
do
\
for
f
in
sample-
*
-
*
.[db]er
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into XER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-xer
:
@
if
test
-f
sample-DL-DCCH-Message-1.xer
;
then
\
for
f
in
sample-DL-DCCH-Message-
*
.xer
;
do
\
for
f
in
sample-
*
-
*
.xer
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into DER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into DER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-per
:
@
if
test
-f
sample-DL-DCCH-Message-1-nopad.per
;
then
\
for
f
in
sample-DL-DCCH-Message-[1-9]-nopad.per
;
do
\
for
f
in
sample-
*
-[1-9]-nopad.per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding non-padded
$$
f into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${TARGET}
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
echo
"Recoding non-padded
$$
f
(
$$
pdu)
into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${TARGET}
-
p
$$
pdu
-
b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
5
;
\
rm
-f
./.tmp.[123].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
done
;
done
;
fi
@
if
test
-f
sample-DL-DCCH-Message-1.per
;
then
\
for
f
in
sample-
*
-[1-9].per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${TARGET}
-
b
$$
b
-p
$$
pdu
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
echo
"Recoding
$$
f
(
$$
pdu)
into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${TARGET}
-
p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
6
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${TARGET}
-J0
.0001
-n
1000
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.001
-n
1000
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
./
${TARGET}
-J0
.0001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${TARGET}
-J0
.001
-n
1000
-
p
$$
pdu
-
b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
done
;
done
;
fi
maybe-wip-pause
:
...
...
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