summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-09-08 18:50:33 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2005-09-08 18:50:33 -0700
commitbc6146d2abcf3800eb3683cfe972cabd38ff4796 (patch)
tree061f79e214d9071b392d530ca83d0c12b1ba4200 /t
parentShow all merge-base candidates from show-branch --merge-base (diff)
downloadtgif-bc6146d2abcf3800eb3683cfe972cabd38ff4796.tar.xz
'build' scripts before installing.
Earlier we renamed git-foo.sh to git-foo while installing, which was mostly done by inertia than anything else. This however made writing tests to use scripts harder. This patch builds the scripts the same way as we build binaries from their sources. As a side effect, you can now specify non-standard paths you have your Perl binary is in when running the make. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t1005-read-tree-m-2way-emu23.sh2
-rwxr-xr-xt/t3200-branch.sh6
-rwxr-xr-xt/t5400-send-pack.sh6
3 files changed, 7 insertions, 7 deletions
diff --git a/t/t1005-read-tree-m-2way-emu23.sh b/t/t1005-read-tree-m-2way-emu23.sh
index 00c332a140..258a372ed7 100755
--- a/t/t1005-read-tree-m-2way-emu23.sh
+++ b/t/t1005-read-tree-m-2way-emu23.sh
@@ -25,7 +25,7 @@ In the test, these paths are used:
read_tree_twoway () {
git-read-tree --emu23 "$1" "$2" &&
git-ls-files --stage &&
- git-merge-index ../../git-merge-one-file.sh -a &&
+ git-merge-index git-merge-one-file -a &&
git-ls-files --stage
}
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 6e36398444..5f98f64de1 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -13,12 +13,12 @@ handled. Specifically, that a bogus branch is not created.
test_expect_success \
'prepare an trivial repository' \
'echo Hello > A &&
- ../../git-update-index --add A &&
- ../../git-commit.sh -m "Initial commit."'
+ git-update-index --add A &&
+ git-commit -m "Initial commit."'
test_expect_failure \
'git branch --help should return error code' \
- '../../git-branch.sh --help'
+ 'git-branch --help'
test_expect_failure \
'git branch --help should not have created a bogus branch' \
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index fb8320d755..59ce77b6b4 100755
--- a/t/t5400-send-pack.sh
+++ b/t/t5400-send-pack.sh
@@ -21,9 +21,9 @@ test_expect_success setup '
parent=$commit || return 1
done &&
echo "$commit" >.git/HEAD &&
- git-clone.sh -l ./. victim &&
+ git-clone -l ./. victim &&
cd victim &&
- git-log.sh &&
+ git-log &&
cd .. &&
echo $zero >.git/HEAD &&
parent=$zero &&
@@ -35,7 +35,7 @@ test_expect_success setup '
done &&
echo "$commit" >.git/HEAD &&
echo Rebase &&
- git-log.sh'
+ git-log'
test_expect_success \
'pushing rewound head should not barf but require --force' '