-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
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,3 @@ | ||
[submodule "ArcPrototype"] | ||
path = tests/fixtures/ArcPrototype | ||
url = https://git.nfdi4plants.org/muehlhaus/ArcPrototype.git |
File renamed without changes.
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,12 @@ | ||
module GitSubmoduleTests | ||
|
||
open System | ||
open System.IO | ||
open Xunit | ||
|
||
[<Fact>] | ||
let ``ArcPrototype commit hash is correct`` () = | ||
Assert.Equal( | ||
ReferenceObjects.expected_prototype_commit_hash, | ||
TestObjects.prototypeCommitHash | ||
) |
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,5 @@ | ||
module ReferenceObjects | ||
|
||
open System.IO | ||
|
||
let expected_prototype_commit_hash = "2635598d9ea365c7ce545a9f279cca39af3de5df" |
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,5 @@ | ||
module TestObjects | ||
|
||
let prototypeCommitHashOutput = TestUtils.getCommitHash "../../../fixtures/ArcPrototype" | ||
|
||
let prototypeCommitHash = prototypeCommitHashOutput.Result.Output.TrimStart().TrimEnd() |
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,16 @@ | ||
module TestUtils | ||
|
||
open System | ||
open System.IO | ||
open type System.Environment | ||
open Fake.Core | ||
|
||
let runTool (tool: string) (args: string []) (dir:string) = | ||
CreateProcess.fromRawCommand tool args | ||
|> CreateProcess.withWorkingDirectory dir | ||
|> CreateProcess.redirectOutput | ||
|> Proc.run | ||
|
||
let getCommitHash path = | ||
let output = runTool "git" [|"rev-parse"; "HEAD"|] path | ||
output |
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
Submodule ArcPrototype
added at
263559