Vladimir Merzliakov
2004-Jun-26 08:34 UTC
[LLVMdev] Non-portable use time command in RunSafely.sh
If you look at http://npt.cc.rsu.ru/testresults-X86-FreeBSD/index.html then you see that all program test have '*' in run time columns. I think problem in using plain 'time' command in RunSafely.sh At FreeBSD 'time <program> <args>' call generate output in format " 0,00 real 0,00 user 0,00 sys" for *.time files instead expected "real %e user %U sys %S " And later failed at '-grep "^real" Output/$*.out-nat.time >> $@' and same command in makefiles. I don't know default format 'time' output for Linux, but correct portable 'time -p' call already used in NightlyTest.pl without problems . And then I think can be also safely used in RunSafely.sh. Patch attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: RunSafely.diff Type: application/octet-stream Size: 442 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040626/fe39256a/attachment.obj>
Reid Spencer
2004-Jun-26 12:17 UTC
[LLVMdev] Non-portable use time command in RunSafely.sh
Thanks, Vladimir. Patch applied: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040621/015503.html Reid. On Sat, 2004-06-26 at 06:32, Vladimir Merzliakov wrote:> If you look at http://npt.cc.rsu.ru/testresults-X86-FreeBSD/index.html > then you see that all program test have '*' in run time columns. > > I think problem in using plain 'time' command in RunSafely.sh > > At FreeBSD 'time <program> <args>' call generate output in format " > 0,00 real 0,00 user 0,00 sys" > for *.time files instead expected > "real %e > user %U > sys %S > " > > And later failed at '-grep "^real" Output/$*.out-nat.time >> $@' and same > command in makefiles. > > I don't know default format 'time' output for Linux, but correct portable > 'time -p' call already used in NightlyTest.pl without problems . > And then I think can be also safely used in RunSafely.sh. > > Patch attached.-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040626/9d8112aa/attachment.sig>
Reasonably Related Threads
- [LLVMdev] Using -noexternals option of NightlyTest.pl
- [LLVMdev] Using -noexternals option of NightlyTest.pl
- [LLVMdev] test-suite RunSafely.sh remote execution with test copy
- [LLVMdev] new llvm-testresults mailing list
- [LLVMdev] FYI: Changing RunSafely.sh to only track user time