Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 221f3b9d authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Always print the dart measurement in testmode

parent 9851040e
No related branches found
No related tags found
No related merge requests found
......@@ -35,19 +35,27 @@ main(int argc, char ** argv)
matrix.mt = MT;
matrix.nt = NT;
rc = libhqr_init_tphqr( &qrtree, LIBHQR_TSQR, NT, 0, &matrix, LIBHQR_FLAT_TREE, qr_a, qr_p );
rc = libhqr_init_tphqr( &qrtree, LIBHQR_TSQR, NT, NT-1, &matrix, LIBHQR_FLAT_TREE, qr_a, qr_p );
if ( rc != 0 ) {
return EXIT_FAILURE;
}
libhqr_print_svg( &qrtree, "tphqr.svg" );
libhqr_finalize( &qrtree );
rc = libhqr_init_tshqr( &qrtree, 0, LIBHQR_TSQR, NT, 0, &matrix );
rc = libhqr_init_tshqr( &qrtree, 0, LIBHQR_TSQR, NT, NT-1, &matrix );
if ( rc != 0 ) {
return EXIT_FAILURE;
}
libhqr_print_svg( &qrtree, "tshqr.svg" );
qrtree.facto = LIBHQR_QR;
libhqr_print_svg( &qrtree, "tshqr_flat.svg" );
libhqr_finalize( &qrtree );
rc = libhqr_init_tshqr( &qrtree, 1, LIBHQR_TSQR, NT, NT-1, &matrix );
if ( rc != 0 ) {
return EXIT_FAILURE;
}
qrtree.facto = LIBHQR_QR;
libhqr_print_svg( &qrtree, "tshqr_rr.svg" );
libhqr_finalize( &qrtree );
return EXIT_SUCCESS;
}
......@@ -215,20 +215,19 @@ main(int argc, char ** argv)
}
}
if ( check > 1 ) {
printf( "<DartMeasurement name=\"failures\" type=\"numeric/integer\"\n"
" encoding=\"none\" compression=\"none\">\n"
"%d\n"
"</DartMeasurement>\n",
ret );
}
if ( ret == 0 ) {
return EXIT_SUCCESS;
}
else {
if ( check > 1 ) {
printf( "<DartMeasurement name=\"failures\" type=\"numeric/integer\"\n"
" encoding=\"none\" compression=\"none\">\n"
"%d\n"
"</DartMeasurement>\n",
ret );
}
else {
printf( "%d tests failed !!!\n", ret );
}
printf( "%d tests failed !!!\n", ret );
return EXIT_FAILURE;
}
}
......@@ -150,20 +150,18 @@ main(int argc, char ** argv)
}
}
if ( check > 1 ) {
printf( "<DartMeasurement name=\"failures\" type=\"numeric/integer\"\n"
" encoding=\"none\" compression=\"none\">\n"
"%d\n"
"</DartMeasurement>\n",
ret );
}
if ( ret == 0 ) {
return EXIT_SUCCESS;
}
else {
if ( check > 1 ) {
printf( "<DartMeasurement name=\"failures\" type=\"numeric/integer\"\n"
" encoding=\"none\" compression=\"none\">\n"
"%d\n"
"</DartMeasurement>\n",
ret );
}
else {
printf( "%d tests failed !!!\n", ret );
}
printf( "%d tests failed !!!\n", ret );
return EXIT_FAILURE;
}
}
......@@ -121,20 +121,18 @@ main(int argc, char ** argv)
}
}
if ( check > 1 ) {
printf( "<DartMeasurement name=\"failures\" type=\"numeric/integer\"\n"
" encoding=\"none\" compression=\"none\">\n"
"%d\n"
"</DartMeasurement>\n",
ret );
}
if ( ret == 0 ) {
return EXIT_SUCCESS;
}
else {
if ( check > 1 ) {
printf( "<DartMeasurement name=\"failures\" type=\"numeric/integer\"\n"
" encoding=\"none\" compression=\"none\">\n"
"%d\n"
"</DartMeasurement>\n",
ret );
}
else {
printf( "%d tests failed !!!\n", ret );
}
printf( "%d tests failed !!!\n", ret );
return EXIT_FAILURE;
}
}
......@@ -147,20 +147,19 @@ main(int argc, char ** argv)
}
}
if ( check > 1 ) {
printf( "<DartMeasurement name=\"failures\" type=\"numeric/integer\"\n"
" encoding=\"none\" compression=\"none\">\n"
"%d\n"
"</DartMeasurement>\n",
ret );
}
if ( ret == 0 ) {
return EXIT_SUCCESS;
}
else {
if ( check > 1 ) {
printf( "<DartMeasurement name=\"failures\" type=\"numeric/integer\"\n"
" encoding=\"none\" compression=\"none\">\n"
"%d\n"
"</DartMeasurement>\n",
ret );
}
else {
printf( "%d tests failed !!!\n", ret );
}
printf( "%d tests failed !!!\n", ret );
return EXIT_FAILURE;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment