|
42 | 42 | </target> |
43 | 43 |
|
44 | 44 | <target name="exec-examples" description="executes sample programs"> |
45 | | - <ant antfile="../restsql-sdk/build.xml" target="exec-examples" /> |
| 45 | + <ant antfile="../restsql-sdk/build.xml" target="exec-examples" inheritall="false" /> |
46 | 46 | </target> |
47 | 47 |
|
48 | 48 | <target name="test-api" depends="compile-tests" description="exercises junit tests for java api"> |
|
56 | 56 | <classpath path="${test-exec.classpath}" /> |
57 | 57 | <formatter type="xml" /> |
58 | 58 | <batchtest todir="${api-test.dir}"> |
59 | | - <fileset dir="src" includes="**/*Test.*" excludes="**/Base*.*" /> |
| 59 | + <fileset dir="src" includes="**/*Test.*" excludes="**/Base*.*,org/restsql/security/**" /> |
| 60 | + </batchtest> |
| 61 | + </junit> |
| 62 | + </target> |
| 63 | + |
| 64 | + <target name="test-api-security" depends="compile-tests" description="exercises security junit tests for java api"> |
| 65 | + <!-- Create output dir --> |
| 66 | + <delete dir="${api-test.dir}" /> |
| 67 | + <mkdir dir="${api-test.dir}" /> |
| 68 | + |
| 69 | + <!-- Execute tests --> |
| 70 | + <junit fork="true" showoutput="true" printsummary="true" tempdir="${api-test.dir}" dir="${basedir}"> |
| 71 | + <sysproperty key="org.restsql.properties" value="${org.restsql.properties}" /> |
| 72 | + <classpath path="${test-exec.classpath}" /> |
| 73 | + <formatter type="xml" /> |
| 74 | + <batchtest todir="${api-test.dir}"> |
| 75 | + <fileset dir="src" includes="org/restsql/security/*Test.*,org/restsql/security/impl/*Test.*" excludes="**/Base*.*" /> |
60 | 76 | </batchtest> |
61 | 77 | </junit> |
62 | 78 | </target> |
|
78 | 94 |
|
79 | 95 | <target name="test-service-http" description="executes all test cases for the http interface"> |
80 | 96 | <antcall target="-test-service"> |
81 | | - <param name="testStyle" value="http" /> |
82 | | - <param name="testList" value="%" /> |
| 97 | + <param name="style" value="http" /> |
| 98 | + <param name="scope" value="all" /> |
| 99 | + <param name="exclude" value="Security" /> |
| 100 | + </antcall> |
| 101 | + </target> |
| 102 | + |
| 103 | + <target name="test-service-http-security" description="executes security test cases for the http interface"> |
| 104 | + <antcall target="-test-service"> |
| 105 | + <param name="style" value="http" /> |
| 106 | + <param name="scope" value="Security" /> |
| 107 | + <param name="exclude" value="none" /> |
83 | 108 | </antcall> |
84 | 109 | </target> |
85 | 110 |
|
86 | 111 | <target name="test-service-http-subset" description="executes some of test cases for the http interface"> |
87 | 112 | <antcall target="-test-service"> |
88 | | - <param name="testStyle" value="http" /> |
89 | | - <param name="testList" value="${test.list}" /> |
| 113 | + <param name="style" value="http" /> |
| 114 | + <param name="scope" value="${test.list}" /> |
| 115 | + <param name="exclude" value="none" /> |
90 | 116 | </antcall> |
91 | 117 | </target> |
92 | 118 |
|
93 | | - <target name="test-service-java" description="executes all test cases for the service's java interface"> |
| 119 | + <target name="test-service-java" description="executes all test cases for the service's java interface, excluding security"> |
94 | 120 | <antcall target="-test-service"> |
95 | | - <param name="testStyle" value="java" /> |
96 | | - <param name="testList" value="%" /> |
| 121 | + <param name="style" value="java" /> |
| 122 | + <param name="scope" value="all" /> |
| 123 | + <param name="exclude" value="Security" /> |
97 | 124 | </antcall> |
98 | 125 | </target> |
99 | 126 |
|
100 | 127 | <target name="test-service-java-subset" description="executes some test cases for the service's java interface"> |
101 | 128 | <antcall target="-test-service"> |
102 | | - <param name="testStyle" value="java" /> |
103 | | - <param name="testList" value="${test.list}" /> |
| 129 | + <param name="style" value="java" /> |
| 130 | + <param name="scope" value="${test.list}" /> |
| 131 | + <param name="exclude" value="none" /> |
104 | 132 | </antcall> |
105 | 133 | </target> |
106 | 134 |
|
107 | 135 | <target name="-test-service" depends="compile-tests"> |
108 | 136 | <java fork="true" classpath="${test-exec.classpath}" classname="org.restsql.service.ServiceTestRunner" dir="${basedir}"> |
109 | | - <arg value="${testStyle}" /> |
110 | | - <arg value="${testList}" /> |
| 137 | + <arg value="${style}" /> |
| 138 | + <arg value="${scope}" /> |
| 139 | + <arg value="${exclude}" /> |
111 | 140 | <jvmarg value="-Dorg.restsql.baseUri=${org.restsql.baseUri}" /> |
112 | 141 | <jvmarg value="-Dorg.restsql.properties=${org.restsql.properties}" /> |
113 | 142 | </java> |
|
0 commit comments