Unverified Commit 563c8f43 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Verbosify every command in ios_content_validation_test (#88404)

parent 33f5ac66
...@@ -29,15 +29,17 @@ void main() { ...@@ -29,15 +29,17 @@ void main() {
'flutter', 'flutter',
); );
processManager.runSync(<String>[ final ProcessResult createResult = processManager.runSync(<String>[
flutterBin, flutterBin,
...getLocalEngineArguments(), ...getLocalEngineArguments(),
'create', 'create',
'--verbose',
'--platforms=ios', '--platforms=ios',
'-i', '-i',
'objc', 'objc',
'hello', 'hello',
], workingDirectory: tempDir.path); ], workingDirectory: tempDir.path);
print(createResult.stdout);
projectRoot = tempDir.childDirectory('hello').path; projectRoot = tempDir.childDirectory('hello').path;
}); });
...@@ -57,7 +59,7 @@ void main() { ...@@ -57,7 +59,7 @@ void main() {
File outputAppFrameworkBinary; File outputAppFrameworkBinary;
setUpAll(() { setUpAll(() {
processManager.runSync(<String>[ final ProcessResult buildResult = processManager.runSync(<String>[
flutterBin, flutterBin,
...getLocalEngineArguments(), ...getLocalEngineArguments(),
'build', 'build',
...@@ -68,6 +70,7 @@ void main() { ...@@ -68,6 +70,7 @@ void main() {
'--obfuscate', '--obfuscate',
'--split-debug-info=foo debug info/', '--split-debug-info=foo debug info/',
], workingDirectory: projectRoot); ], workingDirectory: projectRoot);
print(buildResult.stdout);
buildPath = fileSystem.directory(fileSystem.path.join( buildPath = fileSystem.directory(fileSystem.path.join(
projectRoot, projectRoot,
...@@ -122,6 +125,7 @@ void main() { ...@@ -122,6 +125,7 @@ void main() {
infoPlistPath, infoPlistPath,
], ],
); );
print(bonjourServices.stdout);
final bool bonjourServicesFound = (bonjourServices.stdout as String).contains('_dartobservatory._tcp'); final bool bonjourServicesFound = (bonjourServices.stdout as String).contains('_dartobservatory._tcp');
expect(bonjourServicesFound, buildMode == BuildMode.debug); expect(bonjourServicesFound, buildMode == BuildMode.debug);
...@@ -136,6 +140,7 @@ void main() { ...@@ -136,6 +140,7 @@ void main() {
infoPlistPath, infoPlistPath,
], ],
); );
print(localNetworkUsage.stdout);
final bool localNetworkUsageFound = localNetworkUsage.exitCode == 0; final bool localNetworkUsageFound = localNetworkUsage.exitCode == 0;
expect(localNetworkUsageFound, buildMode == BuildMode.debug); expect(localNetworkUsageFound, buildMode == BuildMode.debug);
}); });
...@@ -150,6 +155,7 @@ void main() { ...@@ -150,6 +155,7 @@ void main() {
'arm64', 'arm64',
], ],
); );
print(symbols.stdout);
final bool aotSymbolsFound = (symbols.stdout as String).contains('_kDartVmSnapshot'); final bool aotSymbolsFound = (symbols.stdout as String).contains('_kDartVmSnapshot');
expect(aotSymbolsFound, buildMode != BuildMode.debug); expect(aotSymbolsFound, buildMode != BuildMode.debug);
}); });
...@@ -191,6 +197,7 @@ void main() { ...@@ -191,6 +197,7 @@ void main() {
// Skip bitcode stripping since we just checked that above. // Skip bitcode stripping since we just checked that above.
}, },
); );
print(xcodeBackendResult.stdout);
expect(xcodeBackendResult.exitCode, 0); expect(xcodeBackendResult.exitCode, 0);
expect(outputFlutterFrameworkBinary.existsSync(), isTrue); expect(outputFlutterFrameworkBinary.existsSync(), isTrue);
...@@ -204,6 +211,7 @@ void main() { ...@@ -204,6 +211,7 @@ void main() {
'hello', 'hello',
outputAppFrameworkBinary.path, outputAppFrameworkBinary.path,
]); ]);
print(grepResult.stdout);
expect(grepResult.stdout, isNot(contains('matches'))); expect(grepResult.stdout, isNot(contains('matches')));
}); });
}); });
...@@ -225,6 +233,7 @@ void main() { ...@@ -225,6 +233,7 @@ void main() {
'FLUTTER_XCODE_ONLY_ACTIVE_ARCH': 'NO', 'FLUTTER_XCODE_ONLY_ACTIVE_ARCH': 'NO',
}, },
); );
print(buildSimulator.stdout);
// This test case would fail if arm64 or x86_64 simulators could not build. // This test case would fail if arm64 or x86_64 simulators could not build.
expect(buildSimulator.exitCode, 0); expect(buildSimulator.exitCode, 0);
...@@ -242,6 +251,7 @@ void main() { ...@@ -242,6 +251,7 @@ void main() {
final ProcessResult archs = processManager.runSync( final ProcessResult archs = processManager.runSync(
<String>['file', simulatorAppFrameworkBinary.path], <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 x86_64'));
expect(archs.stdout, contains('Mach-O 64-bit dynamically linked shared library arm64')); expect(archs.stdout, contains('Mach-O 64-bit dynamically linked shared library arm64'));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment