Changeset d2b2a7 in git for Singular/LIB/tst.lib
- Timestamp:
- May 5, 1998, 1:55:40 PM (26 years ago)
- Branches:
- (u'spielwiese', '379ec2d037299db64c43fe3550b5ba8fe508dbe5')
- Children:
- 97f92aa6d280f6022eaae47195ccc02503ccb984
- Parents:
- 4996f5286c7671191ad22e654499fd8b752fe4f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/tst.lib
r4996f52 rd2b2a7 1 // $Id: tst.lib,v 1. 3 1998-04-03 22:47:15krueger Exp $1 // $Id: tst.lib,v 1.4 1998-05-05 11:55:40 krueger Exp $ 2 2 //(obachman, last modified 2/13/98) 3 3 /////////////////////////////////////////////////////////////////////////////// 4 4 5 version="$Id: tst.lib,v 1. 3 1998-04-03 22:47:15krueger Exp $";5 version="$Id: tst.lib,v 1.4 1998-05-05 11:55:40 krueger Exp $"; 6 6 info=" 7 7 LIBRARY: tst.lib PROCEDURES FOR RUNNING AUTOMATIC TST TESTS … … 17 17 18 18 proc tst_system(string s) 19 USAGE: tst_system(s); s string20 RETURN: string which is stdout and stderr of system("sh", s)19 "USAGE: tst_system(s); s string 20 RETURN: string which is stdout \x and stderr of system(\"sh\", s) 21 21 EXAMPLE: example tst_system; shows examples 22 " 22 23 { 23 24 string tmpfile = "/tmp/tst_" + string(system("pid")); … … 39 40 40 41 proc tst_ignore 41 USAGE: tst_ignore(any,[keyword], [link])42 "USAGE: tst_ignore(any,[keyword], [link]) 42 43 any -- valid argument to string() 43 keyword -- one of "time" or "memory"44 keyword -- one of \"time\" or \"memory\" 44 45 link -- a link which can be written to 45 46 RETURN: none; writes string(any) to link (or stdout, if no link given), 46 prepending prefix "// ignore:", or "// ignore: time:",47 "//ignore: memory:" if called with the respective keywords;47 prepending prefix \"// ignore:\", or \"// ignore: time:\", 48 \"//ignore: memory:\" if called with the respective keywords; 48 49 should be used in tst files to output system dependent data 49 (like date, pathnames) and timings With the keyword "time",50 resp. memory us gae with the keyword "memory"50 (like date, pathnames) { and timings With the keyword \"time\", 51 resp. memory usage with the keyword \"memory\" 51 52 EXAMPLE: example tst_ignore; shows examples 53 " 52 54 { 53 55 string s; … … 130 132 131 133 proc tst_init 132 USAGE: tst_init()134 "USAGE: tst_init() 133 135 RETURN: none; writes some identification data to stdout; 134 136 should be called as first routine in a tst file 135 137 EXAMPLE: example tst_init; shows example 138 " 136 139 { 137 140 tst_ignore("USER : " + system("getenv", "USER"));
Note: See TracChangeset
for help on using the changeset viewer.