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
a7aa90c5
Commit
a7aa90c5
authored
Dec 08, 2023
by
v0-e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jer: Enable randomized tests
parent
7be9dd86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
skeletons/converter-example.c
skeletons/converter-example.c
+2
-0
tests/tests-randomized/random-test-driver.c
tests/tests-randomized/random-test-driver.c
+4
-2
No files found.
skeletons/converter-example.c
View file @
a7aa90c5
...
...
@@ -162,6 +162,8 @@ static syntax_selector input_encodings[] = {
"Input is in Aligned PER (Packed Encoding Rules)"
},
{
"xer"
,
ATS_BASIC_XER
,
CODEC_OFFSET
(
xer_decoder
),
"Input is in XER (XML Encoding Rules)"
},
{
"jer"
,
ATS_JER
,
CODEC_OFFSET
(
jer_decoder
),
"Input is in JER (JSON Encoding Rules)"
},
{
0
,
ATS_INVALID
,
0
,
0
}};
static
syntax_selector
output_encodings
[]
=
{
...
...
tests/tests-randomized/random-test-driver.c
View file @
a7aa90c5
...
...
@@ -23,6 +23,7 @@ static const struct encoding_map {
{
"OER"
,
"oer"
,
ATS_CANONICAL_OER
},
{
"UPER"
,
"uper"
,
ATS_UNALIGNED_CANONICAL_PER
},
{
"XER"
,
"xer"
,
ATS_CANONICAL_XER
},
{
"JER"
,
"jer"
,
ATS_JER
},
};
static
enum
asn_transfer_syntax
...
...
@@ -52,7 +53,7 @@ static void __attribute__((constructor)) initialize() {
syntax
=
lookup_syntax
(
data_dir
);
if
(
syntax
==
ATS_INVALID
)
{
fprintf
(
stderr
,
"Expected ASN1_DATA_DIR={der,oer,uper,xer} environment "
"Expected ASN1_DATA_DIR={der,oer,uper,xer
,jer
} environment "
"variable.
\n
"
);
exit
(
EX_UNAVAILABLE
);
}
...
...
@@ -93,7 +94,8 @@ usage(const char *progname) {
"BER)
\n
"
" OER Canonical Octet Encoding Rules
\n
"
" UPER Canonical Unaligned Packed Encoding Rules
\n
"
" XER XML Encoding Rules
\n
"
,
" XER XML Encoding Rules
\n
"
" JER JSON Encoding Rules
\n
"
,
progname
);
}
...
...
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