Skip to content

Commit

Permalink
test: skip SIFT tests on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Aug 19, 2024
1 parent a94cf75 commit 29352b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions features2d_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package gocv

import (
"image/color"
"os"
"testing"
)

Expand Down Expand Up @@ -523,6 +524,10 @@ func TestDrawKeyPoints(t *testing.T) {
}

func TestDrawMatches(t *testing.T) {
if os.Getenv("GOOS") == "darwin" {
t.Skip("skipping test on macos")
}

queryFile := "images/box.png"
trainFile := "images/box_in_scene.png"

Expand Down Expand Up @@ -593,6 +598,10 @@ func TestDrawMatches(t *testing.T) {
}

func TestSIFT(t *testing.T) {
if os.Getenv("GOOS") == "darwin" {
t.Skip("skipping test on macos")
}

img := IMRead("./images/face.jpg", IMReadGrayScale)
if img.Empty() {
t.Error("Invalid Mat in SIFT test")
Expand Down Expand Up @@ -633,6 +642,10 @@ func TestSIFT(t *testing.T) {
}

func TestSIFTWithParams(t *testing.T) {
if os.Getenv("GOOS") == "darwin" {
t.Skip("skipping test on macos")
}

img := IMRead("./images/face.jpg", IMReadGrayScale)
if img.Empty() {
t.Error("Invalid Mat in SIFT test")
Expand Down

0 comments on commit 29352b9

Please sign in to comment.