From 2bac6c8ee88dbb56eca2dcb49a0c02ca33f9efd5 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 13 Aug 2001 12:24:40 +0000 Subject: [PATCH] * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and duration of the test suite. --- ChangeLog | 5 +++++ lib/autotest/general.m4 | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 16a79055..493dc285 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-13 Akim Demaille + + * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and + duration of the test suite. + 2001-08-12 Alexandre Duret-Lutz * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index f67291c0..52e9238d 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -239,7 +239,9 @@ else } >&6 fi - +at_start_date=`date` +at_start_time=`date +%s` 2>/dev/null +echo "$as_me: starting at: $at_start_date" >&6 at_fail_list= at_skip_list= at_test_count=0 @@ -293,6 +295,19 @@ _ATEOF esac done +at_stop_date=`date` +at_stop_time=`date +%s` 2>/dev/null +echo "$as_me: ending at: $at_stop_date" >&6 +at_duration_s=`expr $at_stop_time - $at_start_time` 2>/dev/null +at_duration_m=`expr $at_duration_s / 60` 2>/dev/null +at_duration_h=`expr $at_duration_m / 60` 2>/dev/null +at_duration_s=`expr $at_duration_s % 60` 2>/dev/null +at_duration_m=`expr $at_duration_m % 60` 2>/dev/null +at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s" +if test "$at_duration" != "h m s"; then + echo "$as_me: test suite duration: $at_duration" >&6 +fi + # Cleanup everything unless the user wants the files. $at_debug || rm -rf $at_data_files