add V (version) option

import/raw
weidai 2006-12-18 02:15:14 +00:00
parent 2651de1b1d
commit 0b26f65853
2 changed files with 7 additions and 0 deletions

View File

@ -317,6 +317,10 @@ int CRYPTOPP_API main(int argc, char *argv[])
FileSource usage("usage.dat", true, new FileSink(cout)); FileSource usage("usage.dat", true, new FileSink(cout));
return 1; return 1;
} }
else if (command == "V")
{
cout << "5.4" << endl;
}
else else
{ {
cerr << "Unrecognized command. Run \"cryptest h\" to obtain usage information.\n"; cerr << "Unrecognized command. Run \"cryptest h\" to obtain usage information.\n";

View File

@ -74,5 +74,8 @@ Test Driver for Crypto++(R) Library, a C++ Class Library of Cryptographic Scheme
- To run validation tests - To run validation tests
cryptest v cryptest v
- To display version number
cryptest V
- To run benchmarks - To run benchmarks
cryptest b [time for each benchmark in seconds] cryptest b [time for each benchmark in seconds]