Skip to content

Commit c788fe1

Browse files
authored
Add a makefile sample to run test-browser (#43382)
1 parent e549253 commit c788fe1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mono/wasm/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ TOP=$(realpath $(CURDIR)/../../..)
33

44
DOTNET=$(TOP)/dotnet.sh
55
JSVU=$(HOME)/.jsvu
6+
CHROMEDRIVER?=$(HOME)/.chromedriver
67

78
#
89
# These variables are set by wasm.proj
@@ -150,6 +151,9 @@ run-tests-jsc-%:
150151
run-tests-%:
151152
PATH="$(JSVU):$(PATH)" $(DOTNET) build $(TOP)/src/libraries/$*/tests/ /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=$(CONFIG) $(MSBUILD_ARGS)
152153

154+
run-browser-tests-%:
155+
PATH="$(CHROMEDRIVER):$(PATH)" XHARNESS_COMMAND=test-browser $(DOTNET) build $(TOP)/src/libraries/$*/tests/ /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=$(CONFIG) $(MSBUILD_ARGS)
156+
153157
run-debugger-tests:
154158
if [ ! -z "$(TEST_FILTER)" ]; then \
155159
export LC_ALL=en_US.UTF-8; \

0 commit comments

Comments
 (0)