From 0c073269a5180a1e5a9c48551b832fc743c416cb Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Jul 1997 23:00:29 +0000 Subject: [PATCH] . --- tests/cp/backup-1 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tests/cp/backup-1 diff --git a/tests/cp/backup-1 b/tests/cp/backup-1 new file mode 100755 index 000000000..df696af38 --- /dev/null +++ b/tests/cp/backup-1 @@ -0,0 +1,22 @@ +#!/bin/sh + +: ${CP=cp} + +suffix=.b +tmp=b1.$$ +tmp_backup="$tmp$suffix" +rm -f $tmp + +set -e +echo test > $tmp || exit 1 + +$CP --force --backup --version-control=simple --suffix=$suffix $tmp $tmp \ + || exit 1 + +test $? = 0 || exit 1 + +test -f $tmp || exit 1 +test -f $tmp_backup || exit 1 +cmp $tmp $tmp_backup > /dev/null + +exit 0 -- 2.11.4.GIT