Skip to content

Commit 97bf85d

Browse files
committed
Update recipe to test installation
1 parent de8d1bf commit 97bf85d

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tools/make/lib/deps/electron.mk

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ DEPS_ELECTRON_CHECKSUM ?= $(shell cat $(DEPS_CHECKSUMS_DIR)/$(subst .,_,$(subst
1313
# Define the output path when downloading:
1414
DEPS_ELECTRON_DOWNLOAD_OUT ?= $(DEPS_TMP_DIR)/$(deps_electron_basename)
1515

16-
# Define the path to the directory containing tests:
17-
DEPS_ELECTRON_TEST_DIR ?= $(DEPS_DIR)/test/electron
18-
19-
# Define the path to a test file for checking an installation:
20-
DEPS_ELECTRON_TEST_INSTALL ?= $(DEPS_ELECTRON_TEST_DIR)/test_install.js
21-
2216

2317
# TARGETS #
2418

@@ -73,9 +67,9 @@ deps-extract-electron: $(DEPS_ELECTRON_BUILD_OUT)
7367
#
7468
# This target tests an installation.
7569

76-
deps-test-electron: $(DEPS_ELECTRON_TEST_INSTALL)
70+
deps-test-electron: $(DEPS_ELECTRON_BUILD_OUT)/cli.js
7771
$(QUIET) echo 'Running tests...' >&2
78-
$(QUIET) $(NODE) $(DEPS_ELECTRON_TEST_INSTALL)
72+
$(QUIET) $(NODE) $< --version >&2
7973
$(QUIET) echo '' >&2
8074
$(QUIET) echo 'Success.' >&2
8175

0 commit comments

Comments
 (0)