[vm/ffi] Fuchsia FFI testing package
This does not include enabling the FFI on Fuchsia. So these tests will fail without the dependent CL. This CL adds an `all_positive.dart` test file to be packaged in the .far file, such that it is easier to run all FFI tests in one go. We don't run tests on the bots, but we do build this test package on the bots. To build the .far files locally: ``` tools/build.py --os=fuchsia -m debug fuchsia_ffi_test_package tools/build.py --os=fuchsia -m debug -a arm64 fuchsia_ffi_test_package ``` Issue: https://github.com/dart-lang/sdk/issues/44434 Change-Id: Iec418e0c10d77afbf811fb83151664bcc2710b99 Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175484 Reviewed-by: Liam Appelbe <liama@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
cae99dc82d
commit
550d580d5e
@@ -6,7 +6,7 @@ import 'dart:ffi';
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
String _platformPath(String name, String path) {
|
||||
if (Platform.isLinux || Platform.isAndroid)
|
||||
if (Platform.isLinux || Platform.isAndroid || Platform.isFuchsia)
|
||||
return path + "lib" + name + ".so";
|
||||
if (Platform.isMacOS) return path + "lib" + name + ".dylib";
|
||||
if (Platform.isWindows) return path + name + ".dll";
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'dart:ffi';
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
String _platformPath(String name, String path) {
|
||||
if (Platform.isLinux || Platform.isAndroid)
|
||||
if (Platform.isLinux || Platform.isAndroid || Platform.isFuchsia)
|
||||
return path + "lib" + name + ".so";
|
||||
if (Platform.isMacOS) return path + "lib" + name + ".dylib";
|
||||
if (Platform.isWindows) return path + name + ".dll";
|
||||
|
||||
Reference in New Issue
Block a user