-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parallel Build and Unit Testing + Improved Unit Test Engine (#1065)
* - Parallelized build and test * - Fix * - Fix * - Fix * - Fix * - name: Set net7.0 uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' * - Fix * - Fix * - Fix * - Fix * - Fix * - Fix * - Fix * - Fix * - Fix * - Fix * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Improved UnitTest Engine * - Updated builds.yml * - Updated builds.yml * - Updated builds.yml
- Loading branch information
Showing
13 changed files
with
700 additions
and
498 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) MOSA Project. Licensed under the New BSD License. | ||
|
||
using System.Diagnostics; | ||
|
||
namespace Mosa.Compiler.Common | ||
{ | ||
public class WatchDog | ||
{ | ||
private Stopwatch watch = new Stopwatch(); | ||
|
||
public long TimeOutMilliseconds = 0; | ||
|
||
public bool IsTimedOut => watch.ElapsedMilliseconds > TimeOutMilliseconds; | ||
|
||
public WatchDog(long timeOutMilliseconds) | ||
{ | ||
TimeOutMilliseconds = timeOutMilliseconds; | ||
watch.Start(); | ||
} | ||
|
||
public void Restart() | ||
{ | ||
watch.Restart(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.