Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only disable the failing rendering tests for windows #1843

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/org.eclipse.birt.target/BIRT Chart Test.launch
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.birt.chart.tests"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true&#13;&#10;-Dbirt.rendering.tests.enabled=true"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="org.eclipse.birt.branding.birt_all_in_one"/>
<booleanAttribute key="run_in_ui_thread" value="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.birt.report.tests.chart"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true&#13;&#10;-Dbirt.rendering.tests.enabled=true"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
<booleanAttribute key="run_in_ui_thread" value="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.apache.batik.transcoder.TranscoderInput;
import org.apache.batik.transcoder.TranscoderOutput;
import org.apache.batik.transcoder.image.PNGTranscoder;
import org.junit.Ignore;

import junit.framework.TestCase;
import utility.ImageUtil;
Expand Down Expand Up @@ -59,10 +58,9 @@ public ImageOutputBaseTest(File file, String dirName, String filename, String wo
}

@Override
@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void runTest() throws Throwable {

if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import org.eclipse.birt.chart.model.type.impl.BarSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;
import org.eclipse.core.runtime.Platform;

/**
* Regression description:
Expand Down Expand Up @@ -117,9 +117,9 @@ public Regression_101855() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_101855() throws Exception {
if (Boolean.TRUE) {
if (Platform.getOS().equals(Platform.WS_WIN32)) {
// https://github.com/eclipse-birt/birt/issues/1828
return;
}
Regression_101855 st = new Regression_101855();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
import org.eclipse.birt.chart.model.type.impl.AreaSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -115,9 +116,8 @@ public Regression_131308() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_131308() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_131308 st = new Regression_131308();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
import org.eclipse.birt.chart.model.type.impl.BarSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -118,9 +119,8 @@ public Regression_133237() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_133237() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_133237 st = new Regression_133237();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@
import org.eclipse.birt.chart.model.type.impl.BarSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import com.ibm.icu.util.ULocale;

import utility.ImageUtil;

/**
* Regression description:
* </p>
Expand Down Expand Up @@ -128,9 +129,8 @@ public Regression_134309() {
ULocale.setDefault(new ULocale("en_US"));
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_134309() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_134309 st = new Regression_134309();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
import org.eclipse.birt.chart.model.type.impl.PieSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -113,12 +114,11 @@ public Regression_134885() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_134885() throws Exception {
if (Boolean.TRUE) {
return;
}
if (!"true".equals(System.getProperty("testOnCentos"))) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_134885 st = new Regression_134885();
assertTrue(st.compareImages(GOLDEN, OUTPUT));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
import org.eclipse.birt.chart.model.type.impl.BarSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -120,9 +121,8 @@ public Regression_137166() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_137166() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_137166 st = new Regression_137166();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
import org.eclipse.birt.chart.model.type.impl.BarSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -114,9 +115,8 @@ public Regression_142689() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_142689() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_142689 st = new Regression_142689();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
import org.eclipse.birt.chart.model.type.impl.PieSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -107,9 +108,8 @@ public Regression_155185() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_155185() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_155185 st = new Regression_155185();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
import org.eclipse.birt.chart.model.type.impl.BarSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -117,9 +120,8 @@ public Regression_76910() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_76910() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_76910 st = new Regression_76910();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
import org.eclipse.birt.chart.model.type.impl.BarSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -118,9 +119,8 @@ public Regression_76963() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_76963() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_76963 st = new Regression_76963();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
import org.eclipse.birt.chart.model.type.impl.BarSeriesImpl;
import org.eclipse.birt.chart.util.PluginSettings;
import org.eclipse.birt.report.tests.chart.ChartTestCase;
import org.junit.Ignore;

import utility.ImageUtil;

/**
* Regression description:
Expand Down Expand Up @@ -119,9 +120,8 @@ public Regression_98257() {
}
}

@Ignore("https://github.com/eclipse-birt/birt/issues/1828")
public void test_regression_98257() throws Exception {
if (Boolean.TRUE) {
if (!ImageUtil.isRenderingTestApplicable()) {
return;
}
Regression_98257 st = new Regression_98257();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import javax.imageio.ImageIO;
import javax.swing.GrayFilter;

import org.eclipse.core.runtime.Platform;

/*
* Perform operations on images and image files: read, save, compare etc.
*/
Expand Down Expand Up @@ -185,6 +187,13 @@ public static Image loadImageFromFile(String filename) throws IOException {
return ImageIO.read(new File(filename));
}

/**
* @see https://github.com/eclipse-birt/birt/issues/1828
*/
public static boolean isRenderingTestApplicable() {
return !Platform.getOS().equals(Platform.WS_WIN32) || Boolean.getBoolean("birt.rendering.tests.enabled");
}

public static void main(String[] args) throws IOException {
Image ic = compare("C:\\8\\golden.jpg", "C:\\8\\actual.jpg");
System.out.println("Match: " + (ic == null));
Expand Down
Loading