Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Precompilation folders
lib/.precomp
.precomp
.pod-precomp
.pod-cache

Expand All @@ -15,3 +16,6 @@ util/Grammar.nqp

# website clone for testing
doc-website

# HTML files used for manual testing
*.html
3 changes: 3 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ E: [email protected]
N: Tadeusz Sośnierz
E: [email protected]

N: Tim Nelson
E: [email protected]

N: Tim Smith
E: [email protected]

Expand Down
36 changes: 25 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
.PHONY: test xtest push help
.PHONY: test xtest push help test-mine xtest-mine

# Common tests - also run by CI
test test-mine: testlist := t
# Extended tests - should be run by authors before committing
xtest xtest-mine: testlist := t xt

test-mine xtest-mine: TEST_FILES := $(shell git ls-files --modified)
export TEST_FILES

help:
@echo "Usage: make [test|xtest|push]"
@echo ""
@echo "Options:"
@echo " test: run the basic test suite"
@echo " xtest: run all tests"
@echo " push: run the basic test suite and git push"
@echo " test: run the basic test suite"
@echo " xtest: run all tests"
@echo " test-mine: run the basic test suite on files with changes"
@echo "xtest-mine: run all tests on files with changes"
@echo " push: run the basic test suite and git push"
@echo " prep: install the prerequisites for running the tests"

# Common tests - also run by CI
test:
if [ "${TEST_JOBS}" != "" ]; then prove --ext=rakutest -j ${TEST_JOBS} -e raku t; else prove --ext=rakutest -e raku t; fi

# Extended tests - should be run by authors before committing
xtest:
if [ "${TEST_JOBS}" != "" ]; then prove --ext=rakutest -j ${TEST_JOBS} -e raku t xt; else prove --ext=rakutest -e raku t xt; fi
# Actually run the tests
test xtest test-mine xtest-mine:
ifeq ("${TEST_JOBS}", "")
RAKULIB=. prove --ext=rakutest -e raku $(testlist)
else
RAKULIB=. prove --ext=rakutest -j ${TEST_JOBS} -e raku $(testlist)
endif

push: test
git pull --rebase && git push

prep:
zef install --deps-only --exclude="dot" --/test .
Loading