So the tests won't depend on the location of the subcommands, in
preparation for their move to lib/bup/cmd.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
ln -sf "$(pwd)/abs-symlink-target" abs-symlink || exit $?
mkfifo fifo
mkdir -p cmd doc lib/bup || exit $?
- cp -pP "$top"/cmd/*.py cmd/ || exit $?
+ cp -pP "$top"/lib/bup/*.py lib/bup/ || exit $?
cp -pP "$top"/Documentation/*.md doc/ || exit $?
cp -pP "$top"/lib/bup/*.py lib/bup || exit $?
mkdir path-zoo || exit $?
# Test a deeper subdir/ to make sure top-level non-dir metadata is
# restored correctly. We need at least one dir and one non-dir at
# the "top-level".
- WVPASS test -d src/var/cmd
- WVPASS test -f src/var/cmd/save-cmd.py
+ WVPASS test -d src/var/lib/bup
+ WVPASS test -f src/var/lib/bup/git.py
WVPASS rm -rf "$BUP_DIR"
WVPASS bup init
WVPASS touch -t 201111111111 src-restore # Make sure the top won't match.