@@ -22,11 +22,11 @@ public SymbolicLinks(SymbolicLinks.SharedTestState fixture)
22
22
}
23
23
24
24
[ Theory ]
25
- [ SkipOnPlatform ( TestPlatforms . Windows , "Creating symbolic links requires administrative privilege on Windows, so skip test." ) ]
26
25
[ InlineData ( "a/b/SymlinkToApphost" ) ]
27
26
[ InlineData ( "a/SymlinkToApphost" ) ]
28
27
public void Run_apphost_behind_symlink ( string symlinkRelativePath )
29
28
{
29
+ symlinkRelativePath = Binaries . GetExeName ( symlinkRelativePath ) ;
30
30
using ( var testDir = TestArtifact . Create ( "symlink" ) )
31
31
{
32
32
Directory . CreateDirectory ( Path . Combine ( testDir . Location , Path . GetDirectoryName ( symlinkRelativePath ) ) ) ;
@@ -43,13 +43,14 @@ public void Run_apphost_behind_symlink(string symlinkRelativePath)
43
43
}
44
44
45
45
[ Theory ]
46
- [ SkipOnPlatform ( TestPlatforms . Windows , "Creating symbolic links requires administrative privilege on Windows, so skip test." ) ]
47
46
[ InlineData ( "a/b/FirstSymlink" , "c/d/SecondSymlink" ) ]
48
47
[ InlineData ( "a/b/FirstSymlink" , "c/SecondSymlink" ) ]
49
48
[ InlineData ( "a/FirstSymlink" , "c/d/SecondSymlink" ) ]
50
49
[ InlineData ( "a/FirstSymlink" , "c/SecondSymlink" ) ]
51
50
public void Run_apphost_behind_transitive_symlinks ( string firstSymlinkRelativePath , string secondSymlinkRelativePath )
52
51
{
52
+ firstSymlinkRelativePath = Binaries . GetExeName ( firstSymlinkRelativePath ) ;
53
+ secondSymlinkRelativePath = Binaries . GetExeName ( secondSymlinkRelativePath ) ;
53
54
using ( var testDir = TestArtifact . Create ( "symlink" ) )
54
55
{
55
56
// second symlink -> apphost
@@ -71,15 +72,14 @@ public void Run_apphost_behind_transitive_symlinks(string firstSymlinkRelativePa
71
72
}
72
73
}
73
74
74
- // [Theory]
75
- // [InlineData("a/b/SymlinkToFrameworkDependentApp")]
76
- // [InlineData("a/SymlinkToFrameworkDependentApp")]
77
- [ Fact ( Skip = "Currently failing in OSX with \" No such file or directory\" when running Command.Create. " +
75
+ [ Theory ]
76
+ [ InlineData ( "a/b/SymlinkToFrameworkDependentApp" ) ]
77
+ [ InlineData ( "a/SymlinkToFrameworkDependentApp" ) ]
78
+ [ SkipOnPlatform ( TestPlatforms . OSX , "Currently failing in OSX with \" No such file or directory\" when running Command.Create. " +
78
79
"CI failing to use stat on symbolic links on Linux (permission denied)." ) ]
79
- [ SkipOnPlatform ( TestPlatforms . Windows , "Creating symbolic links requires administrative privilege on Windows, so skip test." ) ]
80
- public void Run_framework_dependent_app_behind_symlink ( /*string symlinkRelativePath*/ )
80
+ public void Run_framework_dependent_app_behind_symlink ( string symlinkRelativePath )
81
81
{
82
- var symlinkRelativePath = string . Empty ;
82
+ symlinkRelativePath = Binaries . GetExeName ( symlinkRelativePath ) ;
83
83
84
84
using ( var testDir = TestArtifact . Create ( "symlink" ) )
85
85
{
@@ -96,14 +96,14 @@ public void Run_framework_dependent_app_behind_symlink(/*string symlinkRelativeP
96
96
}
97
97
}
98
98
99
- [ Fact ( Skip = "Currently failing in OSX with \" No such file or directory \" when running Command.Create. " +
100
- "CI failing to use stat on symbolic links on Linux (permission denied)." ) ]
101
- [ SkipOnPlatform ( TestPlatforms . Windows , "Creating symbolic links requires administrative privilege on Windows, so skip test .") ]
99
+ [ Fact ]
100
+ [ SkipOnPlatform ( TestPlatforms . OSX , "Currently failing in OSX with \" No such file or directory \" when running Command.Create. " +
101
+ "CI failing to use stat on symbolic links on Linux (permission denied) .") ]
102
102
public void Run_framework_dependent_app_with_runtime_behind_symlink ( )
103
103
{
104
104
using ( var testDir = TestArtifact . Create ( "symlink" ) )
105
105
{
106
- var dotnetSymlink = Path . Combine ( testDir . Location , "dotnet" ) ;
106
+ var dotnetSymlink = Path . Combine ( testDir . Location , Binaries . GetExeName ( "dotnet" ) ) ;
107
107
108
108
using var symlink = new SymLink ( dotnetSymlink , TestContext . BuiltDotNet . BinPath ) ;
109
109
Command . Create ( sharedTestState . FrameworkDependentApp . AppExe )
@@ -117,7 +117,6 @@ public void Run_framework_dependent_app_with_runtime_behind_symlink()
117
117
}
118
118
119
119
[ Fact ]
120
- [ SkipOnPlatform ( TestPlatforms . Windows , "Creating symbolic links requires administrative privilege on Windows, so skip test." ) ]
121
120
public void Put_app_directory_behind_symlink ( )
122
121
{
123
122
var app = sharedTestState . SelfContainedApp . Copy ( ) ;
@@ -138,7 +137,6 @@ public void Put_app_directory_behind_symlink()
138
137
}
139
138
140
139
[ Fact ]
141
- [ SkipOnPlatform ( TestPlatforms . Windows , "Creating symbolic links requires administrative privilege on Windows, so skip test." ) ]
142
140
public void Put_dotnet_behind_symlink ( )
143
141
{
144
142
using ( var testDir = TestArtifact . Create ( "symlink" ) )
@@ -156,7 +154,6 @@ public void Put_dotnet_behind_symlink()
156
154
}
157
155
158
156
[ Fact ]
159
- [ SkipOnPlatform ( TestPlatforms . Windows , "Creating symbolic links requires administrative privilege on Windows, so skip test." ) ]
160
157
public void Put_app_directory_behind_symlink_and_use_dotnet ( )
161
158
{
162
159
var app = sharedTestState . SelfContainedApp . Copy ( ) ;
@@ -177,7 +174,6 @@ public void Put_app_directory_behind_symlink_and_use_dotnet()
177
174
}
178
175
179
176
[ Fact ]
180
- [ SkipOnPlatform ( TestPlatforms . Windows , "Creating symbolic links requires administrative privilege on Windows, so skip test." ) ]
181
177
public void Put_satellite_assembly_behind_symlink ( )
182
178
{
183
179
var app = sharedTestState . LocalizedApp . Copy ( ) ;
0 commit comments