mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
8740a4f10f
Our current unit testing infrastructure does not make it possible to test AOT compilation pipeline end-to-end, because it does not run TFA when generating Kernel. This makes it challenging to write regression tests for certain issues. Instead we extend test runner with a capability to perform IL matching when running AOT tests. runtime/docs/infa/il_tests.md provides details on how to write such tests. TEST=manually Change-Id: I6f5220b814f4a5d8c053efacd3711df495dea404 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214961 Commit-Queue: Slava Egorov <vegorov@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
17 lines
581 B
Batchfile
17 lines
581 B
Batchfile
@echo off
|
|
REM Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
|
REM for details. All rights reserved. Use of this source code is governed by a
|
|
REM BSD-style license that can be found in the LICENSE file.
|
|
|
|
REM Script for comparing IL generated from IL tests.
|
|
|
|
set SCRIPTPATH=%~dp0
|
|
|
|
REM Does the path have a trailing slash? If so, remove it.
|
|
if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1%
|
|
|
|
set SDK_DIR=%SCRIPTPATH%/../../../
|
|
|
|
set DART=%SDK_DIR%/tools/sdks/dart-sdk/bin/dart.exe
|
|
|
|
"%DART%" %DART_VM_OPTIONS% "%SDK_DIR%/pkg/vm/bin/compare_il.dart" %*
|