[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tor-cvs
Subject:    [tor-commits] [tor/main] configure.ac: Define ENABLE_COVERAGE macro
From:       nickm () torproject ! org
Date:       2021-09-29 21:29:52
Message-ID: 20210929212952.8967610067D () cupani ! torproject ! org
[Download RAW message or body]

commit 3bc3a108955c7b25a13808a2cfefcc77d2364cf4
Author: Simon South <simon@simonsouth.net>
Date:   Thu Sep 23 09:21:13 2021 -0400

    configure.ac: Define ENABLE_COVERAGE macro
    
    Allow conditional compilation based on whether the "--enable-coverage"
    configure option was specified.
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index b4617a4003..f010c547b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,6 +119,11 @@ AM_CONDITIONAL(USE_RUST, test "x$enable_rust" = "xyes")
 AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes")
 AM_CONDITIONAL(USE_OPENSSL, test "x$enable_nss" != "xyes")
 
+if test "x$enable_coverage" = "xyes"; then
+  AC_DEFINE(ENABLE_COVERAGE, 1,
+  	    [Defined if coverage support is enabled for the unit tests])
+fi
+
 if test "x$enable_nss" = "xyes"; then
   AC_DEFINE(ENABLE_NSS, 1,
   	    [Defined if we're building with NSS.])



_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic