blob: cff0c854eaf7afef4e2950fd6477d9cbefa9929a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
Running the otests with Tuscany using Maven
===========================================
cd otest/current
mvn
should build and run all of the otests
The file otest\current\tests\src\test\resources\oasis-sca-tests.properties configures the
test environment. Currently you can run in either the Java standalone or OSGi runtimes
which is configured by the org.oasis.sca.tests.assembly.runtime_bridge property.
Running the otests with Tuscany using Eclipse
=============================================
cd otest/current
mvn eclipse:eclipse
import otest/current/tests into eclipse
import otest/current/General into eclipse
import otest/current/General_Java into eclipse
import which ever other contributions you need into eclipse (depends on which tests you are running)
Structure of the otests
======================
The otest directory, once checked out, contains files from both OASIS and Tuscany svn. As follows
otest/
current/ - the latest otests
src/ - the latest otest source pulled directly from OASIS svn via svn:externals
tests/ - the latest otest unit tests pulled directly from OASIS svn via svn:externals
General_Java/ - the general Java contribution pulled from Tuscany svn
src/main/ - the general Java classes pulled directly from OASIS svn via svn:externals
General - the general contribution pulled from Tuscany svn
src/main/resources - code copied from otest/current/src/resources/General
ASM_****
src/main/resources - code copied from otest/current/src/resources/AMS_****
these independent contributions are contributions with
errors in them. The rest of the top-level otest contributions
can be found in General
The code is copied from src/main/resources to the appropriate contribution each
time maven is used to compile the contribution in question. There is a build setting
in each contribution pom that does the copy.
This all seems a bit complicated but is structured like this because the OASIS tests
don't come with a build system. We want to be able to build in both maven and eclipse
in the same way as we do with the rest of our code
You will note that there are a lot of contributions and it would seem to be a big job
if we need to make changes to the build across all the contributions. However there
is an ant script that sets up the contribution modules.
otest/current/ant fixUpContributions
Creates the src/main/resource directory and copies in the pom from the template-pom.xml file
Extra dependencies that are required
ASM_8004 -> ASM_8005
|