[PATCH] Make the test more shell generic and fix missing Solaris find option
This is from Peter Eriksen, but further fixed. Signed-off-by: Junio C Hamano <junkio@cox.net>
Peter Eriksen committed
Sep 24, 2005 at 21:50 UTC
edde7a8b5324d88f07fcb8204da313c19b4988fa
3 files changed
+4
-3
Makefile
+1
-1
@@ -253,7 +253,7 @@ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
253
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
254
gitk
255
256
-export TAR INSTALL DESTDIR
256
+export TAR INSTALL DESTDIR SHELL_PATH
257
### Build rules
258
259
all: $(PROGRAMS) $(SCRIPTS)
t/Makefile
+2
-1
@@ -4,11 +4,12 @@
4
#
5
6
#GIT_TEST_OPTS=--verbose --debug
7
+SHELL_PATH ?= $(SHELL)
8
9
T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
10
11
all:
11
- @$(foreach t,$T,echo "*** $t ***"; sh $t $(GIT_TEST_OPTS) || exit; )
12
+ @$(foreach t,$T,echo "*** $t ***"; $(SHELL_PATH) $t $(GIT_TEST_OPTS) || exit; )
13
@rm -fr trash
14
15
clean:
t/t0000-basic.sh
+1
-1
@@ -85,7 +85,7 @@ do
85
done
86
test_expect_success \
87
'adding various types of objects with git-update-index --add.' \
88
- 'find path* ! -type d -print0 | xargs -0 git-update-index --add'
88
+ 'find path* ! -type d -print | xargs git-update-index --add'
89
90
# Show them and see that matches what we expect.
91
test_expect_success \