8000 Added a test task. · devandroid/chruby@b10f181 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b10f181

Browse files
committed
Added a test task.
1 parent 84cff28 commit b10f181

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ clean:
3232

3333
all: $(PKG) $(SIG)
3434

35+
test:
36+
SHELL=`which bash` ./test/runner
37+
SHELL=`which zsh` ./test/runner
38+
3539
tag:
3640
git push
3741
git tag -s -m "Tagging $(VERSION)" v$(VERSION)
@@ -49,4 +53,4 @@ uninstall:
4953
for file in $(INSTALL_FILES); do rm -f $(PREFIX)/$$file; done
5054
rm -rf $(DOC_DIR)
5155

52-
.PHONY: build sign clean tag release install uninstall all
56+
.PHONY: build sign clean test tag release install uninstall all

test/runner

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ function log() {
66
fi
77
}
88

9-
SHELLS=(bash zsh)
9+
log "Running tests under $SHELL ..."
1010

11-
for shell in ${SHELLS[@]}; do
12-
log "Running tests under $shell ..."
13-
14-
for test in $(dirname $0)/*_test.sh; do
15-
$shell $test
16-
done
11+
for test in $(dirname $0)/*_test.sh; do
12+
$SHELL $test
1713
done

0 commit comments

Comments
 (0)
0