* lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and

duration of the test suite.
This commit is contained in:
Akim Demaille 2001-08-13 12:24:40 +00:00
parent c659b9f763
commit 2bac6c8ee8
2 changed files with 21 additions and 1 deletions

View File

@ -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

View 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