File: ftpsync-ssl.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-- 368 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 stunnel { exec stunnel etc/default/stunnel.conf > $BATS_TEST_OWN_LOGDIR/stunnel.log 2>&1; }
}

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

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