File: run-unit-test

package info (click to toggle)
facedetect 0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 424 kB
  • sloc: python: 205; sh: 7; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/bin/sh -e

if [ `for img in /usr/share/doc/facedetect/examples/*.jpg ; do if [ "$(facedetect $img 2>/dev/null)" != "" ] ; then echo $img ; fi ; done` = "/usr/share/doc/facedetect/examples/grace_hopper_512x512.jpg" ] ; then
  echo "Test passed"
else
  echo "Test failed"
  exit 1
fi