Debian Codegraph @

trip/testing

raw
1 parse arg type .
2 options FIND_BIF
3 parse value uname() with sysname . version .
4 if sysname=='SunOS' & version<5 then do /* works until SunOS 10.x */
5 'csh -c "limit descriptors" >LIFO'
6 descr = 0
7 if queued()>=1 then
8 parse pull . descr .
9 if descr > 128 then do
10 say 'The limit of open file descriptors per process is set to a value'
11 say 'greater than 128. For SunOS versions less than 5.x, this will not'
12 say 'work, due to a bug in the operating system. In order to fix this'
13 say 'execute something like:'
14 say ''
15 say ' limit descriptors 128 /* for c-shell users */'
16 say ' ulimit -n 128 /* for bash users */'
17 say ''
18 say 'Do this in the shell before you start the trip test.'
19 say 'If you fail to correct this problem, the trip test is doomed to'
20 say 'crash at several locations.'
21 end
22 end
23
24 parse version ver
25 say center(' Testing 'ver' ',72,'=')
26
27 parse source os .
28 select
29 when os = 'OS/2' | os = 'WIN32' | os = 'DOS' then do
30 rc = 'rc.exe'
31 true = 'true.exe'
32 ls = 'dir /b'
33 one = '1.exe'
34 end
35 otherwise do
36 rc = 'rc'
37 true = 'true'
38 ls = 'ls'
39 one = 'true'
40 end
41 end
42
43 if stream(rc,'c','query exists') = '' then do
44 say 'You must compile rc.c first'
45 exit 1
46 end
47
48 if stream(true,'c','query exists') = '' then do
49 say 'You must compile true.c first'
50 exit 1
51 end
52 /*
53 if stream(one,'c','query exists') = '' then do
54 say 'You must compile 1.c first'
55 exit 1
56 end
57 */
58 if ls = 'ls' then files = 'ls'( '*.rexx' )
59 else files = 'dir'( '/b *.rexx' )
60
61 do while files \= ''
62 parse var files file files
63 say center(' 'file' ',72,'=')
64 interpret "junk = '"file"'()"
65 end
66
67 exit
68
69
70 SunOS_warning:
71