Skip to content
This repository
Browse code

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 2 changed files with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +3 3 src/tests/encrypt-decrypt.cc
  2. +3 3 src/tests/ocb-aes.cc
6 src/tests/encrypt-decrypt.cc
@@ -52,7 +52,7 @@ const size_t MESSAGE_SIZE_MAX = (2048 - 16);
52 52 const size_t MESSAGES_PER_SESSION = 256;
53 53 const size_t NUM_SESSIONS = 64;
54 54
55   -bool verbose = true;
  55 +bool verbose = false;
56 56
57 57 #define NONCE_FMT "%016"PRIx64
58 58
@@ -135,8 +135,8 @@ void test_one_session( void ) {
135 135 }
136 136
137 137 int main( int argc, char *argv[] ) {
138   - if ( ( argc >= 2 ) && !strcmp( argv[ 1 ], "-q" ) ) {
139   - verbose = false;
  138 + if ( argc >= 2 && strcmp( argv[ 1 ], "-v" ) == 0 ) {
  139 + verbose = true;
140 140 }
141 141
142 142 for ( size_t i=0; i<NUM_SESSIONS; i++ ) {
6 src/tests/ocb-aes.cc
@@ -53,7 +53,7 @@
53 53
54 54 using Crypto::AlignedBuffer;
55 55
56   -bool verbose = true;
  56 +bool verbose = false;
57 57
58 58 bool equal( const AlignedBuffer &a, const AlignedBuffer &b ) {
59 59 return ( a.len() == b.len() )
@@ -540,8 +540,8 @@ void test_iterative( void ) {
540 540
541 541 int main( int argc, char *argv[] )
542 542 {
543   - if ( ( argc >= 2 ) && !strcmp( argv[ 1 ], "-q" ) ) {
544   - verbose = false;
  543 + if ( argc >= 2 && strcmp( argv[ 1 ], "-v" ) == 0 ) {
  544 + verbose = true;
545 545 }
546 546
547 547 test_all_vectors();

0 comments on commit a611ef5

Please sign in to comment.
Something went wrong with that request. Please try again.