Repository navigation
Expand file tree
/
Copy pathNumSharp.Tests.csproj
More file actions
114 lines (99 loc) · 5.04 KB
/
Copy pathNumSharp.Tests.csproj
File metadata and controls
114 lines (99 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<Platforms>AnyCPU</Platforms>
<!-- Strong-naming is set repo-wide in ../../Directory.Build.props. Signed because
NumSharp.Core grants it InternalsVisibleTo, which now names a PublicKey. -->
<Configurations>Debug;Release;Publish</Configurations>
<RootNamespace>NumSharp.Tests</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|AnyCPU'">
<DocumentationFile />
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Remove="data\**" />
<EmbeddedResource Remove="data\**" />
<None Remove="data\**" />
<None Remove="NumSharp.Bitmap\resources\odd-width.png" />
<EmbeddedResource Include="NumSharp.Bitmap\resources\odd-width.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MSTest" Version="3.8.3" />
<PackageReference Include="AwesomeAssertions" Version="9.3.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\NumSharp.Bitmap\NumSharp.Bitmap.csproj" />
<ProjectReference Include="..\..\src\NumSharp.Core\NumSharp.Core.csproj" />
<!-- The optional external-CBLAS/LAPACK engine. The differential-fuzz oracle (incl. the
host-pinned matmul_parity tier) moved to NumSharp.Tests.Oracle; this project keeps the
reference for its remaining ENGINE tests — the LAPACK factorisation gates in Backends/,
LinAlgEngineSeamTests (which asserts the NO-backend contract), and the Level-3 BLAS binding
tests. Its module initializer would install the engine for the whole test run, which must
NOT happen (every other tier asserts NumSharp's own kernels, and the seam test asserts the
backend is ABSENT), so this assembly opts out via NUMSHARP_OPENBLAS_BUNDLE_AUTOINSTALL=0 in
its own BlasEngineAutoInstallGuard and the engine tests enable it per-test instead. -->
<ProjectReference Include="..\..\src\NumSharp.Interop.OpenBLAS\NumSharp.Interop.OpenBLAS.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="data\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<!-- The differential-fuzzer oracle corpus (Fuzz/corpus/**) moved to NumSharp.Tests.Oracle. -->
<!-- .npy/.npz format oracle: real NumPy 2.4.2 output, replayed by NpyOracleTests (no Python in CI). -->
<ItemGroup>
<None Update="IO\corpus\npy_oracle.zip">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<!-- ndarray.flags / ndarray.setflags oracle: real NumPy 2.4.2 flag records + verbatim errors,
replayed by FlagsOracleTests (no Python in CI). Regenerate: python test/oracle/gen_flags_oracle.py -->
<ItemGroup>
<None Update="Backends\corpus\flags_oracle.jsonl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<!-- Layout-parity oracle: real NumPy 2.4.2 layout/strides/flags/shares/VALUES records for the
modelled numpy-internal representations (reshape nocopy-views, KEEPORDER sorts/copies, the
concat/stack stride vote, nonzero shared-buffer views, linspace owndata, read-only reduction
scalars, broadcast writeable inherit), replayed bit-exact by LayoutParityOracleTests
(no Python in CI). Regenerate: python test/oracle/gen_layout_parity_oracle.py -->
<ItemGroup>
<None Update="Backends\corpus\layout_parity_oracle.jsonl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<!-- Hand-made NumPy fixtures for NumpyCompatibilityTests / NpyFormatVersionTests. Those tests
resolve "test_compat" relative to the working directory and SKIP (silently passing) when it is
absent, so without this rule they assert nothing on a clean checkout. -->
<ItemGroup>
<None Update="test_compat\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Remove="NumSharp.Bitmap\resources\captcha-a.png" />
<None Remove="NumSharp.Bitmap\resources\captcha-b.png" />
<None Remove="NumSharp.Bitmap\resources\captcha-c.png" />
<None Remove="NumSharp.Bitmap\resources\captcha-d.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="NumSharp.Bitmap\resources\captcha-a.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="NumSharp.Bitmap\resources\captcha-b.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="NumSharp.Bitmap\resources\captcha-c.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="NumSharp.Bitmap\resources\captcha-d.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
</Project>