Running JMI TCK with MDR
This document contains instructions on how to run JMI TCK with MDR. Here are the steps you need to follow:
- Run ant in jmitck directory.
- Create "netbeans" subdirectory of jmitck directory and unzip content of mdr-standalone.zip into it.
- Download build.xml and NBMDRGenerator.java and save them to jmitck/MDRExample directory (replace the original NBMDRGenerator.java).
- Run ant in MDRExample directory. NBMDRGenerator should be built successfully.
- Create mdrtck_run.sh or mdrtck_run.bat scripts containing something equivalent to:
#!/bin/sh
if [ "$JAVA_HOME" = "" ] ; then
echo You must set JAVA_HOME to point at your Java Development Kit directory
exit 1
fi
java -Xms24m -Xmx96m -cp lib/javatest.jar:lib/sigtest.jar:jmitck.jar:lib/log4j.jar:lib/ant.jar:servers:tests/modelsem:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.jar:netbeans/jmi.jar:netbeans/mof.jar:netbeans/nbmdr.jar:netbeans/jmiutils.jar:netbeans/mdrapi.jar:netbeans/mdr.jar:netbeans/openide-util.jar:tests/modelsem -Djavatest.security.allowPropertiesAccess=true com.sun.javatest.tool.Main -cleanDesktop
- Run mdrtck_run.sh/mdrtck_run.bat.
- In the GUI for JMI TCK, choose to create a new working directory. Enter a directory name (ideally a directory that does not exist yet).
- Now configure the test suite by going to Configure->Configuration Editor and setting the following values in the Configuration Editor:
- Environment Name: <any name>
- Description: <any description>
- Implementation Class: NBMDRGenerator
- Code Generation Classpath: Add
jmitck/MDRExample, all jars from jmitck/netbeans directory, jmitck/lib/ant.jar, jmitck/lib/log4j.jar, $JAVA_HOME/lib/tools.jar
- Static Build: Yes
- Build Location: Add
servers directory
- Generator Properties: none
- JMI API Resource Location: Add
jmitck/netbeans/jmi.jar and jmitck/netbeans/mof.jar
- Specify Tests to Run?: No
- Specify an Exclude List?: No
- Time Factor: 1
- Report Directory: <leave blank or specify a directory for reports>
- Completed: Press Check Button to Save Configuration
- Start the tests.