Tests require installation-dependent path information to find the components. The process that follows illustrates a portable test example.
create demo.Driver Driver create demo.Integrator Integrator create demo.Function Function connect Driver integrate Integrator integrate connect Integrator odeRHS Function fun go Driver run exit
post-build-user:: $(dprint) "Build hook $@ in $(MYDIR) started" cat tests/instantiation.gen.rc | \ grep -v instantiate | grep -v display | \ grep -v remove | grep -v quit > tests/load.gen.rc cat tests/load.gen.rc \ tests/odetest.rc.in > tests/odetest.rc $(dprint) "Build hook $@ in $(MYDIR) completed"Remember that makefile lines must be tabbed, not started with spaces.
echo "components_TESTS += odetest.rc" »
As many tests as desired can be added to the list in this way.