updateTests.cmd 1020 B

12345678910111213141516171819202122232425262728293031
  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. robocopy /e /mir wasm-spec\test testsuite
  19. rd /q /s wasm-spec
  20. rem regerate testsuite
  21. cd convert-test-suite
  22. call npm install --production
  23. cd ..
  24. node convert-test-suite --rebase %*
  25. git add testsuite\*
  26. git add testsuite-bin\*
  27. git add baseline\*
  28. echo Test updated and regerated, don't forget to update baselines
  29. popd