summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2019-08-12 12:14:43 +0200
committerRich Trott <rtrott@gmail.com>2019-08-16 16:23:33 -0700
commita890771cd0a31bda055fc71741ace7822bc678dd (patch)
tree95ea01fd6f36ff1e8c80dac772d1b44b0c8044b4 /vcbuild.bat
parent7195cd6fb30519271b09b437d0045d9cc8418a37 (diff)
downloadandroid-node-v8-a890771cd0a31bda055fc71741ace7822bc678dd.tar.gz
android-node-v8-a890771cd0a31bda055fc71741ace7822bc678dd.tar.bz2
android-node-v8-a890771cd0a31bda055fc71741ace7822bc678dd.zip
build: add a testclean target
This commit adds a target named testclean to allow for cleaning the temporary files generated during a test run without having to use the clean target. PR-URL: https://github.com/nodejs/node/pull/29094 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 9c3151be88..6897e0a6f8 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -69,6 +69,7 @@ if "%1"=="" goto args-done
if /i "%1"=="debug" set config=Debug&goto arg-ok
if /i "%1"=="release" set config=Release&set ltcg=1&set cctest=1&goto arg-ok
if /i "%1"=="clean" set target=Clean&goto arg-ok
+if /i "%1"=="testclean" set target=TestClean&goto arg-ok
if /i "%1"=="ia32" set target_arch=x86&goto arg-ok
if /i "%1"=="x86" set target_arch=x86&goto arg-ok
if /i "%1"=="x64" set target_arch=x64&goto arg-ok
@@ -200,6 +201,13 @@ if "%target%"=="Clean" echo deleting %~dp0deps\icu
if "%target%"=="Clean" rmdir /S /Q %~dp0deps\icu
:no-depsicu
+if "%target%"=="TestClean" (
+ echo deleting test/.tmp*
+ if exist "test\.tmp*" for /f %%i in ('dir /a:d /s /b test\.tmp*') do rmdir /S /Q "%%i"
+ goto exit
+)
+
+
call tools\msvs\find_python.cmd
if errorlevel 1 goto :exit