Lines 30-36
Link Here
|
30 |
- package : jars JPA persistent units and tests jars |
30 |
- package : jars JPA persistent units and tests jars |
31 |
- test : runs JPA LRG (FullRegressionTestSuite) |
31 |
- test : runs JPA LRG (FullRegressionTestSuite) |
32 |
- test-lrg : runs JPA LRG (FullRegressionTestSuite, if database is Oracle, OracleJPATestSuite as well) |
32 |
- test-lrg : runs JPA LRG (FullRegressionTestSuite, if database is Oracle, OracleJPATestSuite as well) |
33 |
- test-oracle : runs JPA Oracle-specific tests (OracleJPATestSuite) |
33 |
- test-oracle : runs JPA Oracle-specific tests (OracleJPATestSuite and OracleJPACustomfeaturesTestSuite) |
34 |
- test-no-weave : runs JPA LRG using no weaving (no agent) |
34 |
- test-no-weave : runs JPA LRG using no weaving (no agent) |
35 |
- test-static-weave : runs JPA LRG using static weaving |
35 |
- test-static-weave : runs JPA LRG using static weaving |
36 |
|
36 |
|
Lines 92-97
Link Here
|
92 |
<contains string="${server.name}" substring="jboss"/> |
92 |
<contains string="${server.name}" substring="jboss"/> |
93 |
</condition> |
93 |
</condition> |
94 |
|
94 |
|
|
|
95 |
<!-- This checks if the Apllication Server is WebLogic --> |
96 |
<condition property="is.weblogic"> |
97 |
<contains string="${server.name}" substring="weblogic"/> |
98 |
</condition> |
99 |
|
100 |
<!-- This checks if the Apllication Server is WebLogic and running against oracle db--> |
101 |
<condition property="is.weblogic.and.oracle"> |
102 |
<and> |
103 |
<contains string="${server.name}" substring="weblogic"/> |
104 |
<contains string="${db.driver}" substring="oracle"/> |
105 |
</and> |
106 |
</condition> |
107 |
|
95 |
<target name="set-app-name"> |
108 |
<target name="set-app-name"> |
96 |
<condition property="APP_NAME" value=""> |
109 |
<condition property="APP_NAME" value=""> |
97 |
<contains string="${server.name}" substring="websphere"/> |
110 |
<contains string="${server.name}" substring="websphere"/> |
Lines 408-413
Link Here
|
408 |
<pathelement path="${eclipselink.extension.oracle.dir}/${classes.dir}"/> |
421 |
<pathelement path="${eclipselink.extension.oracle.dir}/${classes.dir}"/> |
409 |
<pathelement path="${eclipselink.extension.oracle.dir}/eclipselink-extension-oracle.jar"/> |
422 |
<pathelement path="${eclipselink.extension.oracle.dir}/eclipselink-extension-oracle.jar"/> |
410 |
<pathelement path="${jdbc.driver.jar}"/> |
423 |
<pathelement path="${jdbc.driver.jar}"/> |
|
|
424 |
<pathelement path="${oracle.extensions.depend.dir}/${oracle.xdb.lib}"/> |
425 |
<pathelement path="${oracle.extensions.depend.dir}/${oracle.xmlparserv2.lib}"/> |
411 |
<pathelement path="${eclipselink.jpa.test}/${eclipselink.tests.jar}"/> |
426 |
<pathelement path="${eclipselink.jpa.test}/${eclipselink.tests.jar}"/> |
412 |
<pathelement path="${eclipselink.jpa.test}/${eclipselink.annotation.model}.jar"/> |
427 |
<pathelement path="${eclipselink.jpa.test}/${eclipselink.annotation.model}.jar"/> |
413 |
<pathelement path="${eclipselink.jpa.test}/${eclipselink.ddl.generation.model}.jar"/> |
428 |
<pathelement path="${eclipselink.jpa.test}/${eclipselink.ddl.generation.model}.jar"/> |
Lines 420-426
Link Here
|
420 |
<!--pathelement path="${eclipselink.jpa.test}/${eclipselink.pu.with.multibyte}.jar"/--> |
435 |
<!--pathelement path="${eclipselink.jpa.test}/${eclipselink.pu.with.multibyte}.jar"/--> |
421 |
<pathelement path="${eclipselink.jpa.test}/${jpa.performance}.jar"/> |
436 |
<pathelement path="${eclipselink.jpa.test}/${jpa.performance}.jar"/> |
422 |
<pathelement path="${eclipselink.extension.oracle.test.dir}/${eclipselink.struct.converter.model}.jar"/> |
437 |
<pathelement path="${eclipselink.extension.oracle.test.dir}/${eclipselink.struct.converter.model}.jar"/> |
423 |
<pathelement path="${eclipselink.extension.oracle.test.dir}/${eclipselink.struct.converter.model}-tests.jar"/> |
438 |
<pathelement path="${eclipselink.extension.oracle.test.dir}/${eclipselink.customfeatures.model}.jar"/> |
|
|
439 |
<pathelement path="${eclipselink.extension.oracle.test.dir}/${eclipselink.jpa.oracle}-tests.jar"/> |
424 |
<pathelement path="${oracle.extensions.depend.dir}/${oracle.spatial.lib}"/> |
440 |
<pathelement path="${oracle.extensions.depend.dir}/${oracle.spatial.lib}"/> |
425 |
</path> |
441 |
</path> |
426 |
<path id="run.extended.classpath"> |
442 |
<path id="run.extended.classpath"> |
Lines 448-453
Link Here
|
448 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
464 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
449 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
465 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
450 |
<param name="RUN_PATH" value="run.classpath"/> |
466 |
<param name="RUN_PATH" value="run.classpath"/> |
|
|
467 |
<param name="DB_URL" value="${db.url}"/> |
451 |
</antcall> |
468 |
</antcall> |
452 |
<antcall target="generate-report" inheritRefs="true"/> |
469 |
<antcall target="generate-report" inheritRefs="true"/> |
453 |
</target> |
470 |
</target> |
Lines 460-465
Link Here
|
460 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
477 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
461 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
478 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
462 |
<param name="RUN_PATH" value="run.classpath"/> |
479 |
<param name="RUN_PATH" value="run.classpath"/> |
|
|
480 |
<param name="DB_URL" value="${db.url}"/> |
463 |
</antcall> |
481 |
</antcall> |
464 |
<antcall target="run-test" inheritRefs="true"> |
482 |
<antcall target="run-test" inheritRefs="true"> |
465 |
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/> |
483 |
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/> |
Lines 467-472
Link Here
|
467 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
485 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
468 |
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/> |
486 |
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/> |
469 |
<param name="RUN_PATH" value="run.extended.classpath"/> |
487 |
<param name="RUN_PATH" value="run.extended.classpath"/> |
|
|
488 |
<param name="DB_URL" value="${db.url}"/> |
470 |
</antcall> |
489 |
</antcall> |
471 |
<antcall target="test-oracle" inheritRefs="true"/> |
490 |
<antcall target="test-oracle" inheritRefs="true"/> |
472 |
<antcall target="generate-report" inheritRefs="true"/> |
491 |
<antcall target="generate-report" inheritRefs="true"/> |
Lines 474-485
Link Here
|
474 |
|
493 |
|
475 |
<!-- Runs JPA Oracle-specific tests. --> |
494 |
<!-- Runs JPA Oracle-specific tests. --> |
476 |
<target name="test-oracle" if="is.oracle" depends="config-trunk, config-flat"> |
495 |
<target name="test-oracle" if="is.oracle" depends="config-trunk, config-flat"> |
477 |
<antcall target="run-test" inheritRefs="true"> |
496 |
<!--antcall target="run-test" inheritRefs="true"> |
478 |
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.OracleJPATestSuite"/> |
497 |
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.OracleJPATestSuite"/> |
479 |
<param name="TEST_AGENT" value="${test.agent}"/> |
498 |
<param name="TEST_AGENT" value="${test.agent}"/> |
480 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
499 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
481 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
500 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
482 |
<param name="RUN_PATH" value="run.classpath"/> |
501 |
<param name="RUN_PATH" value="run.classpath"/> |
|
|
502 |
<param name="DB_URL" value="${db.url}"/> |
503 |
</antcall--> |
504 |
<antcall target="run-test" inheritRefs="true"> |
505 |
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.OracleJPACustomFeaturesTestSuite"/> |
506 |
<param name="TEST_AGENT" value="${test.agent}"/> |
507 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
508 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
509 |
<param name="RUN_PATH" value="run.classpath"/> |
510 |
<param name="DB_URL" value="${db.oci.url}"/> |
483 |
</antcall> |
511 |
</antcall> |
484 |
</target> |
512 |
</target> |
485 |
|
513 |
|
Lines 491-496
Link Here
|
491 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
519 |
<param name="TEST_WEAVING" value="${test.weaving}"/> |
492 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
520 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
493 |
<param name="RUN_PATH" value="run.classpath"/> |
521 |
<param name="RUN_PATH" value="run.classpath"/> |
|
|
522 |
<param name="DB_URL" value="${db.url}"/> |
494 |
</antcall> |
523 |
</antcall> |
495 |
<antcall target="generate-report" inheritRefs="true"/> |
524 |
<antcall target="generate-report" inheritRefs="true"/> |
496 |
</target> |
525 |
</target> |
Lines 503-508
Link Here
|
503 |
<param name="TEST_WEAVING" value="-DTEST_NO_WEAVING=true"/> |
532 |
<param name="TEST_WEAVING" value="-DTEST_NO_WEAVING=true"/> |
504 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
533 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
505 |
<param name="RUN_PATH" value="run.classpath"/> |
534 |
<param name="RUN_PATH" value="run.classpath"/> |
|
|
535 |
<param name="DB_URL" value="${db.url}"/> |
506 |
</antcall> |
536 |
</antcall> |
507 |
<antcall target="generate-report" inheritRefs="true"/> |
537 |
<antcall target="generate-report" inheritRefs="true"/> |
508 |
</target> |
538 |
</target> |
Lines 538-543
Link Here
|
538 |
<param name="TEST_WEAVING" value="-Dignore"/> |
568 |
<param name="TEST_WEAVING" value="-Dignore"/> |
539 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
569 |
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/> |
540 |
<param name="RUN_PATH" value="run.classpath.static"/> |
570 |
<param name="RUN_PATH" value="run.classpath.static"/> |
|
|
571 |
<param name="DB_URL" value="${db.url}"/> |
541 |
</antcall> |
572 |
</antcall> |
542 |
<antcall target="run-test" inheritRefs="true"> |
573 |
<antcall target="run-test" inheritRefs="true"> |
543 |
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/> |
574 |
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/> |
Lines 545-550
Link Here
|
545 |
<param name="TEST_WEAVING" value="-Dignore"/> |
576 |
<param name="TEST_WEAVING" value="-Dignore"/> |
546 |
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/> |
577 |
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/> |
547 |
<param name="RUN_PATH" value="run.extended.classpath.static"/> |
578 |
<param name="RUN_PATH" value="run.extended.classpath.static"/> |
|
|
579 |
<param name="DB_URL" value="${db.url}"/> |
548 |
</antcall> |
580 |
</antcall> |
549 |
<antcall target="generate-report" inheritRefs="true"/> |
581 |
<antcall target="generate-report" inheritRefs="true"/> |
550 |
</target> |
582 |
</target> |
Lines 665-671
Link Here
|
665 |
|
697 |
|
666 |
<!-- Generic target for running tests. --> |
698 |
<!-- Generic target for running tests. --> |
667 |
<target name="run-test" depends="config-trunk, config-flat"> |
699 |
<target name="run-test" depends="config-trunk, config-flat"> |
668 |
<echo>Running test on ${db.url}</echo> |
700 |
<echo>Running test on ${DB_URL}</echo> |
669 |
|
701 |
|
670 |
<condition property="jvmarg.db.platform" value="-Ddb.platform=${db.platform}"> |
702 |
<condition property="jvmarg.db.platform" value="-Ddb.platform=${db.platform}"> |
671 |
<isset property="db.platform"/> |
703 |
<isset property="db.platform"/> |
Lines 682-688
Link Here
|
682 |
<jvmarg value="${ORM_TESTING}"/> |
714 |
<jvmarg value="${ORM_TESTING}"/> |
683 |
<jvmarg value="-Declipselink.logging.level=${logging.level}"/> |
715 |
<jvmarg value="-Declipselink.logging.level=${logging.level}"/> |
684 |
<jvmarg value="-Ddb.driver=${db.driver}"/> |
716 |
<jvmarg value="-Ddb.driver=${db.driver}"/> |
685 |
<jvmarg value="-Ddb.url=${db.url}"/> |
717 |
<jvmarg value="-Ddb.url=${DB_URL}"/> |
686 |
<jvmarg value="-Ddb.user=${db.user}"/> |
718 |
<jvmarg value="-Ddb.user=${db.user}"/> |
687 |
<jvmarg value="-Ddb.pwd=${db.pwd}"/> |
719 |
<jvmarg value="-Ddb.pwd=${db.pwd}"/> |
688 |
<jvmarg value="${jvmarg.db.platform}"/> |
720 |
<jvmarg value="${jvmarg.db.platform}"/> |
Lines 1411-1416
Link Here
|
1411 |
<param name="eclipselink.jpa.test.dir" value="./../../foundation/eclipselink.extension.oracle.test"/> |
1443 |
<param name="eclipselink.jpa.test.dir" value="./../../foundation/eclipselink.extension.oracle.test"/> |
1412 |
</antcall> |
1444 |
</antcall> |
1413 |
</target> |
1445 |
</target> |
|
|
1446 |
|
1447 |
<target name="server-test-custom-features" if="is.weblogic.and.oracle"> |
1448 |
<antcall target="server-run-all" inheritRefs="true"> |
1449 |
<param name="PERSISTENCE_UNIT_NAME" value="customfeatures"/> |
1450 |
<param name="MODEL_DIR" value="org/eclipse/persistence/testing/models/jpa/customfeatures"/> |
1451 |
<param name="MODEL_NAME" value="eclipselink-customfeatures-model"/> |
1452 |
<param name="TEST_DIR" value="org/eclipse/persistence/testing/tests/jpa/customfeatures"/> |
1453 |
<param name="TEST_NAME" value="eclipselink-customfeatures-model"/> |
1454 |
<param name="EAR_NAME" value="eclipselink-customfeatures-model"/> |
1455 |
<param name="TEST_SUITE" value="org.eclipse.persistence.testing.tests.jpa.customfeatures.CustomFeaturesJUnitTestSuite"/> |
1456 |
<param name="eclipselink.jpa.test.dir" value="./../../foundation/eclipselink.extension.oracle.test"/> |
1457 |
</antcall> |
1458 |
</target> |
1459 |
|
1414 |
<!-- *********** CacheCoordination Test Targets --> |
1460 |
<!-- *********** CacheCoordination Test Targets --> |
1415 |
<target name="server-start-cachecoordination" depends="detect-os,config-trunk, config-flat"> |
1461 |
<target name="server-start-cachecoordination" depends="detect-os,config-trunk, config-flat"> |
1416 |
<ant antfile="${eclipselink.jpa.test}/cachecoordination_${server.name}.xml" target="${server.name}-start-cachecoordination" inheritRefs="true"/> |
1462 |
<ant antfile="${eclipselink.jpa.test}/cachecoordination_${server.name}.xml" target="${server.name}-start-cachecoordination" inheritRefs="true"/> |