@@ -18,6 +18,8 @@ Licensed to the Apache Software Foundation (ASF) under one or more
18
18
*/
19
19
package org .apache .batik .test .xml ;
20
20
21
+ import org .apache .commons .io .FileUtils ;
22
+
21
23
import org .apache .batik .script .rhino .RhinoClassShutter ;
22
24
import org .apache .batik .test .DefaultTestSuite ;
23
25
import org .apache .batik .test .Test ;
@@ -69,6 +71,15 @@ public static Collection<Test[]> data() throws ParserConfigurationException, SAX
69
71
}
70
72
71
73
private static Collection <Test []> getTests () throws ParserConfigurationException , IOException , SAXException , TestException {
74
+ new File ("test-references/org/apache/batik/ext/awt/geom/candidate" ).mkdir ();
75
+ new File ("test-references/org/apache/batik/ext/awt/geom/variation" ).mkdir ();
76
+ for (File file : FileUtils .listFiles (new File ("test-references" ), new String []{"png" }, true )) {
77
+ file = file .getParentFile ();
78
+ if (!file .getName ().contains ("candidate" )) {
79
+ new File (file , "candidate-variation" ).mkdir ();
80
+ new File (file , "candidate-reference" ).mkdir ();
81
+ }
82
+ }
72
83
File uriStr = new File ("test-resources/org/apache/batik/test/regard.xml" );
73
84
URL url = uriStr .toURI ().toURL ();
74
85
DocumentBuilder docBuilder
@@ -142,23 +153,8 @@ public void test() throws ParserConfigurationException, SAXException, TestExcept
142
153
}
143
154
144
155
private static List <String > EXCLUDE = Arrays .asList (
145
- //fail on CI
146
156
"ShowSVG" ,
147
- "ATransform.defaultContextGeneration" ,
148
- "Bug4945.defaultContextGeneration" ,
149
- "Bug6535.defaultContextGeneration" ,
150
- "Bug17965.defaultContextGeneration" ,
151
- "Color1.defaultContextGeneration" ,
152
- "Color2.defaultContextGeneration" ,
153
- "Gradient.defaultContextGeneration" ,
154
- "IdentityTest.defaultContextGeneration" ,
155
- "NegativeLengths.defaultContextGeneration" ,
156
- "ShearTest.defaultContextGeneration" ,
157
- "TextSpacePreserve.defaultContextGeneration" ,
158
- "BasicShapes.defaultContextGeneration" ,
159
- "TransformCollapse.defaultContextGeneration" ,
160
- "BasicShapes2.defaultContextGeneration" ,
161
- "BStroke.defaultContextGeneration" ,
157
+ "org.apache.batik.svggen.SVGAccuracyTestValidator$SameAsReferenceImage" ,
162
158
"Color1.renderingCheck" ,
163
159
"Lookup.renderingCheck" ,
164
160
"Rescale.renderingCheck" ,
@@ -600,19 +596,6 @@ public void test() throws ParserConfigurationException, SAXException, TestExcept
600
596
"jarCheckLoadSameAsDocument(scripts=application/java-archive)(scriptOrigin=document)(secure=true)" ,
601
597
"jarCheckLoadSameAsDocument(scripts=application/java-archive)(scriptOrigin=document)(secure=false)" ,
602
598
"jarCheckPermissionsGranted" ,
603
- // exclude additional failures appearing under JDK 1.8.0_152 on MacOS
604
- "Bug4389.renderingCheck" ,
605
- "Bug4389.ContextrenderingCheck" ,
606
- "Bug6535.ContextrenderingCheck" ,
607
- "Bug17965.renderingCheck" ,
608
- "Bug17965.ContextrenderingCheck" ,
609
- "IdentityTest.renderingCheck" ,
610
- "IdentityTest.ContextrenderingCheck" ,
611
- "rlm.sort" ,
612
- "rlm.containsall" ,
613
- "rlm.removeall" ,
614
- "rlm.retainall" ,
615
- "rlm.merge" ,
616
- "rlm.subtract"
599
+ "Bug6535.ContextrenderingCheck"
617
600
);
618
601
}
0 commit comments