Skip to content

Commit

Permalink
GNUmakefile: Unify test targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
madewokherd committed Apr 20, 2024
1 parent 7ca3376 commit 9829c70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@
/build.log
/usr/
/wine-build.zip
/.wine-test-prefix
12 changes: 3 additions & 9 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -218,21 +218,15 @@ clean-tests:
clean: clean-tests

test: tests image
$(MAKE) test-nobuild

test-nobuild: build/removeuserinstalls-x86.exe
WINEPREFIX=$(BUILDDIR_ABS)/.wine-test-prefix $(WINE) reg add 'HKCU\Software\Wine\WineDbg' /v ShowCrashDialog /t REG_DWORD /d 0 /f
WINEPREFIX=$(BUILDDIR_ABS)/.wine-test-prefix $(MAKE) dev-setup
$(RM_F) test-output.txt
WINEPREFIX=$(BUILDDIR_ABS)/.wine-test-prefix $(WINE) explorer /desktop=wine-mono-test cmd /c '$(shell $(WINE) winepath -w $(TESTS_OUTDIR)/run-tests.exe) >test-output.txt 2>&1'
! grep -q 'The following tests failed but were not in fail-list:' test-output.txt

test-nobuild: build/removeuserinstalls-x86.exe
WINEPREFIX=$(SRCDIR_ABS)/.wine-test-prefix $(WINE) reg add 'HKCU\Software\Wine\WineDbg' /v ShowCrashDialog /t REG_DWORD /d 0 /f
$(WINE) build/removeuserinstalls-x86.exe -a
$(WINE) msiexec /i '$(shell $(WINE) winepath -w $(SRCDIR)/wine-mono-$(MSI_VERSION)-x86.msi)'
$(RM_F) test-output.txt
WINEPREFIX=$(SRCDIR_ABS)/.wine-test-prefix $(WINE) explorer /desktop=wine-mono-test cmd /c '$(shell $(WINE) winepath -w $(SRCDIR)/tests/run-tests.exe) >test-output.txt 2>&1'
! grep -q 'The following tests failed but were not in fail-list:' test-output.txt


clean-build-test-prefix:
-WINEPREFIX=$(BUILDDIR_ABS)/.wine-test-prefix wineserver -k
rm -rf $(BUILDDIR)/.wine-test-prefix
Expand Down

0 comments on commit 9829c70

Please sign in to comment.