mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-11-28 05:00:26 +08:00
Adds the following changes to copy tests: - print the body of the test if the test fails - add a count of how many tests passed out of the total - remove the -r flag from the tests
16 lines
368 B
Bash
Executable file
16 lines
368 B
Bash
Executable file
# copy a doubly nested directory containing a file to an existing directory
|
|
# ensure this succeeds and the new files exist and are nested in the existing directory
|
|
|
|
set -e
|
|
cd "$HOME/testcp"
|
|
mkdir foo
|
|
mkdir foo/bar
|
|
touch foo/bar/baz.txt
|
|
mkdir qux
|
|
|
|
wsh file copy foo qux
|
|
|
|
if [ ! -f qux/foo/bar/baz.txt ]; then
|
|
echo "qux/foo/bar/baz.txt does not exist"
|
|
exit 1
|
|
fi
|