Skip to content

Commit

Permalink
Merge pull request #8443 from ColtonWilley/add_cert_rel_prefix
Browse files Browse the repository at this point in the history
Add a cert relative prefix option for tests
  • Loading branch information
dgarske authored Feb 13, 2025
2 parents 14d6969 + b119182 commit 746aa9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .wolfssl_known_macro_extras
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ BSP_SDCARD_ESDHC_CHANNEL
BSP_SDCARD_SDHC_CHANNEL
BSP_SDCARD_SPI_CHANNEL
CAAM_OUT_INVALIDATE
CERT_REL_PREFIX
CIOCASYMFEAT
CIOCGSESSINFO
CMSIS_OS2_H_
Expand Down
9 changes: 9 additions & 0 deletions wolfcrypt/test/test_paths.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
*/

#ifndef NO_FILESYSTEM
#ifdef CERT_REL_PREFIX
#define CERT_PREFIX CERT_REL_PREFIX
#ifndef NO_WRITE_TEMP_FILES
#ifndef CERT_WRITE_TEMP_DIR
#define CERT_WRITE_TEMP_DIR "./"
#endif
#endif
#else
#define CERT_PREFIX "@abs_top_srcdir@/"
#define CERT_WRITE_TEMP_DIR "@abs_top_builddir@/"
#endif /* CERT_REL_PREFIX */
#endif /* NO_FILESYSTEM */

0 comments on commit 746aa9b

Please sign in to comment.