Needs:
- OpenROAD 6.2 (due to renameapp requirement)
- Ingres (for example Ingres 10.2 + latest patch) for test database
- Cygwin (from https://www.cygwin.com/)
- bash (some bash extensions have been used)
- diffutils (diff)
- Some tests expect a hard coded temporary path location needs to exist:
- Windows;
C:\temp - Unix;
/tmp
- Windows;
Sample usage:
destroydb -uingres orunit
createdb -uingres orunit
bash or_tests.bash orunit
Windows users can call bash directly as above (assuming Cygwin in the path) or instead use the convience wrapper script or_tests.bat
destroydb -uingres orunit
createdb -uingres orunit
or_tests orunit
- Create a new application:
- Include
UnitTestFramework.
- Include
- Create new Userclass:
- Inherit from
testcase. - Create Method in Userclass editor, that starts with the word
test. - Create Method code in script editor.
- Inherit from
- Create 4gl procedure named
runtests(or import from another test)- Ensure
runtestscalls Userclass name defined from above - Ensure
runtestsis the starting component for the application
- Ensure