File: smoke

package info (click to toggle)
rdiff-backup 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,544 kB
  • sloc: python: 23,652; javascript: 9,512; sh: 1,118; ansic: 580; makefile: 36
file content (26 lines) | stat: -rwxr-xr-x 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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

if rdiff-backup --version | grep -q 'DEV'
then
  echo "Error: Version is 'DEV'"
  exit 1
else
  echo "Version test passed"
fi