Skip to content

Commit

Permalink
try windows-arm64 tests (to be squashed)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbo-linaro committed Oct 27, 2023
1 parent 92be013 commit 9be1b8f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/native_toolchain_c/test/native_toolchain/msvc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ void main() {
expect(instances.isNotEmpty, true);
});

test('clArm64', () async {
final instances = await clArm64.defaultResolver!.resolve(logger: logger);
expect(instances.isNotEmpty, true);
});

test('lib', () async {
final instances = await lib.defaultResolver!.resolve(logger: logger);
expect(instances.isNotEmpty, true);
Expand All @@ -58,6 +63,11 @@ void main() {
expect(instances.isNotEmpty, true);
});

test('libArm64', () async {
final instances = await libArm64.defaultResolver!.resolve(logger: logger);
expect(instances.isNotEmpty, true);
});

test('link', () async {
final instances = await link.defaultResolver!.resolve(logger: logger);
expect(instances.isNotEmpty, true);
Expand All @@ -68,6 +78,11 @@ void main() {
expect(instances.isNotEmpty, true);
});

test('linkArm64', () async {
final instances = await linkArm64.defaultResolver!.resolve(logger: logger);
expect(instances.isNotEmpty, true);
});

test('dumpbin', () async {
final instances = await dumpbin.defaultResolver!.resolve(logger: logger);
expect(instances.isNotEmpty, true);
Expand All @@ -82,6 +97,7 @@ void main() {
.resolve(logger: logger);
expect(instances.isNotEmpty, true);
final instance = instances.first;
expect(instance.tool, vcvars32);
final env = await envFromBat(instance.uri);
expect(env['INCLUDE'] != null, true);
expect(env['WindowsSdkDir'] != null, true); // stdio.h
Expand All @@ -96,6 +112,22 @@ void main() {
.resolve(logger: logger);
expect(instances.isNotEmpty, true);
final instance = instances.first;
expect(instance.tool, vcvars64);
final env = await envFromBat(instance.uri);
expect(env['INCLUDE'] != null, true);
expect(env['WindowsSdkDir'] != null, true); // stdio.h
});

test('vcvarsarm64 from cl.exe', () async {
final clInstances = await clArm64.defaultResolver!.resolve(logger: logger);
expect(clInstances.isNotEmpty, true);

final instances = await vcvars(clInstances.first)
.defaultResolver!
.resolve(logger: logger);
expect(instances.isNotEmpty, true);
final instance = instances.first;
expect(instance.tool, vcvarsarm64);
final env = await envFromBat(instance.uri);
expect(env['INCLUDE'] != null, true);
expect(env['WindowsSdkDir'] != null, true); // stdio.h
Expand All @@ -119,6 +151,16 @@ void main() {
expect(env['WindowsSdkDir'] != null, true); // stdio.h
});

test('vcvarsarm64', () async {
final instances =
await vcvarsarm64.defaultResolver!.resolve(logger: logger);
expect(instances.isNotEmpty, true);
final instance = instances.first;
final env = await envFromBat(instance.uri);
expect(env['INCLUDE'] != null, true);
expect(env['WindowsSdkDir'] != null, true); // stdio.h
});

test('vcvarsall', () async {
final instances = await vcvarsall.defaultResolver!.resolve(logger: logger);
expect(instances.isNotEmpty, true);
Expand Down

0 comments on commit 9be1b8f

Please sign in to comment.