Skip to content

Commit

Permalink
add parallel option
Browse files Browse the repository at this point in the history
  • Loading branch information
louisabraham committed Jun 5, 2024
1 parent 46bb52b commit c9296ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ SHELL=bash
BATS_SUPPORT_VERSION=0.3.0
BATS_ASSERT_VERSION=2.1.0
BATS = bats/bin/bats

JOBS ?= $(BATS_JOBS)
JOBS ?= 1

all: check-cli/ALL

Expand Down Expand Up @@ -57,8 +58,7 @@ assert-SCRIPT_CALL:
@[[ -n "${SCRIPT_CALL}" ]] || { >&2 echo "ERROR: SCRIPT_CALL is not specified"; exit 1; }

check-api: assert-SCRIPT_CALL assert-bats
cd tests-api && $(BATS) *.bats

cd tests-api && $(BATS) --jobs $(JOBS) *.bats
## FIXME: How do I use node/npm so it finds the 'seguid' module?
check-api/seguid-javascript: update-submodules
$(MAKE) check-api NODE_PATH="$(shell pwd)/$(@F)" SCRIPT_CALL="node" SCRIPT_PREAMBLE="const { seguid, lsseguid, ldseguid, csseguid, cdseguid } = require('seguid'); async function print(x) { try { const result = await x; console.log(result); } catch (error) { console.error(error); } }" SCRIPT_PRINT_FMT="print(%s)" SCRIPT_ARGS_SEP=", "
Expand Down

0 comments on commit c9296ac

Please sign in to comment.