Merge pull request #26 from remicollet/issue-skip

fix tests skip condition
This commit is contained in:
goodspb
2020-06-20 20:28:51 +08:00
committed by GitHub
2 changed files with 11 additions and 4 deletions
+5 -2
View File
@@ -1,7 +1,10 @@
--TEST-- --TEST--
Frontal face detection. Frontal face detection.
--SKIPIF-- --SKIPIF--
<?php if (!extension_loaded("pdlib") print "skip"; ?> <?php
if (!extension_loaded("pdlib")) die('skip pdlib extension missing');
if (getenv("SKIP_SLOW_TESTS")) die('skip slow test');
?>
--FILE-- --FILE--
<?php <?php
printf("Simple detection\n"); printf("Simple detection\n");
@@ -25,4 +28,4 @@ Faces found = 1
Face[0] in bounding box (left=214, top=194, right=393, bottom=373) Face[0] in bounding box (left=214, top=194, right=393, bottom=373)
Detection with upsampling Detection with upsampling
Faces found = 1 Faces found = 1
Face[0] in bounding box (left=201, top=180, right=386, bottom=366) Face[0] in bounding box (left=201, top=180, right=386, bottom=366)
+6 -2
View File
@@ -1,7 +1,11 @@
--TEST-- --TEST--
Full test for face recognition - download models, detect faces, landmark detection and face recognition. Full test for face recognition - download models, detect faces, landmark detection and face recognition.
--SKIPIF-- --SKIPIF--
<?php if (!extension_loaded("pdlib") || (function_exists("bzopen"))) print "skip"; ?> <?php
if (!extension_loaded("pdlib")) die('skip pdlib extension missing');
if (!function_exists("bzopen")) die('skip bz2 extension missing');
if (getenv("SKIP_ONLINE_TESTS")) die('skip online test');
?>
--FILE-- --FILE--
<?php <?php
$models = array( $models = array(
@@ -57,4 +61,4 @@ Detection
Faces found = 1 Faces found = 1
Face[0] in bounding box (left=187, top=186, right=357, bottom=355) Face[0] in bounding box (left=187, top=186, right=357, bottom=355)
Since we used model with 5 shape predictions, we found 5 landmark parts Since we used model with 5 shape predictions, we found 5 landmark parts
Descriptor is vector of 128 dimensions Descriptor is vector of 128 dimensions