To run the script, simply cryptest.sh (notice its. cryptest.sh # -Wall will be removed Running the Script For example, -Wall will be removed from all builds and tested by the script when appropriate:ĬXXFLAGS=-Wall. You can see the ones removed in FILTERED_CXXFLAGS. User supplied flags which are tested in this script are removed during testing. cryptest.sh # -march=armv6 will be honored It will be placed in a variable called RETAINED_CXXFLAGS and used in most (but not all) tests).ĬXXFLAGS=-march=armv6. For example, to test with ARMv6, use the following. You can also provide some default CXXFLAGS. If you want to test a particular compiler, like clang++ or icpc, issue: However, it will perform two quick tests under Clang to ensure a break was not introduced. For example, on Linux, the script uses GCC by default. On occasion the script will also test a different compiler than the one specified in CXX. The script honors CXX, and attempts to honor most of the user's CXXFLAGS. If a filename does not suit your taste, then change it with: Crypto++ outputs FAILED when a self tests fails. The string error is output by tools like Undefined Behavior sanitizer and Valgrind. Problems are detected by grep'ing the file for error and FAILED.
Cryptext wikipedia install#
Problems with make install and make uninstallĬryptest-result.txt. Its also tee's its output to one of four different files, depending on the test. Nice Tests - runs all the tests, using half the cpu cores: Quick Tests - runs all the tests except Valgrind and Benchmarks (which take considerably more time), using all the cpu cores: The following is the 5-second tour of the two options.įull Tests - runs all the tests using all the cpu cores: cryptest.nmake can also be used as a starting point for building static and dynamic libraries from the command line. The script then make's the library and runs the self tests while cycling through combinations of configuration options.Ī related page is cryptest.nmake, which discusses a similar test script used on Windows to test Windows desktops and servers, Windows Phone and Windows Store apps. Options that the script uses/tests are filtered out from CXXFLAGS see CXX and CXXFLAGS below for details.
Cryptext wikipedia download#
In addition, the script is available for download below, so it can be used to test earlier versions of Crypto++. It was added to the Crypto++ library at 5.6.3. The script is distributed as part of the library for those who want to perform acceptance testing.
The Crypto++ Release Engineering process relies heavily on the script.
The script repeatedly builds the library and runs the self tests using different configurations and options. Cryptest.sh is a script used to test the Crypto++ library on BSD, Linux, OS X, Solaris and Unix platforms.