test(cli): add android target triple test

This commit is contained in:
LongYinan 2021-12-24 11:39:53 +08:00
parent db40b6a874
commit c25cfc5773
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 21 additions and 1 deletions

View file

@ -1,6 +1,6 @@
const configuration = {
extensions: ['ts', 'tsx'],
files: ['examples/**/__test__/**/*.spec.ts'],
files: ['cli/**/*.spec.ts', 'examples/**/__test__/**/*.spec.ts'],
require: ['ts-node/register/transpile-only'],
environmentVariables: {
TS_NODE_PROJECT: './examples/tsconfig.json',

View file

@ -93,6 +93,26 @@ const triples = [
raw: 'armv7-unknown-linux-gnueabihf',
} as const,
},
{
name: 'aarch64-linux-android',
expected: {
abi: null,
arch: 'arm64',
platform: 'android',
platformArchABI: 'android-arm64',
raw: 'aarch64-linux-android',
},
} as const,
{
name: 'armv7-linux-androideabi',
expected: {
abi: 'eabi',
arch: 'arm',
platform: 'android',
platformArchABI: 'android-arm-eabi',
raw: 'armv7-linux-androideabi',
},
} as const,
]
for (const triple of triples) {