2006-11-10 02:32:20 +00:00
|
|
|
#!/bin/bash
|
2008-06-10 21:02:28 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2006-2008 IBM All Rights Reserved
|
|
|
|
#
|
2006-11-10 02:32:20 +00:00
|
|
|
echo "Testing $1 in all timezones"
|
|
|
|
outfile=$1-timezone.txt
|
|
|
|
echo "" > $outfile
|
|
|
|
for timezone in `locate /usr/share/zoneinfo/|fgrep -v /right/|fgrep -v /posix/`; do
|
|
|
|
timezone=${timezone#/usr/share/zoneinfo/}
|
|
|
|
echo TZ=$timezone >> $outfile
|
2008-06-12 01:02:39 +00:00
|
|
|
TZ=$timezone make check $2 >> $outfile 2>&1
|
2006-11-10 02:32:20 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "Done testing $1 in all timezones"
|
|
|
|
|