Skip to content

Commit db5a693

Browse files
authored
Add imgaug tests for contrib workflows (#65)
1 parent d6a415d commit db5a693

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

.github/workflows/OCV-Contrib-PR-4.x-ARM64.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ jobs:
187187
timeout-minutes: 60
188188
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
189189
run: cd $HOME/build && xvfb-run -a bin/opencv_test_img_hash --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=${{ env.PARALLEL_JOBS }}
190+
- name: Accuracy:img_aug
191+
timeout-minutes: 60
192+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
193+
run: |
194+
cd $HOME/build
195+
if [[ -f bin/opencv_test_imgaug ]]; then
196+
xvfb-run -a bin/opencv_test_imgaug --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=${{ env.PARALLEL_JOBS }}
197+
else
198+
echo "No Augmentation module"
199+
fi
190200
- name: Accuracy:imgcodecs
191201
timeout-minutes: 60
192202
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}

.github/workflows/OCV-Contrib-PR-4.x-U20.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,16 @@ jobs:
191191
timeout-minutes: 60
192192
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
193193
run: cd $HOME/build && xvfb-run -a bin/opencv_test_img_hash --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=${{ env.PARALLEL_JOBS }}
194+
- name: Accuracy:img_aug
195+
timeout-minutes: 60
196+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
197+
run: |
198+
cd $HOME/build
199+
if [[ -f bin/opencv_test_imgaug ]]; then
200+
xvfb-run -a bin/opencv_test_imgaug --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=${{ env.PARALLEL_JOBS }}
201+
else
202+
echo "No Augmentation module"
203+
fi
194204
- name: Accuracy:imgcodecs
195205
timeout-minutes: 60
196206
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}

.github/workflows/OCV-Contrib-PR-4.x-W10.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ jobs:
183183
timeout-minutes: 60
184184
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
185185
run: cd ${{ github.workspace }}\build && bin\opencv_test_img_hash.exe --skip_unstable --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=%PARALLEL_JOBS%
186+
- name: Accuracy:imgaug
187+
timeout-minutes: 60
188+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
189+
run: |
190+
cd ${{ github.workspace }}\build
191+
if exist bin\opencv_test_imgaug.exe (bin\opencv_test_imgaug.exe --skip_unstable --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=%PARALLEL_JOBS%) else (echo "No Augmentation module")
186192
- name: Accuracy:imgcodecs
187193
timeout-minutes: 60
188194
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}

.github/workflows/OCV-Contrib-PR-4.x-macOS-ARM64.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,16 @@ jobs:
199199
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
200200
run: ./bin/opencv_test_img_hash --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=$PARALLEL_JOBS
201201
working-directory: ${{ github.workspace }}/build
202+
- name: Accuracy:img_aug
203+
timeout-minutes: 60
204+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
205+
run: |
206+
if [[ -f bin/opencv_test_imgaug ]]; then
207+
./bin/opencv_test_imgaug --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=${{ env.PARALLEL_JOBS }}
208+
else
209+
echo "No Augmentation module"
210+
fi
211+
working-directory: ${{ github.workspace }}/build
202212
- name: Accuracy:imgcodecs
203213
timeout-minutes: 60
204214
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}

.github/workflows/OCV-Contrib-PR-4.x-macOS-x86_64.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,16 @@ jobs:
200200
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
201201
run: ./bin/opencv_test_img_hash --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=$PARALLEL_JOBS
202202
working-directory: ${{ github.workspace }}/build
203+
- name: Accuracy:img_aug
204+
timeout-minutes: 60
205+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
206+
run: |
207+
if [[ -f bin/opencv_test_imgaug ]]; then
208+
./bin/opencv_test_imgaug --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=${{ env.PARALLEL_JOBS }}
209+
else
210+
echo "No Augmentation module"
211+
fi
212+
working-directory: ${{ github.workspace }}/build
203213
- name: Accuracy:imgcodecs
204214
timeout-minutes: 60
205215
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}

0 commit comments

Comments
 (0)