# cannot be satisifed then the test is skipped (exit 77).
t_init() {
+ echo "--- t_init"
# Check all dependencies are present
for dep; do
case $dep in
# In fact at present, not cleanup is done; it's convenine to see what
# is left behind, for further testing.
t_done() {
+ echo "--- t_done"
cd /
# rm -rf $testdir
}
# project/subdir/subtwo
# Each file's contents will be its name (plus a newline).
t_populate() {
+ echo "--- t_populate"
cd project
echo one > one
echo two > two
# examining differences rather than making changes.
#
t_modify() {
+ echo "--- t_modify"
cd project
if [ -w one ]; then
writable=true
# in a separate client. 'copy' is updated, presumably to match 'project',
# though this is not verified.
t_update() {
+ echo "--- t_update"
cd copy
if [ `wc -l < one` != 1 ]; then
echo "'one' has unexpected length"
# Checks that .../one and .../two match in 'project' and 'copy'. Used
# by t_revert.
t_verify() {
+ echo "--- t_verify"
if diff -u project/one copy/one; then :; else exit 1; fi
if diff -u project/two copy/two; then :; else exit 1; fi
}
# This is done more than one, to test global revert and file-specific
# revert.
t_revert() {
+ echo "--- t_revert"
cd copy
x vcs -v edit one
echo extra >> one
# Tests renaming within 'project'. Currently discards eventual changes,
# which is not a very good test! TODO
t_rename() {
+ echo "--- t_rename"
cd project
x vcs -v rename one two subdir
for x in one two; do
#
# Tries to add various awkward filenames and verifies that it all works
t_awkward() {
+ echo "--- t_awkward"
cd project
echo > foo@bar
echo > foo\#bar%wibble\*spong
#
# Create a p4 client called NAME rooted at ROOT.
makep4client() {
+ echo "--- makep4client"
local NAME="$1"
local ROOT="$2"
local LOGNAME=${LOGNAME:-`whoami`}