PowerShell/test
jeffbi 2a739afa9c Fix Rename-Item to allow Unix globbing patterns in paths (#2799) (#3661)
* Fix Rename-Item to allow Unix globbing patterns in -Literal paths (#2799)

In the process of normalizing a relative path, PowerShell checks to see
see if the path exists, which it does by invoking
    Directory.EnumerateFiles(directory, filename);

On Unix platforms, if the filename contains globbing patterns, such as [ab],
EnumerateFiles (and EnumerateDirectories) will perform the globbing. Using
globbing patterns, a file named 'file[txt].txt' is reported as not existing.

This fix changes the file-existence test on Unix to use a native function
instead of either of the Directory.EnumerateXXX functions.

* Fix for AppVeyor failure

* Changes per code review, and a couple of letter-casing changes.
2017-05-02 18:42:16 -07:00
..
common/markdown Fix markdown lint issues for SSH Remoting demo and enable related tests (#3484) 2017-04-11 09:42:37 -07:00
csharp Move powershell to .NET Core 2.0 (#3556) 2017-04-17 11:52:38 -07:00
docker/networktest Add dockerfile and test so we can test simple remoting behaviors (#3470) 2017-04-21 17:23:08 -07:00
fullclr Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
powershell Fix Rename-Item to allow Unix globbing patterns in paths (#2799) (#3661) 2017-05-02 18:42:16 -07:00
PSReadLine Move powershell to .NET Core 2.0 (#3556) 2017-04-17 11:52:38 -07:00
shebang Reorganize tests 2016-01-14 17:00:06 -08:00
tools Move powershell to .NET Core 2.0 (#3556) 2017-04-17 11:52:38 -07:00
map.json Edit map.json to add in PackageManagement tests 2016-07-12 21:17:11 -07:00
README.md Add test/README.md 2016-03-30 23:30:26 -07:00

Testing

The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./csharp. The sanity tests for the Full .NET build of PowerShell are in ./fullclr, and the third-party shebang test is in ./shebang.