-
Notifications
You must be signed in to change notification settings - Fork 970
Added Unit tests to increase MC/DC coverage #10200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 13 commits
3072fec
f42a651
0b8ccf6
3d23695
9ebb9bf
c1d5c61
afd9443
81c20e1
ecdc8c4
6c7bc71
3a4a7e6
9ad9af5
c13dcdd
e4fc749
8e595ce
c1699bb
2666b54
af50118
cf39c73
617ff4a
75aa849
2bbbe34
eaf7378
b4e8e06
a7e4cfc
7c94714
e7aa81c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1663,23 +1663,58 @@ tryliboqsdir="" | |
| AC_ARG_WITH([liboqs], | ||
| [AS_HELP_STRING([--with-liboqs=PATH],[Path to liboqs install (default /usr/local) (requires --enable-experimental)])], | ||
| [ | ||
| liboqs_saved_CPPFLAGS="$CPPFLAGS" | ||
| liboqs_saved_LDFLAGS="$LDFLAGS" | ||
| liboqs_saved_LIBS="$LIBS" | ||
| liboqs_saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" | ||
| liboqs_pkgconfig_flags="" | ||
| liboqs_pkgconfig_libs="" | ||
| liboqs_link_libs="-loqs" | ||
| liboqs_user_cppflags="" | ||
| liboqs_user_ldflags="" | ||
|
|
||
| AS_IF([ test "$ENABLED_EXPERIMENTAL" != "yes" ],[ AC_MSG_ERROR([LIBOQS requires --enable-experimental.]) ]) | ||
| AC_MSG_CHECKING([for liboqs]) | ||
| LIBS="$LIBS -loqs" | ||
| AM_CFLAGS="$AM_CFLAGS -pthread" | ||
|
|
||
| if test "x$withval" != "xno" && test "x$withval" != "xyes"; then | ||
| tryliboqsdir=$withval | ||
| fi | ||
| if test "x$withval" = "xyes"; then | ||
| tryliboqsdir="/usr/local" | ||
| fi | ||
|
|
||
| if test -n "$tryliboqsdir" && test -d "$tryliboqsdir/lib/pkgconfig"; then | ||
| PKG_CONFIG_PATH="$tryliboqsdir/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" | ||
| fi | ||
|
|
||
| if command -v pkg-config >/dev/null 2>&1 && \ | ||
| PKG_CONFIG_PATH="$PKG_CONFIG_PATH" pkg-config --exists liboqs; then | ||
| liboqs_pkgconfig_flags=`PKG_CONFIG_PATH="$PKG_CONFIG_PATH" pkg-config --cflags liboqs` | ||
| liboqs_pkgconfig_libs=`PKG_CONFIG_PATH="$PKG_CONFIG_PATH" pkg-config --static --libs liboqs` | ||
| liboqs_link_libs="$liboqs_pkgconfig_libs" | ||
| liboqs_user_cppflags="$liboqs_pkgconfig_flags" | ||
| CPPFLAGS="$CPPFLAGS $liboqs_pkgconfig_flags -DHAVE_LIBOQS -DHAVE_TLS_EXTENSIONS -pthread" | ||
| LIBS="$LIBS $liboqs_pkgconfig_libs" | ||
| else | ||
| LIBS="$LIBS -loqs" | ||
| fi | ||
|
|
||
| AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <oqs/common.h>]], [[ OQS_init(); ]])], [ liboqs_linked=yes ],[ liboqs_linked=no ]) | ||
|
Comment on lines
+1691
to
1703
|
||
|
|
||
| if test "x$liboqs_linked" = "xno" ; then | ||
| if test "x$withval" != "xno" ; then | ||
| tryliboqsdir=$withval | ||
| fi | ||
| CPPFLAGS="$liboqs_saved_CPPFLAGS" | ||
| LDFLAGS="$liboqs_saved_LDFLAGS" | ||
| LIBS="$liboqs_saved_LIBS -loqs" | ||
|
|
||
| if test "x$withval" = "xyes" ; then | ||
| tryliboqsdir="/usr/local" | ||
| fi | ||
|
|
||
| CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIBOQS -DHAVE_TLS_EXTENSIONS -I$tryliboqsdir/include -pthread" | ||
| LDFLAGS="$AM_LDFLAGS $LDFLAGS -L$tryliboqsdir/lib" | ||
| LDFLAGS="$AM_LDFLAGS $liboqs_saved_LDFLAGS -L$tryliboqsdir/lib" | ||
| liboqs_user_cppflags="-I$tryliboqsdir/include" | ||
| liboqs_user_ldflags="-L$tryliboqsdir/lib" | ||
|
|
||
| AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <oqs/common.h>]], [[ OQS_init(); ]])], [ liboqs_linked=yes ],[ liboqs_linked=no ]) | ||
|
|
||
|
|
@@ -1692,8 +1727,16 @@ AC_ARG_WITH([liboqs], | |
| AM_LDFLAGS="$AM_LDFLAGS -L$tryliboqsdir/lib" | ||
| else | ||
| AC_MSG_RESULT([yes]) | ||
| AM_CPPFLAGS="$AM_CPPFLAGS $liboqs_pkgconfig_flags" | ||
| fi | ||
|
|
||
| LIB_ADD="$LIB_ADD $liboqs_link_libs" | ||
|
|
||
| PKG_CONFIG_PATH="$liboqs_saved_PKG_CONFIG_PATH" | ||
| CPPFLAGS="$liboqs_saved_CPPFLAGS $liboqs_user_cppflags" | ||
| LDFLAGS="$liboqs_saved_LDFLAGS $liboqs_user_ldflags" | ||
| LIBS="$liboqs_saved_LIBS" | ||
|
Comment on lines
+1734
to
+1739
|
||
|
|
||
| if test "x$ENABLED_OPENSSLEXTRA" = "xno" && test "x$ENABLED_OPENSSLCOEXIST" = "xno" | ||
| then | ||
| ENABLED_OPENSSLEXTRA="yes" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.