File: fcopy

package info (click to toggle)
fai 6.5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,084 kB
  • sloc: sh: 6,774; perl: 5,665; makefile: 138
file content (12 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash

set -e

. ./debian/tests/common.sh
export PATH=$PATH:/sbin
cd "$AUTOPKGTEST_TMP"

fcopy -vs $CS/files/ -t /tmp -c DEBIAN,DEMO /etc/rc.local 2>&1 && error "wrong fcopy fail"
fcopy -vs $CS/files/ -t /tmp -c FAISERVER,CLOUD /etc/rc.local
chk-file /tmp/etc/rc.local
diff $CS/files/etc/rc.local/CLOUD /tmp/etc/rc.local || error "Files are not the same."