You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
646 B
Bash
37 lines
646 B
Bash
14 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Renaming a file should show up as a rename in the review.
|
||
|
|
||
|
set -e
|
||
|
|
||
|
. ./test-lib.sh
|
||
|
|
||
|
setup_initsvn
|
||
|
setup_gitsvn
|
||
|
|
||
|
(
|
||
|
set -e
|
||
|
cd git-svn
|
||
|
git config rietveld.server localhost:8080
|
||
|
|
||
|
# Create a branch, rename a file, upload it.
|
||
|
git checkout -q -b rename
|
||
|
git mv test test2
|
||
|
git commit -q -m "renamed"
|
||
14 years ago
|
export EDITOR=$(which true)
|
||
14 years ago
|
test_expect_success "upload succeeds" \
|
||
14 years ago
|
"$GIT_CL upload -m test master | grep -q 'Issue created'"
|
||
14 years ago
|
|
||
|
# Look at the uploaded patch and verify it is a rename patch.
|
||
|
echo "Rename test not fully implemented yet. :("
|
||
|
exit 1
|
||
|
)
|
||
|
|
||
|
SUCCESS=$?
|
||
|
|
||
|
cleanup
|
||
|
|
||
|
if [ $SUCCESS == 0 ]; then
|
||
|
echo PASS
|
||
|
fi
|