autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

16-fyi-autotest-duration.patch


From: Akim Demaille
Subject: 16-fyi-autotest-duration.patch
Date: Mon, 13 Aug 2001 14:25:59 +0200

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        
        * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
        duration of the test suite.
        
Index: lib/autotest/general.m4
--- lib/autotest/general.m4 Mon, 06 Aug 2001 20:06:32 +0200 akim
+++ lib/autotest/general.m4 Sun, 12 Aug 2001 15:52:07 +0200 akim
@@ -239,7 +239,9 @@ Tests:
   } >&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
@@ -292,6 +294,19 @@ Tests:
       ;;
   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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]