@@ -523,7 +523,13 @@ functions:
523
523
# API version to example clients, so examples will fail when requireApiVersion
524
524
# is true.
525
525
if [[ -z "$MONGODB_API_VERSION" ]]; then
526
- CTEST_OUTPUT_ON_FAILURE=1 MSBuild.exe /p:Configuration=${build_type} /verbosity:minimal examples/run-examples.vcxproj
526
+ echo "Running examples..."
527
+ if ! CTEST_OUTPUT_ON_FAILURE=1 MSBuild.exe /p:Configuration=${build_type} /verbosity:minimal examples/run-examples.vcxproj >|output.txt 2>&1; then
528
+ # Only emit output on failure.
529
+ cat output.txt 1>&2
530
+ exit 1
531
+ fi
532
+ echo "Running examples... done."
527
533
fi
528
534
else
529
535
# ENABLE_SLOW_TESTS is required to run the slow tests that are disabled by default. The slow tests should not be run if explicitly disabled.
@@ -567,24 +573,29 @@ functions:
567
573
# is true.
568
574
if [[ -z "$MONGODB_API_VERSION" ]]; then
569
575
for test in $EXAMPLES; do
576
+ echo "Running example $test"
570
577
case "$test" in
571
578
*encryption*)
572
- echo "Skipping client side encryption example"
579
+ echo " - Skipping client side encryption example"
573
580
;;
574
581
*change_stream*)
575
- echo "TODO CXX-1201, enable for servers that support change streams"
582
+ echo " - TODO CXX-1201, enable for servers that support change streams"
576
583
;;
577
584
*client_session*)
578
- echo "TODO CXX-1201, enable for servers that support change streams"
585
+ echo " - TODO CXX-1201, enable for servers that support change streams"
579
586
;;
580
587
*with_transaction*)
581
- echo "TODO CXX-1201, enable for servers that support transactions"
588
+ echo " - TODO CXX-1201, enable for servers that support transactions"
582
589
;;
583
590
*causal_consistency*)
584
- echo "TODO CXX-1201, enable for servers that support transactions"
591
+ echo " - TODO CXX-1201, enable for servers that support transactions"
585
592
;;
586
593
*)
587
- ${test_params} $test
594
+ if ! ${test_params} $test >|output.txt 2>&1; then
595
+ # Only emit output on failure.
596
+ cat output.txt 1>&2
597
+ exit 1
598
+ fi
588
599
;;
589
600
esac
590
601
done
@@ -626,7 +637,9 @@ functions:
626
637
# API version to example clients, so example projects will fail when requireApiVersion
627
638
# is true.
628
639
if [[ -z "$MONGODB_API_VERSION" ]]; then
640
+ echo "Building example projects..."
629
641
.evergreen/build_example_projects.sh
642
+ echo "Building example projects... done."
630
643
fi
631
644
unset MONGODB_API_VERSION
632
645
0 commit comments