diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 8 | ||||
-rw-r--r-- | test/plugin_bootstrap.mk | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile index 4f715a3..ba612fa 100644 --- a/test/Makefile +++ b/test/Makefile @@ -11,6 +11,14 @@ APP_TO_CLEAN = $(subst -,_,$(patsubst clean-%,%,$@)) ERL = erl +A0 -noinput -boot start_clean +# Platform, condensed version. + +ifeq ($(shell uname -o),Msys) + PLATFORM = msys2 +else + PLATFORM = unix +endif + # OTP master, for downloading files for testing. OTP_MASTER = https://raw.githubusercontent.com/erlang/otp/master diff --git a/test/plugin_bootstrap.mk b/test/plugin_bootstrap.mk index 42ce932..b927a92 100644 --- a/test/plugin_bootstrap.mk +++ b/test/plugin_bootstrap.mk @@ -90,11 +90,22 @@ bootstrap-rel: build clean-bootstrap-rel $t test -f $(APP)/ebin/$(APP)_sup.beam $i "Check that the release was generated" +ifeq ($(PLATFORM),msys2) + $t test -f $(APP)/_rel/$(APP)_release/bin/$(APP)_release.cmd +else $t test -f $(APP)/_rel/$(APP)_release/bin/$(APP)_release +endif $i "Check that the release can be started and stopped" +ifeq ($(PLATFORM),msys2) + $t $(APP)/_rel/$(APP)_release/bin/$(APP)_release.cmd install $v + $t $(APP)/_rel/$(APP)_release/bin/$(APP)_release.cmd start $v + $t $(APP)/_rel/$(APP)_release/bin/$(APP)_release.cmd stop $v + $t $(APP)/_rel/$(APP)_release/bin/$(APP)_release.cmd uninstall $v +else $t $(APP)/_rel/$(APP)_release/bin/$(APP)_release start $v $t $(APP)/_rel/$(APP)_release/bin/$(APP)_release stop $v +endif $i "Check that there's no erl_crash.dump file" $t test ! -f $(APP)/_rel/$(APP)_release/erl_crash.dump |