From c2b4f984698adf3ec42d085423f9168bc618896d Mon Sep 17 00:00:00 2001 From: grog Date: Wed, 20 Sep 2023 11:06:46 -0700 Subject: [PATCH] out smart goofy maven --- .github/workflows/build.yml | 4 ++- .../myrobotlab/framework/DependencyTest.java | 13 ++++++++ .../org/myrobotlab/service/OpenCVTest.java | 31 ------------------- 3 files changed, 16 insertions(+), 32 deletions(-) create mode 100644 src/test/java/org/myrobotlab/framework/DependencyTest.java diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60e40fb403..4a6324d3d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,5 +15,7 @@ jobs: with: java-version: '11' distribution: 'adopt' + - name: Dependency Test + run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest - name: Build with Maven - run: mvn --batch-mode --fail-fast -Dtest=!**/OpenCV* test -q + run: mvn --batch-mode -Dtest=!**/OpenCV* test -q diff --git a/src/test/java/org/myrobotlab/framework/DependencyTest.java b/src/test/java/org/myrobotlab/framework/DependencyTest.java new file mode 100644 index 0000000000..4d264d9852 --- /dev/null +++ b/src/test/java/org/myrobotlab/framework/DependencyTest.java @@ -0,0 +1,13 @@ +package org.myrobotlab.framework; + +import org.junit.Test; +import org.myrobotlab.test.AbstractTest; + +public class DependencyTest extends AbstractTest { + + @Test + public void test() { + System.out.println("dependencies were successful !"); + } + +} diff --git a/src/test/java/org/myrobotlab/service/OpenCVTest.java b/src/test/java/org/myrobotlab/service/OpenCVTest.java index 458cfef8ad..c821a47c02 100644 --- a/src/test/java/org/myrobotlab/service/OpenCVTest.java +++ b/src/test/java/org/myrobotlab/service/OpenCVTest.java @@ -95,37 +95,6 @@ public static void setUpBeforeClass() throws Exception { long ts = System.currentTimeMillis(); cv = (OpenCV) Runtime.start("cv", "OpenCV"); - /* - * - * log. - * warn("========= OpenCVTest - setupbefore class - started cv {} ms =========" - * , System.currentTimeMillis()-ts ); ts = System.currentTimeMillis(); log. - * warn("========= OpenCVTest - setupbefore class - starting capture =========" - * ); cv.capture(TEST_LOCAL_FACE_FILE_JPEG); log. - * warn("========= OpenCVTest - setupbefore class - started capture {} ms =========" - * , System.currentTimeMillis()-ts ); ts = System.currentTimeMillis(); log. - * warn("========= OpenCVTest - setupbefore class - starting getFaceDetect =========" - * ); cv.getFaceDetect(120000);// two minute wait to load all libraries log. - * warn("========= OpenCVTest - setupbefore class - started getFaceDetect {} ms =========" - * , System.currentTimeMillis()-ts ); ts = System.currentTimeMillis(); log. - * warn("========= OpenCVTest - setupbefore class - starting getClassifications =========" - * ); cv.reset(); OpenCVFilter yoloFilter = cv.addFilter("yolo"); // - * cv.getClassifications(120000); cv.capture(TEST_LOCAL_FACE_FILE_JPEG); - * log. - * warn("========= OpenCVTest - setupbefore class - started getClassifications {} ms =========" - * , System.currentTimeMillis()-ts ); - * - * ts = System.currentTimeMillis(); log. - * warn("========= OpenCVTest - setupbefore class - starting getOpenCVData =========" - * ); - * - * cv.reset(); cv.capture(TEST_LOCAL_MP4); cv.getOpenCVData(); log. - * warn("========= OpenCVTest - setupbefore class - started getOpenCVData {} ms =========" - * , System.currentTimeMillis()-ts ); cv.disableAll(); // if (!isHeadless()) - * { - no longer needed I believe - SwingGui now handles it - * - * // } - */ } // FIXME - do the following test