updateTests.cmd 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. ::-------------------------------------------------------------------------------------------------------
  2. :: Copyright (C) Microsoft. All rights reserved.
  3. :: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. ::-------------------------------------------------------------------------------------------------------
  5. @echo off
  6. pushd %~dp0
  7. if not exist "%1" (
  8. echo Please provide path to a chakra host, ch or jshost.
  9. exit /b 1
  10. )
  11. if exist "wasm-spec" (
  12. rd /q /s wasm-spec
  13. )
  14. git clone --depth 1 --branch master https://github.com/WebAssembly/spec.git wasm-spec
  15. cd wasm-spec
  16. git rev-parse HEAD > ..\testsuite.rev
  17. cd ..
  18. rem Exclude comments.wast because it is intended to test wast->wasm with uncommon characters
  19. rem This is causing problems with our jenkins checks and it is not worth it to run in chakra
  20. robocopy /e /mir wasm-spec\test testsuite /xf comments.wast
  21. rd /q /s wasm-spec
  22. rem regerate testsuite
  23. cd convert-test-suite
  24. call npm install --production
  25. cd ..
  26. node convert-test-suite --rebase %*
  27. git add testsuite\*
  28. git add baselines\*
  29. echo Test updated and regenerated
  30. popd