Skip to content

Commit 9a2e045

Browse files
authored
Fix microbenchmarks input files (dotnet#1142)
1 parent ca80d8e commit 9a2e045

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.gitattributes

+8-9
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
*.md text working-tree-encoding=utf-8 git-encoding=utf-8 eol=lf
33
*.sh text eol=lf
44

5-
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/knucleotide-input-big.txt text eol=lf
6-
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/knucleotide-input.txt text eol=lf
7-
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/regexdna-input25.txt text eol=lf
8-
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/regexdna-input25000.txt text eol=lf
9-
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/revcomp-input25.txt text eol=lf
10-
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/revcomp-input25000.txt text eol=lf
11-
src/benchmarks/micro/corefx/System.IO.Compression/TestData/sum text eol=lf
12-
src/benchmarks/micro/corefx/System.IO.Compression/TestData/alice29.txt text eol=lf
13-
src/benchmarks/micro/corefx/System.Text.RegularExpressions/content/200_000.in text eol=lf
5+
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/knucleotide-input-big.txt text eol=lf
6+
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/knucleotide-input.txt text eol=lf
7+
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/regexdna-input25.txt text eol=lf
8+
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/regexdna-input25000.txt text eol=lf
9+
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/revcomp-input25.txt text eol=lf
10+
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/revcomp-input25000.txt text eol=lf
11+
src/benchmarks/micro/libraries/System.IO.Compression/TestData/sum text eol=lf
12+
src/benchmarks/micro/libraries/System.IO.Compression/TestData/alice29.txt text eol=lf

src/benchmarks/micro/libraries/System.IO.Compression/CompressedFile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public CompressedFile(string fileName, CompressionLevel compressionLevel, Func<S
3535
internal static string GetFilePath(string fileName)
3636
=> Path.Combine(
3737
Path.GetDirectoryName(typeof(CompressedFile).Assembly.Location),
38-
"corefx", "System.IO.Compression", "TestData",
38+
"libraries", "System.IO.Compression", "TestData",
3939
fileName);
4040
}
4141
}

src/benchmarks/micro/libraries/System.Net.Http/Configuration.Certificates.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static class Certificates
1919

2020
private static X509Certificate2 GetCertificate(string certificateFileName)
2121
=> new X509Certificate2(
22-
File.ReadAllBytes(Path.Combine("corefx", "System.Net.Http", certificateFileName)),
22+
File.ReadAllBytes(Path.Combine("libraries", "System.Net.Http", certificateFileName)),
2323
CertificatePassword,
2424
X509KeyStorageFlags.DefaultKeySet);
2525
}

src/benchmarks/micro/runtime/BenchmarksGame/Inputs/InputFileHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ internal static string FindInputFile(string inputFile)
2020
internal static int GetFileLength(string filePath) => (int) new FileInfo(filePath).Length;
2121

2222
private static string GetFullPath(string fileName)
23-
=> Path.Combine(Path.GetDirectoryName(typeof(InputFileHelper).Assembly.Location), "coreclr", "BenchmarksGame", "Inputs", fileName);
23+
=> Path.Combine(Path.GetDirectoryName(typeof(InputFileHelper).Assembly.Location), "runtime", "BenchmarksGame", "Inputs", fileName);
2424
}
2525
}

0 commit comments

Comments
 (0)