Skip to content

Commit dbc9056

Browse files
committed
makefile: add 'integration test' target
Add a target to the makefile the installs the required dependencies for and runs integration tests, following the example set in [1]. 1: a6ff664 Signed-off-by: Lessley Dennington <[email protected]>
1 parent 4524b9e commit dbc9056

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ APPLE_APP_IDENTITY =
2828
APPLE_INST_IDENTITY =
2929
APPLE_KEYCHAIN_PROFILE =
3030
E2E_FLAGS=
31+
INTEGRATION_FLAGS=
3132

3233
# Build targets
3334
.PHONY: build
@@ -49,6 +50,13 @@ e2e-test: build
4950
$(RM) -r $(TESTDIR)
5051
@scripts/run-e2e-tests.sh $(E2E_FLAGS)
5152

53+
.PHONY: integration-test
54+
integration-test: build
55+
@echo
56+
@echo "======== Running integration tests ========"
57+
$(RM) -r $(TESTDIR)
58+
@scripts/run-integration-tests.sh $(INTEGRATION_FLAGS)
59+
5260
# Installation targets
5361
.PHONY: install
5462
install: build doc

scripts/run-integration-tests.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
THISDIR="$( cd "$(dirname "$0")" ; pwd -P )"
4+
TESTDIR="$THISDIR/../test/integration"
5+
6+
# Exit as soon as any line fails
7+
set -e
8+
9+
cd "$TESTDIR"
10+
11+
npm install
12+
npm run test -- ${ARGS:+${ARGS[*]}}

0 commit comments

Comments
 (0)