📄 readme
字号:
MIWCO Testing ScriptsThe testing system should now be generic enough to run on otherarrangements than my own without modifications. Every script (well,not every but there is no harm in assuming that) takes as its firstargument the machine name it is running on. The script demotb alsotakes a second argument, which is the machine name ab0 is running on.Please note that it is not possible to run everything on a singlemachine; MIWCO optimizes the GTP link away when invoking within amachine. It is, however, sufficient to have two machines, one ofwhich plays the role of the terminal and one which plays all otherroles.Well, the above is possible with dummy network interfaces, since theoptimization is not very clever. My setup on my Linux-based machinehas the lines172.16.6.19 terminal172.16.7.25 networkin /etc/hosts, then I doinsmod -o dummy0 /lib/modules/2.4.20/kernel/drivers/net/dummy.oinsmod -o dummy1 /lib/modules/2.4.20/kernel/drivers/net/dummy.oand finallyifconfig dummy0 networkifconfig dummy1 terminaland then the names 'network' and 'terminal' can be used as if theywere separate hosts. Note that you still need to run netproxy andterproxy in different directories, since they look for demo.ref intheir current directory.The scripts to be started on each machine are (do these in this order):HLA-containing machine demons demohlaAB-containing machine $i ($i takes values between 0 and 9; running ab0 is mandatory) demons demoevd ab$i netconsTerminal demons demoevd demotb tercons terproxy terserThe scripts netser and netproxy can in theory be started anywhere.The same with the program frame.The arguments to the frame program are all addresses in the order ofterproxy, netproxy, and all the Access Bridges. It is assumed thatthe first ab in the list is on port 21100, the next one on 21101, andso on. The scripts ab0 and ab1 are examples for writing an ab script;you can write these up to ab9. If all the scripts are on differentmachines, there is in theory no need to alter the GIOP address ports.Some of the programs require that various IORs are present. Both*proxy scripts look for the server's (terser for netproxy and netserfor terproxy) IOR in a file 'demo.ref' in their current directory.The server will write its IOR to file 'demo.ior' in its workingdirectory so you'll need to copy this file to be found by the proxy.This means that the starting order of the applications must be netser,terproxy, terser, netproxy. Both terser and terproxy also need theTerminal Bridge's IOR in a file called tb.ref in their workingdirectory. The frame program looks for the Bridge IORs in its workingdirectory, so just copy the ones that are output by the Bridgescripts.If you do not want to run a homeless terminal (I'm not even certainthe test system works in that case), the demotb script needs to knowthe HLA's object reference. The demohla script outputs its objectreference to a file called home.ref. You'll need to copy this fileunder that name to any directory where you are running the ter*scripts.The frame program reads commands from its standard input. The commandlanguage is simple:delay <n> wait for <n> secondsinvoke <side> <n> invoke from <side> ('net' or 'term') with delay <n>handoff <side> <from> <to> handoff initiated from <side> ('net' or 'term') from AB <from> (this only with 'net' handoff) to AB <to>recovery <ab> do connection break and recovery at <ab>; if not connected, do recovery or initial access at <ab> depending on whether the previous connection is remembered or notbreak break current connection (recovery can be used for reestablishment)The Access Bridges are named with numbers from 0 to 9 (correspondingto scripts ab[0-9]). The gremlin program outputs random commands inthis language to its standard output. It takes two arguments; thefirst one is the seed used to initialise the random number generator(if <=0 or not present, current time is used) and the second is thenumber of commands to be output (if <=0 or not present, LONG_MAX isused).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -