Skip to content

[android] build and run LIT-based tests on x64 #229

Open
@weliveindetail

Description

@weliveindetail

The Swift SDK contains components that use the LLVM Integrated Tester, e.g. swift-corelibs-xctest

Tests in swift-corelibs-xctest are implemented in Swift, so we have to make the Swift Runtime available on the emulator. The lit.cfg in swift-corelibs-xctest seems to allow us to inject SWIFT_EXEC, SWIFT_FLAGS and FOUNDATION_BUILT_PRODUCTS_DIR as environment variables. There are special cases for Windows already, we might have to add some upstream for Android.

LIT tests have end-to-end character: Test conditions and behavior is described in text files that are parsed from Python. RUN lines invoke executables and pass arguments, so the command-line is the interface to the code under test here.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions