tests: Default to quiet
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Keith Winstein
parent
ea3ad786fa
commit
a611ef5821
@@ -52,7 +52,7 @@ const size_t MESSAGE_SIZE_MAX = (2048 - 16);
|
|||||||
const size_t MESSAGES_PER_SESSION = 256;
|
const size_t MESSAGES_PER_SESSION = 256;
|
||||||
const size_t NUM_SESSIONS = 64;
|
const size_t NUM_SESSIONS = 64;
|
||||||
|
|
||||||
bool verbose = true;
|
bool verbose = false;
|
||||||
|
|
||||||
#define NONCE_FMT "%016"PRIx64
|
#define NONCE_FMT "%016"PRIx64
|
||||||
|
|
||||||
@@ -135,8 +135,8 @@ void test_one_session( void ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main( int argc, char *argv[] ) {
|
int main( int argc, char *argv[] ) {
|
||||||
if ( ( argc >= 2 ) && !strcmp( argv[ 1 ], "-q" ) ) {
|
if ( argc >= 2 && strcmp( argv[ 1 ], "-v" ) == 0 ) {
|
||||||
verbose = false;
|
verbose = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( size_t i=0; i<NUM_SESSIONS; i++ ) {
|
for ( size_t i=0; i<NUM_SESSIONS; i++ ) {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
using Crypto::AlignedBuffer;
|
using Crypto::AlignedBuffer;
|
||||||
|
|
||||||
bool verbose = true;
|
bool verbose = false;
|
||||||
|
|
||||||
bool equal( const AlignedBuffer &a, const AlignedBuffer &b ) {
|
bool equal( const AlignedBuffer &a, const AlignedBuffer &b ) {
|
||||||
return ( a.len() == b.len() )
|
return ( a.len() == b.len() )
|
||||||
@@ -540,8 +540,8 @@ void test_iterative( void ) {
|
|||||||
|
|
||||||
int main( int argc, char *argv[] )
|
int main( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
if ( ( argc >= 2 ) && !strcmp( argv[ 1 ], "-q" ) ) {
|
if ( argc >= 2 && strcmp( argv[ 1 ], "-v" ) == 0 ) {
|
||||||
verbose = false;
|
verbose = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
test_all_vectors();
|
test_all_vectors();
|
||||||
|
|||||||
Reference in New Issue
Block a user