Trying new method of organizing tests so path's are system independent.
This commit is contained in:
parent
04cb27d596
commit
08ef6a3a51
@ -10,7 +10,7 @@ namespace RecrownedGTK.Tests {
|
||||
using (StreamReader reader = new StreamReader(Utilities.ReadEmbeddedFile("RecrownedGTK.Graphics.Render.Shaders.default.vert"))) {
|
||||
content = reader.ReadToEnd();
|
||||
}
|
||||
Assert.AreEqual(content, File.ReadAllText("RecrownedGTK.Tests/assets/default.vert"));
|
||||
Assert.AreEqual(File.ReadAllText("assets/default.vert").Replace("\r", ""), content.Replace("\r", ""));
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,12 @@
|
||||
#!/bin/sh
|
||||
#Tests
|
||||
mkdir -p TestFiles
|
||||
TestFiles/NUnit.Runners/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe "RecrownedGTK.Tests/RecrownedGTK.Tests.csproj" "RecrownedGTK.Tools.Tests/RecrownedGTK.Tools.Tests.csproj" --result=nunit3 --work="TestFiles"
|
||||
cd RecrownedGTK.Tests
|
||||
TestFiles/NUnit.Runners/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe "RecrownedGTK.Tests.csproj" --result=nunit3 --work="TestFiles"
|
||||
cd ..
|
||||
mv TestFiles/nunit3 TestFiles/RecrownedGTK.Tests
|
||||
|
||||
cd RecrownedGTK.Tools.Tests
|
||||
TestFiles/NUnit.Runners/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe "RecrownedGTK.Tools.Tests.csproj" --result=nunit3 --work="TestFiles"
|
||||
cd ..
|
||||
mv TestFiles/nunit3 TestFiles/RecrownedGTK.Tools.Tests
|
Loading…
Reference in New Issue
Block a user