Skip to content

Commit

Permalink
uri_signing cmake: clean up unit test cmake and change suggested gith…
Browse files Browse the repository at this point in the history
…ub repo (#10723)

* uri_signing cmake: push all cjose/jansson logic into the plugin CMakeLists

* update uri_signing to use UNITTEST
  • Loading branch information
traeak authored Nov 15, 2023
1 parent 1966971 commit be86589
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/admin-guide/plugins/uri_signing.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Building

To build from source, you will need these libraries installed:

- `cjose <https://github.com/cisco/cjose>`_
- `cjose <https://github.com/OpenIDC/cjose>`_
- `jansson <https://github.com/akheron/jansson>`_
- pcre
- OpenSSL
Expand Down Expand Up @@ -253,7 +253,7 @@ If using local cjose:
.. code-block:: Bash
cd ${HOME}/git
git clone https://github.com/cisco/cjose.git
git clone https://github.com/OpenIDC/cjose.git
cd cjose
autoreconf -i
./configure --with-jansson=${HOME}/git/jansson --disable-shared CC="gcc -fpic"
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/uri_signing/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ check_PROGRAMS += experimental/uri_signing/test_uri_signing
experimental_uri_signing_test_uri_signing_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(abs_top_srcdir)/lib/catch2 \
-DURI_SIGNING_UNIT_TEST \
-DUNITTEST \
-DSRCDIR=\"$(srcdir)\"

experimental_uri_signing_test_uri_signing_LDADD = @LIBJANSSON@ @LIBCJOSE@ @LIBPCRE@ -lm -lcrypto
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/uri_signing/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "common.h"

#ifdef URI_SIGNING_UNIT_TEST
#ifdef UNITTEST

void
PrintToStdErr(const char *fmt, ...)
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/uri_signing/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#define PLUGIN_NAME "uri_signing"

#ifdef URI_SIGNING_UNIT_TEST
#ifdef UNITTEST
#include <stdio.h>
#include <stdarg.h>

Expand Down
1 change: 0 additions & 1 deletion plugins/experimental/uri_signing/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ add_executable(
${PROJECT_SOURCE_DIR}/normalize.cc
${PROJECT_SOURCE_DIR}/parse.cc
${PROJECT_SOURCE_DIR}/timing.cc
${PROJECT_SOURCE_DIR}/uri_signing.cc
)
target_compile_definitions(uri_signing_test PRIVATE UNITTEST)
target_include_directories(uri_signing_test PRIVATE ${PROJECT_SOURCE_DIR})
Expand Down

0 comments on commit be86589

Please sign in to comment.