Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tests: Default to quiet

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
commit a611ef58214f785360236d44a7dbaa0d3becb51a 1 parent ea3ad78
Anders Kaseorg andersk authored committed
Showing with 6 additions and 6 deletions.
  1. +3 −3 src/tests/encrypt-decrypt.cc
  2. +3 −3 src/tests/ocb-aes.cc
6 src/tests/encrypt-decrypt.cc
View
@@ -52,7 +52,7 @@ const size_t MESSAGE_SIZE_MAX = (2048 - 16);
const size_t MESSAGES_PER_SESSION = 256;
const size_t NUM_SESSIONS = 64;
-bool verbose = true;
+bool verbose = false;
#define NONCE_FMT "%016"PRIx64
@@ -135,8 +135,8 @@ void test_one_session( void ) {
}
int main( int argc, char *argv[] ) {
- if ( ( argc >= 2 ) && !strcmp( argv[ 1 ], "-q" ) ) {
- verbose = false;
+ if ( argc >= 2 && strcmp( argv[ 1 ], "-v" ) == 0 ) {
+ verbose = true;
}
for ( size_t i=0; i<NUM_SESSIONS; i++ ) {
6 src/tests/ocb-aes.cc
View
@@ -53,7 +53,7 @@
using Crypto::AlignedBuffer;
-bool verbose = true;
+bool verbose = false;
bool equal( const AlignedBuffer &a, const AlignedBuffer &b ) {
return ( a.len() == b.len() )
@@ -540,8 +540,8 @@ void test_iterative( void ) {
int main( int argc, char *argv[] )
{
- if ( ( argc >= 2 ) && !strcmp( argv[ 1 ], "-q" ) ) {
- verbose = false;
+ if ( argc >= 2 && strcmp( argv[ 1 ], "-v" ) == 0 ) {
+ verbose = true;
}
test_all_vectors();
Please sign in to comment.
Something went wrong with that request. Please try again.