integrated test script into doc/MMakefile