]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
checksrc.bat: Added tests/server directory support
authorSteve Holme <steve_holme@hotmail.com>
Sun, 3 Apr 2016 20:53:32 +0000 (21:53 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 3 Apr 2016 20:57:38 +0000 (21:57 +0100)
In addition to commit 83b174b3f0 and following the recent changes.

projects/checksrc.bat

index 827127fd81c14950735e48e9aea7daf6c566b399..c9abaa4d9afa2918f1450127183f0c9ab205ba79 100644 (file)
@@ -123,6 +123,12 @@ rem ***************************************************************************
       for /f "delims=" %%i in ('dir "%SRC_DIR%\tests\unit\*.c.*" /b 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\tests\unit" "%%i"
       for /f "delims=" %%i in ('dir "%SRC_DIR%\tests\unit\*.h.*" /b 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\tests\unit" "%%i"
     )
+
+    rem Check the tests\server directory
+    if exist %SRC_DIR%\tests\server (
+      for /f "delims=" %%i in ('dir "%SRC_DIR%\tests\server\*.c.*" /b 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\tests\server" "%%i"
+      for /f "delims=" %%i in ('dir "%SRC_DIR%\tests\server\*.h.*" /b 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\tests\server" "%%i"
+    )
   )
 
   goto success