Lev Walkin
d1c28aa809
generate OER and PER by default. add -no-gen-example
2017-11-11 18:05:13 -08:00
Lev Walkin
48e82d1f1f
removed gcc-7 warnings
2017-10-19 03:07:27 -07:00
Lev Walkin
20696a4ff3
constness fixes, round-trip and fuzz-testing for CHOICE
2017-10-17 21:27:55 -07:00
Lev Walkin
588bf0f7dc
OBJECT IDENTIFIER and RELATIVE-OID API simplified
2017-10-13 23:51:16 -07:00
Lev Walkin
a4f8e94bc1
get rid of alloca() in compiler
2017-10-08 19:28:56 -07:00
Lev Walkin
e2bbbf8f1e
remove the use of alloca in skeletons
2017-10-08 18:52:37 -07:00
Lev Walkin
c7a2101a2e
make it compile
2017-09-29 23:14:41 -07:00
Lev Walkin
afbf2a9828
add const
2017-09-12 23:30:27 -07:00
Lev Walkin
0c68645c5c
updated parsing bnf
2017-09-07 22:59:36 -07:00
Lev Walkin
c0e03b946e
introduce namespaces
2017-08-22 01:48:23 -07:00
Lev Walkin
d9221847e5
add common lib
2017-08-22 01:44:56 -07:00
Lev Walkin
700df493dd
reshuffled the tests layout
2017-08-10 14:59:15 -07:00
Lev Walkin
cd2f48eb5a
structure comparison functions
2017-08-10 02:52:25 -07:00
Lev Walkin
494fb707a7
fix warnings
2017-08-07 20:07:08 -07:00
Lev Walkin
62d95d2ef4
rm warnings
2017-08-06 23:41:11 -07:00
Lev Walkin
da997b1ea1
work in 128-bit integer values while compiling
2017-08-04 01:38:41 -07:00
Bi-Ruei, Chiu
1fa31c9e3e
Simplify the logic of accessing codec function for specific TYPE
2017-08-02 14:06:07 -07:00
Lev Walkin
c78d04711d
fix distcheck
2017-08-02 13:32:24 -07:00
Lev Walkin
6f50a3f737
-print-constraints without -F is useless
2017-08-02 13:32:23 -07:00
Lev Walkin
7e833b6ed4
regeneration is allowed to fail
2017-08-02 13:32:22 -07:00
Lev Walkin
7eac0df3e7
employ XER equivalence check
2017-08-02 13:32:22 -07:00
Lev Walkin
69353a320b
test that we ignore size constraints on not-known-multipler character string (utf8string)
2017-08-02 13:32:22 -07:00
Lev Walkin
ca84c46db9
test OER for string types round-trip
2017-08-02 13:32:22 -07:00
Lev Walkin
af4dfaa12a
OER string test
2017-08-02 13:32:21 -07:00
Lev Walkin
2d10756d75
non-existent in 32-bit mode
2017-08-02 13:32:21 -07:00
Lev Walkin
6db40f4c49
check OER in 32-bit and 64-bit modes
2017-08-02 13:32:21 -07:00
Lev Walkin
6cea145da8
first round-trip test working
2017-08-02 13:32:20 -07:00
Lev Walkin
4a06e6a8eb
add 135 encode-decode test
2017-08-02 13:32:19 -07:00
Lev Walkin
b2284470f9
add OER INTEGER constraint check
2017-08-02 13:32:18 -07:00
Lev Walkin
b33425f16b
fix OER stubs order
2017-08-02 13:32:18 -07:00
Lev Walkin
a7a240e8a1
ignore oer dependencies
2017-08-02 13:32:16 -07:00
Lev Walkin
ba68c91b71
empty OER stub generator
2017-08-02 13:32:16 -07:00
Lev Walkin
38b3e23d9d
fix bsd make
2017-07-06 14:00:05 +00:00
Lev Walkin
c56b566453
refactor autogeneration
2017-07-05 18:16:06 -07:00
Lev Walkin
221ce93307
work with BSD makefiles as well
2017-07-06 00:02:31 +00:00
Bi-Ruei, Chiu
c46137bddd
Merge velichkov's commit 598e7b45... to mouse07410's asn1c repository
...
Excerpt from commit log :
Do not generate coverage data for the test C code
When compiling tests remove the CODE_COVERAGE_CFLAGS flags from CFLAGS
and also add
CFLAGS = $(filter-out $(CODE_COVERAGE_CFLAGS), @CFLAGS@)
to 'skeleton/Makefile.am' to avoid compilation error in vlm's repository.
2017-05-08 17:04:38 +08:00
Bi-Ruei, Chiu
3dcf05bbb0
Fix some memory leakage found
2017-05-05 15:03:32 +08:00
Lev Walkin
fa40976f4a
reflect contributors
2017-03-26 06:37:38 -07:00
Lev Walkin
fbbe4edc8e
Merge pull request #126 from brchiu/fix_some_leak_reported_by_valgrind
...
Fix many memory leaks reported by valgrind
2017-03-26 05:55:00 -07:00
Lev Walkin
88271a5d7a
Merge branch 'master' into 64bit_test
2017-03-26 05:14:10 -07:00
Vasil Velichkov
3b434ca548
Exclude test files from the code coverage report
...
Link asn1c/tests with libasn1cskeletons.a in order to improve
skeletons coverage. When the skeleton files are copied the lcov will
report coverage for each copy separatly.
2017-03-26 04:42:26 -07:00
Vasil Velichkov
e318759ef2
Add code coverage using lcov and gcov
...
To generate the code coverage report you need gcov and lcov installed
and then execute
./configure --enable-code-coverage
make check-code-coverage
Writing directory view page.
Overall coverage rate:
lines......: 76.5% (10519 of 13759 lines)
functions..: 85.5% (491 of 574 functions)
branches...: 57.5% (7040 of 12250 branches)
file:///home/user/asn1c/asn1c-0.9.28-coverage/index.html
Open the index.html with a web browser
2017-03-26 04:42:26 -07:00
Lev Walkin
47c8e47506
Merge pull request #104 from velichkov/asn1c_make_identifier_segfault
...
Fix segmentation fault in asn1c_make_identifier
2017-03-26 04:12:27 -07:00
Vasil Velichkov
e5006dc658
Add check64-134.-gen-PER.c to EXTRA_DIST
...
becuse the `make dist` does not include it in the archive and
`make distckeck` fails on 64bit systems
2016-12-13 18:13:23 +02:00
Lev Walkin
f95c499d33
fix generated comments thanks to mkhon@github and Ymbirtt@github
2016-12-02 11:35:00 -08:00
Bi-Ruei, Chiu
4661dae415
Free memory allocated in importStandardModules()
2016-11-09 00:59:41 +08:00
Bi-Ruei, Chiu
b9adfc5f91
Free memory allocated in various functions
...
1. Add 'ref_cnt' field to asn1p_expr_t.
2. Initialize 'ref_cnt' field to zero when asn1p_expr_t is allocated.
3. Increase 'ref_cnt' field when asn1p_expr_t is cloned by asn1p_value_fromtype().
4. If 'ref_cnt' field of asn1p_expr_t is larger than zero, then asn1p_expr_free() only decrease its value.
5. Free memory pointed by fields of asn1p_expr_t and itself when 'ref_cnt' is zero and asn1p_expr_free() called.
6. Call asn1p_delete(asn) in main().
2016-11-09 00:17:25 +08:00
Lev Walkin
93ed494210
Merge branch 'master' of github.com:vlm/asn1c
2016-08-02 03:54:39 -07:00
Vasil Velichkov
b97d65a2b9
Fix test execution on RHEL7
...
The `make check` was failing with
make[3]: Entering directory `/home/asn1c/asn1c_github/asn1c/tests'
../../config/test-driver: invalid option: '-C'
Usage:
test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
[--expect-failure={yes|no}] [--color-tests={yes|no}]
[--enable-hard-errors={yes|no}] [--] TEST-SCRIPT
The '--test-name', '--log-file' and '--trs-file' options are mandatory.
make[3]: *** [check-src/check-03.-fwide-types.c.log] Error 2
2016-07-18 20:21:08 +03:00
Lev Walkin
e9b0fd77c9
some shellcheck recommendations
2016-07-03 00:10:07 -07:00