shithub: riscv

ref: a9d09ee1f1eccc3d8cef3f6fe593f96bec8f855f
dir: /sys/src/cmd/test/zones.rc/

View raw version
#!/bin/rc

rfork en

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

exit $"msg