Skip to content

Commit

Permalink
out smart goofy maven
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Sep 20, 2023
1 parent 7e1a22d commit c2b4f98
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 32 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions src/test/java/org/myrobotlab/framework/DependencyTest.java
Original file line number Diff line number Diff line change
@@ -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 !");
}

}
31 changes: 0 additions & 31 deletions src/test/java/org/myrobotlab/service/OpenCVTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2b4f98

Please sign in to comment.