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
c33a59ef
Commit
c33a59ef
authored
Sep 18, 2006
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more testing
parent
21f92772
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
225 additions
and
59 deletions
+225
-59
examples/sample.makefile.regen
examples/sample.makefile.regen
+26
-7
examples/sample.source.LDAP3/Makefile
examples/sample.source.LDAP3/Makefile
+46
-15
examples/sample.source.MHEG5/Makefile
examples/sample.source.MHEG5/Makefile
+34
-3
examples/sample.source.PKIX1/Makefile
examples/sample.source.PKIX1/Makefile
+46
-15
examples/sample.source.RRC/Makefile
examples/sample.source.RRC/Makefile
+27
-4
examples/sample.source.RRC/sample-DL-DCCH-Message-1-padded.per
...les/sample.source.RRC/sample-DL-DCCH-Message-1-padded.per
+0
-0
examples/sample.source.RRC/sample-DL-DCCH-Message-1.per
examples/sample.source.RRC/sample-DL-DCCH-Message-1.per
+0
-0
examples/sample.source.TAP3/Makefile
examples/sample.source.TAP3/Makefile
+46
-15
No files found.
examples/sample.makefile.regen
View file @
c33a59ef
...
@@ -44,7 +44,7 @@ cat Makefile.am.sample \
...
@@ -44,7 +44,7 @@ cat Makefile.am.sample \
>
Makefile.
$$
>
Makefile.
$$
(
echo
(
echo
echo
"
${
ASN1PDU
}
.c:
$0
"
echo
"
${
ASN1PDU
}
.c:
$0
${
ASN1MODULES
}
"
echo
" make regen-makefile"
echo
" make regen-makefile"
echo
" @touch
${
ASN1PDU
}
.c"
echo
" @touch
${
ASN1PDU
}
.c"
echo
" make"
echo
" make"
...
@@ -82,17 +82,36 @@ cat Makefile.am.sample \
...
@@ -82,17 +82,36 @@ cat Makefile.am.sample \
echo
' rm -f ./.tmp.[12].$$$$; \'
echo
' rm -f ./.tmp.[12].$$$$; \'
echo
' done; fi'
echo
' done; fi'
echo
" @if test -f ./sample-
${
ASN1PDU
}
-1.per ; then
\\
"
echo
" @if test -f ./sample-
${
ASN1PDU
}
-1.per ; then
\\
"
echo
" for f in ./sample-
${
ASN1PDU
}
-
*
.per; do
\\
"
echo
" for f in ./sample-
${
ASN1PDU
}
-
[1-9]
.per; do
\\
"
echo
' echo "Recoding $$f into DER into XER and back..."; \'
echo
' echo "Recoding $$f into DER into XER and back..."; \'
echo
' ./${TARGET} -iper -oder -b 1 $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oxer -b 1 $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oder -b 17 $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oxer -b 17 $$f > ./.tmp.2.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oder -b 33 $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oxer -b 33 $$f > ./.tmp.3.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oder -b 980 $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oxer -b 980 $$f > ./.tmp.4.$$$$ || exit 2; \'
echo
' diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 2; \'
echo
' diff ./.tmp.2.$$$$ ./.tmp.3.$$$$ || exit 2; \'
echo
' diff ./.tmp.3.$$$$ ./.tmp.4.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 2; \'
echo
' ./${TARGET} -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 2; \'
echo
' ./${TARGET} -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 2; \'
echo
' diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 2; \'
echo
' rm -f ./.tmp.[1234].$$$$; \'
echo
' done; fi'
echo
" @if test -f ./sample-
${
ASN1PDU
}
-1-padded.per ; then
\\
"
echo
" for f in ./sample-
${
ASN1PDU
}
-[1-9]-padded.per; do
\\
"
echo
' echo "Recoding byte-padded $$f into DER into XER and back..."; \'
echo
' ./${TARGET} -per-padded -iper -oxer -b 1 $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -per-padded -iper -oxer -b 17 $$f > ./.tmp.2.$$$$ || exit 2; \'
echo
' ./${TARGET} -per-padded -iper -oxer -b 33 $$f > ./.tmp.3.$$$$ || exit 2; \'
echo
' ./${TARGET} -per-padded -iper -oxer -b 980 $$f > ./.tmp.4.$$$$ || exit 2; \'
echo
' diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 2; \'
echo
' diff ./.tmp.2.$$$$ ./.tmp.3.$$$$ || exit 2; \'
echo
' diff ./.tmp.3.$$$$ ./.tmp.4.$$$$ || exit 2; \'
echo
' ./${TARGET} -per-padded -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 2; \'
echo
' ./${TARGET} -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 2; \'
echo
' diff $$f ./.tmp.1.$$$$ || exit 2; \'
echo
' diff $$f ./.tmp.1.$$$$ || exit 2; \'
echo
' rm -f ./.tmp.[12].$$$$; \'
echo
' rm -f ./.tmp.[12
34
].$$$$; \'
echo
' done; fi'
echo
' done; fi'
echo
' @echo ================'
echo
' @echo ================'
echo
' @echo All tests passed'
echo
' @echo All tests passed'
...
...
examples/sample.source.LDAP3/Makefile
View file @
c33a59ef
...
@@ -187,7 +187,7 @@ regenerate-from-asn1-source:
...
@@ -187,7 +187,7 @@ regenerate-from-asn1-source:
../../asn1c/asn1c
-S
../../skeletons
-fcompound-names
../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1
../../asn1c/asn1c
-S
../../skeletons
-fcompound-names
../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1
LDAPMessage.c
:
../sample.makefile.regen
LDAPMessage.c
:
../sample.makefile.regen
../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1
make regen-makefile
make regen-makefile
@
touch
LDAPMessage.c
@
touch
LDAPMessage.c
make
make
...
@@ -203,27 +203,58 @@ check: ${TARGET}
...
@@ -203,27 +203,58 @@ check: ${TARGET}
@
if
test
-f
./sample-LDAPMessage-1.[db]er
;
then
\
@
if
test
-f
./sample-LDAPMessage-1.[db]er
;
then
\
for
f
in
./sample-LDAPMessage-
*
.[db]er
;
do
\
for
f
in
./sample-LDAPMessage-
*
.[db]er
;
do
\
echo
"Recoding
$$
f into XER and back..."
;
\
echo
"Recoding
$$
f into XER and back..."
;
\
./
${TARGET}
-iber
-oxer
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
17
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
33
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
./
${TARGET}
-iber
-oxer
-b
980
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
done
;
fi
done
;
fi
@
if
test
-f
./sample-LDAPMessage-1.xer
;
then
\
@
if
test
-f
./sample-LDAPMessage-1.xer
;
then
\
for
f
in
./sample-LDAPMessage-
*
.xer
;
do
\
for
f
in
./sample-LDAPMessage-
*
.xer
;
do
\
echo
"Recoding
$$
f into DER and back..."
;
\
echo
"Recoding
$$
f into DER and back..."
;
\
./
${TARGET}
-ixer
-oder
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
17
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
33
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
./
${TARGET}
-ixer
-oder
-b
980
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
done
;
fi
done
;
fi
@
if
test
-f
./sample-LDAPMessage-1.per
;
then
\
@
if
test
-f
./sample-LDAPMessage-1.per
;
then
\
for
f
in
./sample-LDAPMessage-
*
.per
;
do
\
for
f
in
./sample-LDAPMessage-
[1-9]
.per
;
do
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ider
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[1234].
$$$$
;
\
done
;
fi
@
if
test
-f
./sample-LDAPMessage-1-padded.per
;
then
\
for
f
in
./sample-LDAPMessage-[1-9]-padded.per
;
do
\
echo
"Recoding byte-padded
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[1234].
$$$$
;
\
done
;
fi
done
;
fi
@
echo
================
@
echo
================
@
echo
All tests passed
@
echo
All tests passed
...
...
examples/sample.source.MHEG5/Makefile
View file @
c33a59ef
...
@@ -477,7 +477,7 @@ regenerate-from-asn1-source:
...
@@ -477,7 +477,7 @@ regenerate-from-asn1-source:
../../asn1c/asn1c
-S
../../skeletons
-fcompound-names
../ISO13522-MHEG-5.asn
../../asn1c/asn1c
-S
../../skeletons
-fcompound-names
../ISO13522-MHEG-5.asn
InterchangedObject.c
:
../sample.makefile.regen
InterchangedObject.c
:
../sample.makefile.regen
../ISO13522-MHEG-5.asn
make regen-makefile
make regen-makefile
@
touch
InterchangedObject.c
@
touch
InterchangedObject.c
make
make
...
@@ -493,6 +493,10 @@ check: ${TARGET}
...
@@ -493,6 +493,10 @@ check: ${TARGET}
@
if
test
-f
./sample-InterchangedObject-1.[db]er
;
then
\
@
if
test
-f
./sample-InterchangedObject-1.[db]er
;
then
\
for
f
in
./sample-InterchangedObject-
*
.[db]er
;
do
\
for
f
in
./sample-InterchangedObject-
*
.[db]er
;
do
\
echo
"Recoding
$$
f into XER and back..."
;
\
echo
"Recoding
$$
f into XER and back..."
;
\
./
${TARGET}
-iber
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
17
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
33
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
980
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
...
@@ -501,19 +505,46 @@ check: ${TARGET}
...
@@ -501,19 +505,46 @@ check: ${TARGET}
@
if
test
-f
./sample-InterchangedObject-1.xer
;
then
\
@
if
test
-f
./sample-InterchangedObject-1.xer
;
then
\
for
f
in
./sample-InterchangedObject-
*
.xer
;
do
\
for
f
in
./sample-InterchangedObject-
*
.xer
;
do
\
echo
"Recoding
$$
f into DER and back..."
;
\
echo
"Recoding
$$
f into DER and back..."
;
\
./
${TARGET}
-ixer
-oder
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
17
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
33
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
980
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
done
;
fi
done
;
fi
@
if
test
-f
./sample-InterchangedObject-1.per
;
then
\
@
if
test
-f
./sample-InterchangedObject-1.per
;
then
\
for
f
in
./sample-InterchangedObject-
*
.per
;
do
\
for
f
in
./sample-InterchangedObject-
[1-9]
.per
;
do
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[1234].
$$$$
;
\
done
;
fi
@
if
test
-f
./sample-InterchangedObject-1-padded.per
;
then
\
for
f
in
./sample-InterchangedObject-[1-9]-padded.per
;
do
\
echo
"Recoding byte-padded
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
rm
-f
./.tmp.[12
34
].
$$$$
;
\
done
;
fi
done
;
fi
@
echo
================
@
echo
================
@
echo
All tests passed
@
echo
All tests passed
...
...
examples/sample.source.PKIX1/Makefile
View file @
c33a59ef
...
@@ -369,7 +369,7 @@ regenerate-from-asn1-source:
...
@@ -369,7 +369,7 @@ regenerate-from-asn1-source:
../../asn1c/asn1c
-S
../../skeletons ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1
../../asn1c/asn1c
-S
../../skeletons ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1
Certificate.c
:
../sample.makefile.regen
Certificate.c
:
../sample.makefile.regen
../rfc3280-*.asn1
make regen-makefile
make regen-makefile
@
touch
Certificate.c
@
touch
Certificate.c
make
make
...
@@ -385,27 +385,58 @@ check: ${TARGET}
...
@@ -385,27 +385,58 @@ check: ${TARGET}
@
if
test
-f
./sample-Certificate-1.[db]er
;
then
\
@
if
test
-f
./sample-Certificate-1.[db]er
;
then
\
for
f
in
./sample-Certificate-
*
.[db]er
;
do
\
for
f
in
./sample-Certificate-
*
.[db]er
;
do
\
echo
"Recoding
$$
f into XER and back..."
;
\
echo
"Recoding
$$
f into XER and back..."
;
\
./
${TARGET}
-iber
-oxer
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
17
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
33
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
./
${TARGET}
-iber
-oxer
-b
980
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
done
;
fi
done
;
fi
@
if
test
-f
./sample-Certificate-1.xer
;
then
\
@
if
test
-f
./sample-Certificate-1.xer
;
then
\
for
f
in
./sample-Certificate-
*
.xer
;
do
\
for
f
in
./sample-Certificate-
*
.xer
;
do
\
echo
"Recoding
$$
f into DER and back..."
;
\
echo
"Recoding
$$
f into DER and back..."
;
\
./
${TARGET}
-ixer
-oder
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
17
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
33
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
./
${TARGET}
-ixer
-oder
-b
980
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
done
;
fi
done
;
fi
@
if
test
-f
./sample-Certificate-1.per
;
then
\
@
if
test
-f
./sample-Certificate-1.per
;
then
\
for
f
in
./sample-Certificate-
*
.per
;
do
\
for
f
in
./sample-Certificate-
[1-9]
.per
;
do
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ider
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[1234].
$$$$
;
\
done
;
fi
@
if
test
-f
./sample-Certificate-1-padded.per
;
then
\
for
f
in
./sample-Certificate-[1-9]-padded.per
;
do
\
echo
"Recoding byte-padded
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[1234].
$$$$
;
\
done
;
fi
done
;
fi
@
echo
================
@
echo
================
@
echo
All tests passed
@
echo
All tests passed
...
...
examples/sample.source.RRC/Makefile
View file @
c33a59ef
...
@@ -4764,7 +4764,7 @@ regenerate-from-asn1-source:
...
@@ -4764,7 +4764,7 @@ regenerate-from-asn1-source:
../../asn1c/asn1c
-S
../../skeletons
-fcompound-names
-pdu
=
auto
-gen-PER
../rrc.asn1
../../asn1c/asn1c
-S
../../skeletons
-fcompound-names
-pdu
=
auto
-gen-PER
../rrc.asn1
DL-DCCH-Message.c
:
../sample.makefile.regen
DL-DCCH-Message.c
:
../sample.makefile.regen
../rrc.asn1
make regen-makefile
make regen-makefile
@
touch
DL-DCCH-Message.c
@
touch
DL-DCCH-Message.c
make
make
...
@@ -4802,13 +4802,36 @@ check: ${TARGET}
...
@@ -4802,13 +4802,36 @@ check: ${TARGET}
rm
-f
./.tmp.[12].
$$$$
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
done
;
fi
done
;
fi
@
if
test
-f
./sample-DL-DCCH-Message-1.per
;
then
\
@
if
test
-f
./sample-DL-DCCH-Message-1.per
;
then
\
for
f
in
./sample-DL-DCCH-Message-
*
.per
;
do
\
for
f
in
./sample-DL-DCCH-Message-
[1-9]
.per
;
do
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[1234].
$$$$
;
\
done
;
fi
@
if
test
-f
./sample-DL-DCCH-Message-1-padded.per
;
then
\
for
f
in
./sample-DL-DCCH-Message-[1-9]-padded.per
;
do
\
echo
"Recoding byte-padded
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
1
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
3
;
\
./
${TARGET}
-per-padded
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
rm
-f
./.tmp.[12
34
].
$$$$
;
\
done
;
fi
done
;
fi
@
echo
================
@
echo
================
@
echo
All tests passed
@
echo
All tests passed
...
...
examples/sample.source.RRC/sample-DL-DCCH-Message-1-padded.per
0 → 100644
View file @
c33a59ef
File added
examples/sample.source.RRC/sample-DL-DCCH-Message-1.per
0 → 100644
View file @
c33a59ef
File added
examples/sample.source.TAP3/Makefile
View file @
c33a59ef
...
@@ -703,7 +703,7 @@ regenerate-from-asn1-source:
...
@@ -703,7 +703,7 @@ regenerate-from-asn1-source:
../../asn1c/asn1c
-S
../../skeletons ../tap3.asn1
../../asn1c/asn1c
-S
../../skeletons ../tap3.asn1
DataInterChange.c
:
../sample.makefile.regen
DataInterChange.c
:
../sample.makefile.regen
../tap3.asn1
make regen-makefile
make regen-makefile
@
touch
DataInterChange.c
@
touch
DataInterChange.c
make
make
...
@@ -719,27 +719,58 @@ check: ${TARGET}
...
@@ -719,27 +719,58 @@ check: ${TARGET}
@
if
test
-f
./sample-DataInterChange-1.[db]er
;
then
\
@
if
test
-f
./sample-DataInterChange-1.[db]er
;
then
\
for
f
in
./sample-DataInterChange-
*
.[db]er
;
do
\
for
f
in
./sample-DataInterChange-
*
.[db]er
;
do
\
echo
"Recoding
$$
f into XER and back..."
;
\
echo
"Recoding
$$
f into XER and back..."
;
\
./
${TARGET}
-iber
-oxer
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
17
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
-b
33
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
./
${TARGET}
-iber
-oxer
-b
980
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
done
;
fi
done
;
fi
@
if
test
-f
./sample-DataInterChange-1.xer
;
then
\
@
if
test
-f
./sample-DataInterChange-1.xer
;
then
\
for
f
in
./sample-DataInterChange-
*
.xer
;
do
\
for
f
in
./sample-DataInterChange-
*
.xer
;
do
\
echo
"Recoding
$$
f into DER and back..."
;
\
echo
"Recoding
$$
f into DER and back..."
;
\
./
${TARGET}
-ixer
-oder
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
17
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
-b
33
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
./
${TARGET}
-ixer
-oder
-b
980
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
done
;
fi
done
;
fi
@
if
test
-f
./sample-DataInterChange-1.per
;
then
\
@
if
test
-f
./sample-DataInterChange-1.per
;
then
\
for
f
in
./sample-DataInterChange-
*
.per
;
do
\
for
f
in
./sample-DataInterChange-
[1-9]
.per
;
do
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
echo
"Recoding
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-ider
-oxer
./.tmp.1.
$$
>
./.tmp.2.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$
>
./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$
||
exit
2
;
\
./
${TARGET}
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[12].
$$
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[1234].
$$$$
;
\
done
;
fi
@
if
test
-f
./sample-DataInterChange-1-padded.per
;
then
\
for
f
in
./sample-DataInterChange-[1-9]-padded.per
;
do
\
echo
"Recoding byte-padded
$$
f into DER into XER and back..."
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
1
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
17
$$
f
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
33
$$
f
>
./.tmp.3.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oxer
-b
980
$$
f
>
./.tmp.4.
$$$$
||
exit
2
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
2
;
\
diff ./.tmp.2.
$$$$
./.tmp.3.
$$$$
||
exit
2
;
\
diff ./.tmp.3.
$$$$
./.tmp.4.
$$$$
||
exit
2
;
\
./
${TARGET}
-per-padded
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
2
;
\
./
${TARGET}
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
2
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
2
;
\
rm
-f
./.tmp.[1234].
$$$$
;
\
done
;
fi
done
;
fi
@
echo
================
@
echo
================
@
echo
All tests passed
@
echo
All tests passed
...
...
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