@@ -20,17 +20,24 @@ public class TargetingPackTests
20
20
private readonly string _expectedRid ;
21
21
private readonly string _targetingPackRoot ;
22
22
private readonly ITestOutputHelper _output ;
23
+ private readonly bool _isTargetingPackBuilding ;
23
24
24
25
public TargetingPackTests ( ITestOutputHelper output )
25
26
{
26
27
_output = output ;
27
28
_expectedRid = TestData . GetSharedFxRuntimeIdentifier ( ) ;
28
29
_targetingPackRoot = Path . Combine ( TestData . GetTestDataValue ( "TargetingPackLayoutRoot" ) , "packs" , "Microsoft.AspNetCore.App.Ref" , TestData . GetTestDataValue ( "TargetingPackVersion" ) ) ;
30
+ _isTargetingPackBuilding = bool . Parse ( TestData . GetTestDataValue ( "IsTargetingPackBuilding" ) ) ;
29
31
}
30
32
31
- [ Fact ( Skip = "https://github.com/aspnet/AspNetCore/issues/14832" ) ]
33
+ [ Fact ]
32
34
public void AssembliesAreReferenceAssemblies ( )
33
35
{
36
+ if ( ! _isTargetingPackBuilding )
37
+ {
38
+ return ;
39
+ }
40
+
34
41
IEnumerable < string > dlls = Directory . GetFiles ( _targetingPackRoot , "*.dll" , SearchOption . AllDirectories ) ;
35
42
Assert . NotEmpty ( dlls ) ;
36
43
@@ -55,9 +62,14 @@ public void AssembliesAreReferenceAssemblies()
55
62
} ) ;
56
63
}
57
64
58
- [ Fact ( Skip = "https://github.com/aspnet/AspNetCore/issues/14832" ) ]
65
+ [ Fact ]
59
66
public void PlatformManifestListsAllFiles ( )
60
67
{
68
+ if ( ! _isTargetingPackBuilding )
69
+ {
70
+ return ;
71
+ }
72
+
61
73
var platformManifestPath = Path . Combine ( _targetingPackRoot , "data" , "PlatformManifest.txt" ) ;
62
74
var expectedAssemblies = TestData . GetSharedFxDependencies ( )
63
75
. Split ( ';' , StringSplitOptions . RemoveEmptyEntries )
0 commit comments