+// ----------- a couple of globals make it easier ---------------------------------------
+static int ts_tests_driven = 0; // number of fail_if calls made == numer of tests driven
+
+// ---------------------------------------------------------------------------------------
+
+/*
+ Support test counting, reset and summary.
+*/
+static int test_get_attempted() {
+ return ts_tests_driven;
+}
+
+static void test_reset_attempted() {
+ ts_tests_driven = 0;
+}
+
+static void test_summary( int ecount, char* tag ) {
+ fprintf( stderr, "<SUMMARY> %s completed; %d total tests, %d passed, %d failed\n",
+ tag, ts_tests_driven, ts_tests_driven - ecount, ecount );
+}
+