To define a unit test simply write a testing procedure by using test instead of code. A test cannot have any arguments.
firsttest is test := print "This is my first test\n"; secondtest is test := print "This is my second test\n"; print "This is my program";
You can run the programm by using
$ gsys -r test.g This is my program $ gsys --test test.g This is my first test This is my second test
Every test will executed if you do not specify a test by name.
If you want to execute a test suite you can use –require to require it:
gsys --test --require pro.genesys.test
At the pro/genesys/test.gex file you simply collect all files you want to be tested by using the require-command.