Skip to content

Commit

Permalink
- WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed Nov 4, 2023
1 parent 3da122a commit c1ac5fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Mosa.Utility.Launcher/Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void Build()
OutputStatus("ERROR: Missing source file");
return;
}
else if (!File.Exists(MosaSettings.SourceFiles[0]))
else if (!File.Exists(FileFinder.Find(MosaSettings.SourceFiles[0], MosaSettings.SearchPaths)))
{
OutputStatus($"ERROR: File {MosaSettings.SourceFiles[0]} does not exists");
return;
Expand Down
6 changes: 6 additions & 0 deletions Source/Mosa.Utility.UnitTests/UnitTestEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ private void SetRequiredSettings()

MosaSettings.AddSourceFile($"Mosa.UnitTests.BareMetal.{MosaSettings.Platform}.dll");
MosaSettings.AddSourceFile("Mosa.UnitTests.dll");

MosaSettings.AddSearchPath(AppContext.BaseDirectory);
//MosaSettings.AddSearchPath(Environment.CurrentDirectory);
//MosaSettings.AddSearchPath(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location));

OutputStatus($"Search Folder(s): {string.Join(", ", new List<string>(MosaSettings.SearchPaths.ToArray()))}");
}

private void Initialize()
Expand Down

0 comments on commit c1ac5fc

Please sign in to comment.