Skip to content

Commit bee54e4

Browse files
committed
C#: Add desktop runtime dependencies integration test.
1 parent 996f535 commit bee54e4

File tree

5 files changed

+245
-0
lines changed

5 files changed

+245
-0
lines changed
Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
| [...]/Humanizer.dll |
2+
| [...]/Microsoft.Bcl.AsyncInterfaces.dll |
3+
| [...]/Microsoft.Build.Framework.dll |
4+
| [...]/Microsoft.Build.dll |
5+
| [...]/Microsoft.CSharp.dll |
6+
| [...]/Microsoft.CodeAnalysis.CSharp.Workspaces.dll |
7+
| [...]/Microsoft.CodeAnalysis.CSharp.dll |
8+
| [...]/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll |
9+
| [...]/Microsoft.CodeAnalysis.VisualBasic.dll |
10+
| [...]/Microsoft.CodeAnalysis.Workspaces.dll |
11+
| [...]/Microsoft.CodeAnalysis.dll |
12+
| [...]/Microsoft.NET.StringTools.dll |
13+
| [...]/Microsoft.VisualBasic.Core.dll |
14+
| [...]/Microsoft.VisualBasic.dll |
15+
| [...]/Microsoft.Win32.Primitives.dll |
16+
| [...]/Microsoft.Win32.Registry.dll |
17+
| [...]/Microsoft.Win32.SystemEvents.dll |
18+
| [...]/Mono.Posix.NETStandard.dll |
19+
| [...]/Newtonsoft.Json.dll |
20+
| [...]/Semmle.Autobuild.CSharp.dll |
21+
| [...]/Semmle.Autobuild.Shared.dll |
22+
| [...]/Semmle.Extraction.CSharp.DependencyFetching.dll |
23+
| [...]/Semmle.Extraction.CSharp.Driver.dll |
24+
| [...]/Semmle.Extraction.CSharp.Standalone.dll |
25+
| [...]/Semmle.Extraction.CSharp.Util.dll |
26+
| [...]/Semmle.Extraction.CSharp.dll |
27+
| [...]/Semmle.Extraction.dll |
28+
| [...]/Semmle.Util.dll |
29+
| [...]/System.AppContext.dll |
30+
| [...]/System.Buffers.dll |
31+
| [...]/System.Collections.Concurrent.dll |
32+
| [...]/System.Collections.Immutable.dll |
33+
| [...]/System.Collections.NonGeneric.dll |
34+
| [...]/System.Collections.Specialized.dll |
35+
| [...]/System.Collections.dll |
36+
| [...]/System.ComponentModel.Annotations.dll |
37+
| [...]/System.ComponentModel.DataAnnotations.dll |
38+
| [...]/System.ComponentModel.EventBasedAsync.dll |
39+
| [...]/System.ComponentModel.Primitives.dll |
40+
| [...]/System.ComponentModel.TypeConverter.dll |
41+
| [...]/System.ComponentModel.dll |
42+
| [...]/System.Composition.AttributedModel.dll |
43+
| [...]/System.Composition.Convention.dll |
44+
| [...]/System.Composition.Hosting.dll |
45+
| [...]/System.Composition.Runtime.dll |
46+
| [...]/System.Composition.TypedParts.dll |
47+
| [...]/System.Configuration.ConfigurationManager.dll |
48+
| [...]/System.Configuration.dll |
49+
| [...]/System.Console.dll |
50+
| [...]/System.Core.dll |
51+
| [...]/System.Data.Common.dll |
52+
| [...]/System.Data.DataSetExtensions.dll |
53+
| [...]/System.Data.dll |
54+
| [...]/System.Diagnostics.Contracts.dll |
55+
| [...]/System.Diagnostics.Debug.dll |
56+
| [...]/System.Diagnostics.DiagnosticSource.dll |
57+
| [...]/System.Diagnostics.EventLog.dll |
58+
| [...]/System.Diagnostics.FileVersionInfo.dll |
59+
| [...]/System.Diagnostics.Process.dll |
60+
| [...]/System.Diagnostics.StackTrace.dll |
61+
| [...]/System.Diagnostics.TextWriterTraceListener.dll |
62+
| [...]/System.Diagnostics.Tools.dll |
63+
| [...]/System.Diagnostics.TraceSource.dll |
64+
| [...]/System.Diagnostics.Tracing.dll |
65+
| [...]/System.Drawing.Common.dll |
66+
| [...]/System.Drawing.Primitives.dll |
67+
| [...]/System.Drawing.dll |
68+
| [...]/System.Dynamic.Runtime.dll |
69+
| [...]/System.Formats.Asn1.dll |
70+
| [...]/System.Formats.Tar.dll |
71+
| [...]/System.Globalization.Calendars.dll |
72+
| [...]/System.Globalization.Extensions.dll |
73+
| [...]/System.Globalization.dll |
74+
| [...]/System.IO.Compression.Brotli.dll |
75+
| [...]/System.IO.Compression.FileSystem.dll |
76+
| [...]/System.IO.Compression.ZipFile.dll |
77+
| [...]/System.IO.Compression.dll |
78+
| [...]/System.IO.FileSystem.AccessControl.dll |
79+
| [...]/System.IO.FileSystem.DriveInfo.dll |
80+
| [...]/System.IO.FileSystem.Primitives.dll |
81+
| [...]/System.IO.FileSystem.Watcher.dll |
82+
| [...]/System.IO.FileSystem.dll |
83+
| [...]/System.IO.IsolatedStorage.dll |
84+
| [...]/System.IO.MemoryMappedFiles.dll |
85+
| [...]/System.IO.Pipelines.dll |
86+
| [...]/System.IO.Pipes.AccessControl.dll |
87+
| [...]/System.IO.Pipes.dll |
88+
| [...]/System.IO.UnmanagedMemoryStream.dll |
89+
| [...]/System.IO.dll |
90+
| [...]/System.Linq.Expressions.dll |
91+
| [...]/System.Linq.Parallel.dll |
92+
| [...]/System.Linq.Queryable.dll |
93+
| [...]/System.Linq.dll |
94+
| [...]/System.Memory.dll |
95+
| [...]/System.Net.Http.Json.dll |
96+
| [...]/System.Net.Http.dll |
97+
| [...]/System.Net.HttpListener.dll |
98+
| [...]/System.Net.Mail.dll |
99+
| [...]/System.Net.NameResolution.dll |
100+
| [...]/System.Net.NetworkInformation.dll |
101+
| [...]/System.Net.Ping.dll |
102+
| [...]/System.Net.Primitives.dll |
103+
| [...]/System.Net.Quic.dll |
104+
| [...]/System.Net.Requests.dll |
105+
| [...]/System.Net.Security.dll |
106+
| [...]/System.Net.ServicePoint.dll |
107+
| [...]/System.Net.Sockets.dll |
108+
| [...]/System.Net.WebClient.dll |
109+
| [...]/System.Net.WebHeaderCollection.dll |
110+
| [...]/System.Net.WebProxy.dll |
111+
| [...]/System.Net.WebSockets.Client.dll |
112+
| [...]/System.Net.WebSockets.dll |
113+
| [...]/System.Net.dll |
114+
| [...]/System.Numerics.Vectors.dll |
115+
| [...]/System.Numerics.dll |
116+
| [...]/System.ObjectModel.dll |
117+
| [...]/System.Private.CoreLib.dll |
118+
| [...]/System.Private.DataContractSerialization.dll |
119+
| [...]/System.Private.Uri.dll |
120+
| [...]/System.Private.Xml.Linq.dll |
121+
| [...]/System.Private.Xml.dll |
122+
| [...]/System.Reflection.DispatchProxy.dll |
123+
| [...]/System.Reflection.Emit.ILGeneration.dll |
124+
| [...]/System.Reflection.Emit.Lightweight.dll |
125+
| [...]/System.Reflection.Emit.dll |
126+
| [...]/System.Reflection.Extensions.dll |
127+
| [...]/System.Reflection.Metadata.dll |
128+
| [...]/System.Reflection.MetadataLoadContext.dll |
129+
| [...]/System.Reflection.Primitives.dll |
130+
| [...]/System.Reflection.TypeExtensions.dll |
131+
| [...]/System.Reflection.dll |
132+
| [...]/System.Resources.Reader.dll |
133+
| [...]/System.Resources.ResourceManager.dll |
134+
| [...]/System.Resources.Writer.dll |
135+
| [...]/System.Runtime.CompilerServices.Unsafe.dll |
136+
| [...]/System.Runtime.CompilerServices.VisualC.dll |
137+
| [...]/System.Runtime.Extensions.dll |
138+
| [...]/System.Runtime.Handles.dll |
139+
| [...]/System.Runtime.InteropServices.JavaScript.dll |
140+
| [...]/System.Runtime.InteropServices.RuntimeInformation.dll |
141+
| [...]/System.Runtime.InteropServices.dll |
142+
| [...]/System.Runtime.Intrinsics.dll |
143+
| [...]/System.Runtime.Loader.dll |
144+
| [...]/System.Runtime.Numerics.dll |
145+
| [...]/System.Runtime.Serialization.Formatters.dll |
146+
| [...]/System.Runtime.Serialization.Json.dll |
147+
| [...]/System.Runtime.Serialization.Primitives.dll |
148+
| [...]/System.Runtime.Serialization.Xml.dll |
149+
| [...]/System.Runtime.Serialization.dll |
150+
| [...]/System.Runtime.dll |
151+
| [...]/System.Security.AccessControl.dll |
152+
| [...]/System.Security.Claims.dll |
153+
| [...]/System.Security.Cryptography.Algorithms.dll |
154+
| [...]/System.Security.Cryptography.Cng.dll |
155+
| [...]/System.Security.Cryptography.Csp.dll |
156+
| [...]/System.Security.Cryptography.Encoding.dll |
157+
| [...]/System.Security.Cryptography.OpenSsl.dll |
158+
| [...]/System.Security.Cryptography.Primitives.dll |
159+
| [...]/System.Security.Cryptography.ProtectedData.dll |
160+
| [...]/System.Security.Cryptography.X509Certificates.dll |
161+
| [...]/System.Security.Cryptography.dll |
162+
| [...]/System.Security.Permissions.dll |
163+
| [...]/System.Security.Principal.Windows.dll |
164+
| [...]/System.Security.Principal.dll |
165+
| [...]/System.Security.SecureString.dll |
166+
| [...]/System.Security.dll |
167+
| [...]/System.ServiceModel.Web.dll |
168+
| [...]/System.ServiceProcess.dll |
169+
| [...]/System.Text.Encoding.CodePages.dll |
170+
| [...]/System.Text.Encoding.Extensions.dll |
171+
| [...]/System.Text.Encoding.dll |
172+
| [...]/System.Text.Encodings.Web.dll |
173+
| [...]/System.Text.Json.dll |
174+
| [...]/System.Text.RegularExpressions.dll |
175+
| [...]/System.Threading.Channels.dll |
176+
| [...]/System.Threading.Overlapped.dll |
177+
| [...]/System.Threading.Tasks.Dataflow.dll |
178+
| [...]/System.Threading.Tasks.Extensions.dll |
179+
| [...]/System.Threading.Tasks.Parallel.dll |
180+
| [...]/System.Threading.Tasks.dll |
181+
| [...]/System.Threading.Thread.dll |
182+
| [...]/System.Threading.ThreadPool.dll |
183+
| [...]/System.Threading.Timer.dll |
184+
| [...]/System.Threading.dll |
185+
| [...]/System.Transactions.Local.dll |
186+
| [...]/System.Transactions.dll |
187+
| [...]/System.ValueTuple.dll |
188+
| [...]/System.Web.HttpUtility.dll |
189+
| [...]/System.Web.dll |
190+
| [...]/System.Windows.Extensions.dll |
191+
| [...]/System.Windows.dll |
192+
| [...]/System.Xml.Linq.dll |
193+
| [...]/System.Xml.ReaderWriter.dll |
194+
| [...]/System.Xml.Serialization.dll |
195+
| [...]/System.Xml.XDocument.dll |
196+
| [...]/System.Xml.XPath.XDocument.dll |
197+
| [...]/System.Xml.XPath.dll |
198+
| [...]/System.Xml.XmlDocument.dll |
199+
| [...]/System.Xml.XmlSerializer.dll |
200+
| [...]/System.Xml.dll |
201+
| [...]/System.dll |
202+
| [...]/WindowsBase.dll |
203+
| [...]/mscorlib.dll |
204+
| [...]/netstandard.dll |
205+
| [...]/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll |
206+
| [...]/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll |
207+
| [...]/zh-Hant/Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll |
208+
| [...]/zh-Hant/Microsoft.CodeAnalysis.VisualBasic.resources.dll |
209+
| [...]/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll |
210+
| [...]/zh-Hant/Microsoft.CodeAnalysis.resources.dll |
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import csharp
2+
3+
private string getPath(Assembly a) {
4+
not a.getCompilation().getOutputAssembly() = a and
5+
exists(string s | s = a.getFile().getAbsolutePath() |
6+
result =
7+
"[...]" +
8+
s.substring(s.indexOf("test-db/working/") + "test-db/working/".length() + 16 +
9+
"/packages".length(), s.length())
10+
or
11+
exists(string sub | sub = "csharp/tools/" + ["osx64", "linux64"] |
12+
result = "[...]" + s.substring(s.indexOf(sub) + sub.length(), s.length())
13+
)
14+
or
15+
result = s and
16+
not exists(s.indexOf(["test-db/working/", "csharp/tools/"]))
17+
)
18+
}
19+
20+
from Assembly a
21+
select getPath(a)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Program
2+
{
3+
static void Main(string[] args)
4+
{
5+
}
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.101"
4+
}
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from create_database_utils import *
2+
3+
run_codeql_database_create([], lang="csharp", extra_args=["--build-mode=none"])

0 commit comments

Comments
 (0)