File: ftpsync-plain.bats

package info (click to toggle)
archvsync 20180513
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 244 kB
  • sloc: sh: 883; makefile: 80
file content (21 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bats

load helper

setup() {
  setup_dirs
  coproc rsyncd { exec rsync --daemon --no-detach --config etc/default/rsyncd.conf --log-file $BATS_TEST_OWN_LOGDIR/rsyncd.log; }
}

teardown() {
  local pid=$rsyncd_PID
  if [[ $pid ]]; then
    kill -15 $pid || :
    wait $pid || :
  fi
}

@test "run ftpsync using plain transport" {
  run_ftpsync sync:archive:plain
  [[ $status -eq 0 ]]
}