We need each hour at least once, not the first 24 minutes

This commit is contained in:
ollo 2016-04-17 16:07:51 +02:00
parent 69245dcb5b
commit f6c675aae7
2 changed files with 126459 additions and 131730 deletions

View File

@ -9,18 +9,17 @@ TAIL=timetest_tail.template
# remote the tailing "./" and the extension of this script # remote the tailing "./" and the extension of this script
OUTPUT="$(echo "$0" | sed 's;^./;;' | cut -d'.' -f1).lua" OUTPUT="$(echo "$0" | sed 's;^./;;' | cut -d'.' -f1).lua"
#rename OUTPUT from generate to test #rename OUTPUT from generate to test
OUTPUT="$(echo "$OUTPUT" | sed 's;generate;test')" OUTPUT="$(echo "$OUTPUT" | sed 's;generate;test;')"
echo "Generating $OUTPUT ..." echo "Generating $OUTPUT ..."
cat $HEAD > $OUTPUT cat $HEAD > $OUTPUT
# Logic to generate the script # Logic to generate the script
for year in {2016..2100}; do for year in {2016..2100}; do
echo "For $year ..." echo "For $year ..."
for month in 3 10; do for month in 3 10; do
for day in {1..31}; do for day in {1..31}; do
hour=$((RANDOM%24)) for hour in {0..23}; do
for minutes in {0..24}; do minutes=$((RANDOM%60))
seconds=$((RANDOM%60)) seconds=$((RANDOM%60))
timestmp="$year-$month-$day $hour:$minutes:$seconds" timestmp="$year-$month-$day $hour:$minutes:$seconds"
date -d "$timestmp" "+%F %T" >> /dev/null date -d "$timestmp" "+%F %T" >> /dev/null

File diff suppressed because it is too large Load Diff