diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-07 12:25:52 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-07 12:25:52 -0500 |
commit | 1c88fd6f59564f4933fd3d897503a5492feb726c (patch) | |
tree | 6a8be7f9450da1d651330e58a0eca5caa1791ac7 /config.h | |
parent | 52035583de5c9e41a29899256857a0ff18818664 (diff) | |
download | cryptopp-git-1c88fd6f59564f4933fd3d897503a5492feb726c.tar.gz |
Add search for test vectors and test data (GH #760)
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -95,12 +95,23 @@ #define CRYPTOPP_VERSION 710
// Define this if you want to set a prefix for TestData/ and TestVectors/
-// Be mindful of the trailing slash since its simple concatenation.
-// g++ ... -DCRYPTOPP_DATA_DIR='"/tmp/cryptopp_test/share/"'
+// Be sure to add the trailing slash since its simple concatenation.
+// After https://github.com/weidai11/cryptopp/issues/760 the library
+// should find the test vectors and data without much effort. It
+// will search in "./" and "$ORIGIN/../share/cryptopp" automatically.
#ifndef CRYPTOPP_DATA_DIR
# define CRYPTOPP_DATA_DIR ""
#endif
+// Define this to disable the test suite from searching for test
+// vectors and data in "./" and "$ORIGIN/../share/cryptopp". The
+// library will still search in CRYPTOPP_DATA_DIR, regardless.
+// Some distros may want to disable this feature. Also see
+// https://github.com/weidai11/cryptopp/issues/760
+// #ifndef CRYPTOPP_DISABLE_DATA_DIR_SEARCH
+// # define CRYPTOPP_DISABLE_DATA_DIR_SEARCH
+// #endif
+
// Define this if you want or need the library's memcpy_s and memmove_s.
// See http://github.com/weidai11/cryptopp/issues/28.
// #if !defined(CRYPTOPP_WANT_SECURE_LIB)
|