Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@
# permissions and limitations under the License.
#

OPENSSL_VERSION=$(shell ../libcrypto-root/bin/openssl version 2> /dev/null || echo 1)
ifeq (${OPENSSL_VERSION}, 1)
COMPILE_INFO=Compiled with the missing version of openssl
else
COMPILE_INFO=Compiled with ${OPENSSL_VERSION}.
endif

.PHONY : all
all:
${MAKE} -C testlib
${MAKE} -C unit

# ${MAKE} -C testlib
# ${MAKE} -C unit
@echo "\033[1m ${COMPILE_INFO} \033[0;39m"

include ../s2n.mk

.PHONY : clean
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ LDFLAGS += -L../../lib/ -L../../libcrypto-root/lib -L../testlib/ -ltests2n -ls2n

$(TESTS)::
@${CC} ${CFLAGS} -o $@ [email protected] ${LDFLAGS} 2>&1
@DYLD_LIBRARY_PATH="../../lib/:../testlib/:$$DYLD_LIBRARY_PATH" LD_LIBRARY_PATH="../../lib/:../testlib/:$$LD_LIBRARY_PATH" ./$@
-@DYLD_LIBRARY_PATH="../../lib/:../testlib/:$$DYLD_LIBRARY_PATH" LD_LIBRARY_PATH="../../lib/:../testlib/:$$LD_LIBRARY_PATH" ./$@

.PHONY : valgrind
valgrind: $(TESTS)
Expand Down