From a7010cd742b7cc49f2cd6db8bb1d5b4d57b47c61 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 1 Sep 2015 13:55:54 -0700 Subject: [PATCH 1/2] Add `make script.ps1` target for easy testing Use like `make src/pester-tests/Test-Split-Path.Tests.ps1` --- scripts/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Makefile b/scripts/Makefile index 723e453f30..a92147ba97 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -181,6 +181,10 @@ run-interactive: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-relea run-file: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-release-clr exec_env/app_base/runps.sh --file $(PSSCRIPT) +# easy way to run individual PowerShell scripts, `make script.ps1` where the path is relative from monad-linux +%.ps1: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-release-clr + TEMP=/tmp exec_env/app_base/runps.sh --file ../../../$@ + run-debugclr: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-debug-clr PAL_DBG_CHANNELS="+LOADER.TRACE" exec_env/app_base/runps-simple.sh get-location From 8c80840d69cfdd693b425e397b7179c220a5fdf8 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 1 Sep 2015 14:08:04 -0700 Subject: [PATCH 2/2] Make path relative to monad-linux/scripts Since that's where the Makefile lives --- scripts/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile b/scripts/Makefile index a92147ba97..174a68bd0e 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -181,9 +181,9 @@ run-interactive: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-relea run-file: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-release-clr exec_env/app_base/runps.sh --file $(PSSCRIPT) -# easy way to run individual PowerShell scripts, `make script.ps1` where the path is relative from monad-linux +# easy way to run individual PowerShell scripts, `make script.ps1` where the path is relative to monad-linux/scripts (with TEMP set for Pester) %.ps1: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-release-clr - TEMP=/tmp exec_env/app_base/runps.sh --file ../../../$@ + TEMP=/tmp exec_env/app_base/runps.sh --file ../../$@ run-debugclr: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-debug-clr PAL_DBG_CHANNELS="+LOADER.TRACE" exec_env/app_base/runps-simple.sh get-location