@@ -146,6 +146,30 @@ void main() {
146
146
expect (logger.traceText, contains ('Local engine source at /arbitrary/engine/src' ));
147
147
});
148
148
149
+ testWithoutContext ('works if local engine is host engine with suffixes' , () async {
150
+ final FileSystem fileSystem = MemoryFileSystem .test ();
151
+ final Directory localEngine = fileSystem
152
+ .directory ('$kArbitraryEngineRoot /src/out/host_debug_unopt_arm64/' )
153
+ ..createSync (recursive: true );
154
+
155
+ final BufferLogger logger = BufferLogger .test ();
156
+ final LocalEngineLocator localEngineLocator = LocalEngineLocator (
157
+ fileSystem: fileSystem,
158
+ flutterRoot: 'flutter/flutter' ,
159
+ logger: logger,
160
+ userMessages: UserMessages (),
161
+ platform: FakePlatform (environment: < String , String > {}),
162
+ );
163
+
164
+ expect (
165
+ await localEngineLocator.findEnginePath (null , localEngine.path, null ),
166
+ matchesEngineBuildPaths (
167
+ hostEngine: '/arbitrary/engine/src/out/host_debug_unopt_arm64' ,
168
+ targetEngine: '/arbitrary/engine/src/out/host_debug_unopt_arm64' ,
169
+ ),
170
+ );
171
+ });
172
+
149
173
testWithoutContext ('fails if host_debug does not exist' , () async {
150
174
final FileSystem fileSystem = MemoryFileSystem .test ();
151
175
final Directory localEngine = fileSystem
0 commit comments