9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] test/ dir
@ 2024-05-17 21:45 Romano
  2024-05-21  4:31 ` Jacob Moody
  0 siblings, 1 reply; 2+ messages in thread
From: Romano @ 2024-05-17 21:45 UTC (permalink / raw)
  To: 9front

I noticed that there's a /sys/src/cmd/test directory. Is that
still being used? If so, I noticed that zones.rc isn't in
the mkfile and so if it is meant to be I've provided the
patch below.

From: Romano <me+git@fallglow.com>
Date: Fri, 17 May 2024 21:37:48 +0000
Subject: [PATCH] test/zones.rc: add to mkfile and make portable

---
diff 9c5fc1ce37db16f16b1b351852aa493ac002af2f af584581c71be3579d89ac685e3c3b8fdb5a7654
--- a/sys/src/cmd/test/mkfile
+++ b/sys/src/cmd/test/mkfile
@@ -5,5 +5,6 @@
 	patch\
 	ramfs\
 	test\
+	zones\
 
 </sys/src/cmd/mktest
--- a/sys/src/cmd/test/zones.rc
+++ b/sys/src/cmd/test/zones.rc
@@ -6,9 +6,9 @@
 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}
+		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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] test/ dir
  2024-05-17 21:45 [9front] test/ dir Romano
@ 2024-05-21  4:31 ` Jacob Moody
  0 siblings, 0 replies; 2+ messages in thread
From: Jacob Moody @ 2024-05-21  4:31 UTC (permalink / raw)
  To: 9front

thanks, merged


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-21  4:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-17 21:45 [9front] test/ dir Romano
2024-05-21  4:31 ` Jacob Moody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).