File: smoke

package info (click to toggle)
rdiff-backup 2.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,640 kB
  • sloc: python: 24,129; javascript: 9,512; sh: 1,230; ansic: 580; makefile: 36
file content (18 lines) | stat: -rwxr-xr-x 549 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -ex

# dep8 smoke test for rdiff-backup
# Author: Otto Kekäläinen <otto@debian.org>
#
# This very simple test just checks that the binary starts and prints out
# the usual complaint:
#   Fatal Error: No arguments given
#   See the rdiff-backup manual page for more information.

if rdiff-backup --print-statistics 2>&1 | grep -qF 'rdiff-backup: error: Action backup requires 2 location(s) instead of [].'
then
  echo "Basic smoke test passed"
else
  echo "Error: Basic smoke test failed, rdiff-backup might not even run"
  exit 1
fi