File: unit-test

package info (click to toggle)
motion 4.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,120 kB
  • sloc: ansic: 26,435; makefile: 105; sh: 79
file content (17 lines) | stat: -rw-r--r-- 157 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

#set -e

exec 2>&1

ls /usr/bin/motion

found=$?

/usr/bin/motion -h > /dev/null 2>&1

run=$?

if [ $found -ne 0 -o $run -ne 1 ]; then
  false
fi