Merge branch 'PR/303' into frej/felipec-pr-spree

Closes #303
Closes #304
This commit is contained in:
Frej Drejhammar
2023-03-27 20:34:17 +02:00
4 changed files with 15 additions and 3 deletions

View File

@@ -18,4 +18,4 @@ jobs:
submodules: 'recursive'
- name: Run tests
run: ./run-tests
run: make -C t

12
t/Makefile Normal file
View File

@@ -0,0 +1,12 @@
T = $(wildcard *.t)
test: $(T)
@$(MAKE) --silent clean
$(T): clean
./$@ $(TEST_OPTS)
clean:
@rm -fr test-results
.PHONY: test $(T) clean

View File

@@ -5,7 +5,7 @@
test_description='Main tests'
. "${SHARNESS_TEST_SRCDIR-/usr/share/sharness}"/sharness.sh || exit 1
. "${SHARNESS_TEST_SRCDIR-$(dirname "$0")/sharness}"/sharness.sh || exit 1
check() {
echo "$3" > expected &&

View File

@@ -8,7 +8,7 @@
test_description='Smoke test'
. "${SHARNESS_TEST_SRCDIR-/usr/share/sharness}"/sharness.sh || exit 1
. "${SHARNESS_TEST_SRCDIR-$(dirname "$0")/sharness}"/sharness.sh || exit 1
check() {
echo "$3" > expected &&