Skip to content

Commit

Permalink
standalone-enc: move perftest functions to separate files
Browse files Browse the repository at this point in the history
The code is an exact copy&paste, plus sorting out the includes and
adding a standalone_internal.h.

COMPILING NOTE: this resolves the "function arguments shadowing global
variables" warning from -Wshadow may have appeared due to the previous commit.
  • Loading branch information
gperciva committed Mar 10, 2022
1 parent 7142549 commit 14df9b3
Show file tree
Hide file tree
Showing 8 changed files with 639 additions and 552 deletions.
8 changes: 7 additions & 1 deletion perftests/standalone-enc/Makefile.BSD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ LIB_DIR = ../../lib

# Main test code
SRCS = main.c
SRCS += standalone_aesctr.c
SRCS += standalone_aesctr_hmac.c
SRCS += standalone_hmac.c
SRCS += standalone_pce.c
SRCS += standalone_pipe.c

# spiped protocol, with an extra -DSTANDALONE_ENC_TESTING to enable mkkeypair()
.PATH.c : ${LIB_DIR}/proto
Expand All @@ -31,7 +36,8 @@ IDIRS += -I${LIB_DIR}/util

# Special test-only defines.
CFLAGS.proto_crypt.c= -DSTANDALONE_ENC_TESTING
CFLAGS.main.c= -DSTANDALONE_ENC_TESTING
CFLAGS.standalone_pce.c= -DSTANDALONE_ENC_TESTING
CFLAGS.standalone_pipe.c= -DSTANDALONE_ENC_TESTING

# This depends on "all", but we don't want to see any output from that.
perftest:
Expand Down
Loading

0 comments on commit 14df9b3

Please sign in to comment.