From c568d29968902bb7a463163d825e268a7457a909 Mon Sep 17 00:00:00 2001 From: Mouse Date: Mon, 30 Jan 2017 20:09:35 -0500 Subject: [PATCH] Merged #105 (more or less) --- Makefile.am | 6 ++++++ README.md | 3 +++ asn1c/Makefile.am | 1 + asn1c/tests/Makefile.am | 1 + asn1c/tests/check-assembly.sh | 6 +++--- configure.ac | 23 ++++++++++++++++++++++- libasn1fix/Makefile.am | 1 + skeletons/GeneralizedTime.c | 2 ++ skeletons/REAL.c | 2 ++ skeletons/tests/Makefile.am | 2 ++ 10 files changed, 43 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 870ee8f6a..407d70dfb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,12 @@ ACLOCAL_AMFLAGS = -I m4 +@CODE_COVERAGE_RULES@ +CODE_COVERAGE_IGNORE_PATTERN="tests/*" "lex.yy.c" "y.tab.c" "asn1p_l.l" "asn1p_y.y" + +@CODE_COVERAGE_RULES@ +CODE_COVERAGE_IGNORE_PATTERN="tests/*" "lex.yy.c" "y.tab.c" "asn1p_l.l" "asn1p_y.y" + SUBDIRS = \ libasn1parser libasn1fix \ libasn1print libasn1compiler \ diff --git a/README.md b/README.md index 22fd06e39..4eb9185c7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ + +[![Coverage Status](https://coveralls.io/repos/github/velichkov/asn1c/badge.svg?branch=master)](https://coveralls.io/github/velichkov/asn1c?branch=master) + # About ASN.1 to C compiler takes the ASN.1 module files (example) and generates diff --git a/asn1c/Makefile.am b/asn1c/Makefile.am index d15272237..81af76afb 100644 --- a/asn1c/Makefile.am +++ b/asn1c/Makefile.am @@ -1,3 +1,4 @@ +@CODE_COVERAGE_RULES@ SUBDIRS = . tests diff --git a/asn1c/tests/Makefile.am b/asn1c/tests/Makefile.am index 352122a6c..3bb0f9d78 100644 --- a/asn1c/tests/Makefile.am +++ b/asn1c/tests/Makefile.am @@ -1,3 +1,4 @@ +@CODE_COVERAGE_RULES@ SUBDIRS = check-src diff --git a/asn1c/tests/check-assembly.sh b/asn1c/tests/check-assembly.sh index 22e2b6dd3..baa433fc1 100755 --- a/asn1c/tests/check-assembly.sh +++ b/asn1c/tests/check-assembly.sh @@ -54,7 +54,7 @@ cat > "$testdir/Makefile" < #include diff --git a/skeletons/REAL.c b/skeletons/REAL.c index 1b02c8425..8a3a20a07 100644 --- a/skeletons/REAL.c +++ b/skeletons/REAL.c @@ -3,7 +3,9 @@ * Redistribution and modifications are permitted subject to BSD license. */ #define _ISOC99_SOURCE /* For ilogb() and quiet NAN */ +#ifndef _BSD_SOURCE #define _BSD_SOURCE /* To reintroduce finite(3) */ +#endif #if defined(__alpha) #include /* For INFINITY */ #endif diff --git a/skeletons/tests/Makefile.am b/skeletons/tests/Makefile.am index 546bb67df..26db11b1b 100644 --- a/skeletons/tests/Makefile.am +++ b/skeletons/tests/Makefile.am @@ -1,3 +1,5 @@ +@CODE_COVERAGE_RULES@ + check_PROGRAMS = \ check-ber_tlv_tag \ check-length \