summaryrefslogtreecommitdiff
path: root/sys/src/cmd/test/zones.rc
blob: 065399d39cbb02ff78253e5358eed825abd96831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/rc

rfork en

msg=()
for(f in /adm/timezone/*){
	if(! ~ $f /adm/timezone/README){
		cat $f >/env/timezone
		tm=`{../6.date -f'WW, DD MMM YYYY hh:mm:ss Z'}
		x=`{../6.date -n}
		y=`{../6.seconds $"tm}
		if(! ~ $x $y){
			echo $f $tm $x $y are not equal
			msg=($msg $f)
		}
	}
}

exit $"msg