mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Verbosify every command in ios_content_validation_test (#88404)
This commit is contained in:
parent
33f5ac6650
commit
563c8f43e3
@ -29,15 +29,17 @@ void main() {
|
||||
'flutter',
|
||||
);
|
||||
|
||||
processManager.runSync(<String>[
|
||||
final ProcessResult createResult = processManager.runSync(<String>[
|
||||
flutterBin,
|
||||
...getLocalEngineArguments(),
|
||||
'create',
|
||||
'--verbose',
|
||||
'--platforms=ios',
|
||||
'-i',
|
||||
'objc',
|
||||
'hello',
|
||||
], workingDirectory: tempDir.path);
|
||||
print(createResult.stdout);
|
||||
|
||||
projectRoot = tempDir.childDirectory('hello').path;
|
||||
});
|
||||
@ -57,7 +59,7 @@ void main() {
|
||||
File outputAppFrameworkBinary;
|
||||
|
||||
setUpAll(() {
|
||||
processManager.runSync(<String>[
|
||||
final ProcessResult buildResult = processManager.runSync(<String>[
|
||||
flutterBin,
|
||||
...getLocalEngineArguments(),
|
||||
'build',
|
||||
@ -68,6 +70,7 @@ void main() {
|
||||
'--obfuscate',
|
||||
'--split-debug-info=foo debug info/',
|
||||
], workingDirectory: projectRoot);
|
||||
print(buildResult.stdout);
|
||||
|
||||
buildPath = fileSystem.directory(fileSystem.path.join(
|
||||
projectRoot,
|
||||
@ -122,6 +125,7 @@ void main() {
|
||||
infoPlistPath,
|
||||
],
|
||||
);
|
||||
print(bonjourServices.stdout);
|
||||
final bool bonjourServicesFound = (bonjourServices.stdout as String).contains('_dartobservatory._tcp');
|
||||
expect(bonjourServicesFound, buildMode == BuildMode.debug);
|
||||
|
||||
@ -136,6 +140,7 @@ void main() {
|
||||
infoPlistPath,
|
||||
],
|
||||
);
|
||||
print(localNetworkUsage.stdout);
|
||||
final bool localNetworkUsageFound = localNetworkUsage.exitCode == 0;
|
||||
expect(localNetworkUsageFound, buildMode == BuildMode.debug);
|
||||
});
|
||||
@ -150,6 +155,7 @@ void main() {
|
||||
'arm64',
|
||||
],
|
||||
);
|
||||
print(symbols.stdout);
|
||||
final bool aotSymbolsFound = (symbols.stdout as String).contains('_kDartVmSnapshot');
|
||||
expect(aotSymbolsFound, buildMode != BuildMode.debug);
|
||||
});
|
||||
@ -191,6 +197,7 @@ void main() {
|
||||
// Skip bitcode stripping since we just checked that above.
|
||||
},
|
||||
);
|
||||
print(xcodeBackendResult.stdout);
|
||||
|
||||
expect(xcodeBackendResult.exitCode, 0);
|
||||
expect(outputFlutterFrameworkBinary.existsSync(), isTrue);
|
||||
@ -204,6 +211,7 @@ void main() {
|
||||
'hello',
|
||||
outputAppFrameworkBinary.path,
|
||||
]);
|
||||
print(grepResult.stdout);
|
||||
expect(grepResult.stdout, isNot(contains('matches')));
|
||||
});
|
||||
});
|
||||
@ -225,6 +233,7 @@ void main() {
|
||||
'FLUTTER_XCODE_ONLY_ACTIVE_ARCH': 'NO',
|
||||
},
|
||||
);
|
||||
print(buildSimulator.stdout);
|
||||
// This test case would fail if arm64 or x86_64 simulators could not build.
|
||||
expect(buildSimulator.exitCode, 0);
|
||||
|
||||
@ -242,6 +251,7 @@ void main() {
|
||||
final ProcessResult archs = processManager.runSync(
|
||||
<String>['file', simulatorAppFrameworkBinary.path],
|
||||
);
|
||||
print(archs.stdout);
|
||||
expect(archs.stdout, contains('Mach-O 64-bit dynamically linked shared library x86_64'));
|
||||
expect(archs.stdout, contains('Mach-O 64-bit dynamically linked shared library arm64'));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user