]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
authorAkim Demaille <akim@epita.fr>
Mon, 13 Aug 2001 12:24:40 +0000 (12:24 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 13 Aug 2001 12:24:40 +0000 (12:24 +0000)
duration of the test suite.

ChangeLog
lib/autotest/general.m4

index 16a790558eb660474fb9b93a01604778ea046040..493dc2850f2c4f1a007a4bf9f8c5884dfa23f2b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-13  Akim Demaille  <akim@epita.fr>
+
+       * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
+       duration of the test suite.
+
 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
index f67291c0aed2b6b7a1a6ae23e34b35e6b432d871..52e9238db4b049c8b22a6c7c180f423e0c81bab6 100644 (file)
@@ -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