| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! --> |
| | | <project name="tests"> |
| | | |
| | |
| | | |
| | | <target name="run"> |
| | | <tstamp> |
| | | <format property="tests.run.time" pattern="yyyy.MM.dd-HH.mm.ss"/> |
| | | <format property="tests.timestamp" pattern="yyyyMMdd-HHmmss"/> |
| | | </tstamp> |
| | | <var name="tests.run.time" value="${remote.hostname}-${tests.timestamp}"/> |
| | | |
| | | <!-- clean up tmp dir --> |
| | | <if> |
| | |
| | | <mkdir dir="${tests.run.dir}/${tests.run.time}/config"/> |
| | | <!-- these will serve for after-the-fact archiving the logs --> |
| | | <mkdir dir="${tests.run.dir}/${tests.run.time}/staf-logs"/> |
| | | <mkdir dir="${tests.run.dir}/${tests.run.time}/logs"/> |
| | | |
| | | <if> |
| | | <equals arg1="${test.plan.custom}" arg2=""/> |
| | | <then> |
| | | <var name="test.plan.custom" value="${test.plan.default}"/> |
| | | <if> |
| | | <equals arg1="${tests.type}" arg2="functional-tests"/> |
| | | <then> |
| | | <var name="test.plan.custom" value="${test.plan.functional.default}"/> |
| | | </then> |
| | | <else> |
| | | <var name="test.plan.custom" value="${test.plan.stress.default}"/> |
| | | </else> |
| | | </if> |
| | | </then> |
| | | </if> |
| | | |
| | |
| | | <equals arg1="${tests.mode.input}" arg2="remote" /> |
| | | <then> |
| | | <input message=" Enter directory instance directory (on remote machine):" |
| | | defaultvalue="${tests.tmp.dir}" |
| | | addproperty="tests.tmp.dir.input"/> |
| | | defaultvalue="${instance.dir}" |
| | | addproperty="instance.dir.input"/> |
| | | </then> |
| | | <else> |
| | | <input message=" Enter directory instance directory:" |
| | | defaultvalue="${tests.tmp.dir}" |
| | | addproperty="tests.tmp.dir.input"/> |
| | | defaultvalue="${instance.dir}" |
| | | addproperty="instance.dir.input"/> |
| | | </else> |
| | | </if> |
| | | |
| | |
| | | logs.dir=${logs.dir.input} |
| | | opends.dir=${opends.dir.input} |
| | | opends.name=${opends.name.input} |
| | | tests.tmp.dir=${tests.tmp.dir.input} |
| | | tests.tmp.dir=${instance.dir.input} |
| | | tests.default=${tests.default.input} |
| | | instance.bin=${instance.dir.input} |
| | | instance.dir=${instance.dir.input} |
| | | opends.port.ldap=${opends.port.ldap.input} |
| | | opends.port.admin=${opends.port.admin.input} |
| | | opends.port.ldaps=${opends.port.ldaps.input} |
| | |
| | | ldclt.dir=${ldclt.dir.input} |
| | | verbose.mode=${verbose.mode.input} |
| | | wc.type=tomcat |
| | | test.plan.custom=${test.plan.custom}</echo> |
| | | test.plan.custom=${test.plan.custom} |
| | | original.archive=${opends.dir.input}/${opends.name.input}.zip</echo> |
| | | </target> |
| | | |
| | | |