Commit graph

4358 commits

Author SHA1 Message Date
James Truher 4ca0d68c37 additional tests to close gaps
Move-Item was identical to Rename-Item
2016-09-14 13:51:10 -07:00
Josh Soref fb467d497d spelling: error ids in ErrorRecord (#2258) 2016-09-14 12:51:07 -07:00
Jeff Bienstadt 63bb074d5c Update test per code review 2016-09-14 12:51:06 -07:00
Josh Soref 1a04ad4cdb spelling fixes: demos apache (#2257) 2016-09-14 10:50:44 -07:00
Sergei Vorobev 81a598f242 Merge pull request #2089 from 0xfeeddeadbeef/master
Use prefixed QNames in XPath expressions used by all implementations of ICmdletProviderSupportsHelp interface
2016-09-13 15:14:46 -07:00
Douglas Thrift ddf30c4008 Use a variable instead of a file for testing args
* Use a variable (which can be indexed by line) instead of a file to
  test the output of arguments passed to echoargs
* Add comments explaining the tests
2016-09-13 13:37:42 -07:00
Douglas Thrift 4d5d0a0034 Rename Publish-EchoArgs to Publish-PSTestTools
* Rename Publish-EchoArgs to Publish-PSTestTools so it can be used
  for other tools as well in the future
* Publish EchoArgs to the bin directory instead of run to match
  convention
* Add source URL to EchoArgs header comment
* Use wildcard of "*.nuget.props" to match
  "test/csharp/csharp.nuget.props" in .gitignore
2016-09-13 13:37:42 -07:00
Douglas Thrift 7e8070276f Move and "publish" EchoArgs for the tests
* Move EchoArgs from test/EchoArgs to test/tools/EchoArgs
* Use "dotnet publish" for building EchoArgs in build.psm1 so the test
  can call it directly
2016-09-13 13:37:42 -07:00
Douglas Thrift 7816516c24 Add tests for native command arguments 2016-09-13 13:37:42 -07:00
Douglas Thrift 77a4e96795 Add test/csharp/csharp.nuget.props to .gitignore 2016-09-13 13:37:42 -07:00
Douglas Thrift 8bca1f50c5 Fix passing escaped double quoted spaces to native executables 2016-09-13 13:37:42 -07:00
Paul Higinbotham 79ddafcc85 Fix for Linux remote script debugging hang (#2213)
* Fix for Linux remote debugging hang bug.

* Removing dependency in PSReadLine on new engine helper API since it needs to be compatible with V3.
2016-09-13 11:31:48 -07:00
Alex Jordan 33e2ea9e23 Add uninstallation instructions for PowerShell pkg 2016-09-13 05:09:47 -07:00
George Chakhidze db330207dd Make sure we log that tests for Cert:\ and WSMan:\ provider-specific help are skipped 2016-09-13 10:26:53 +04:00
George Chakhidze 7ce34224c2 Remove '.ni' from module help file name (indicating a Ngen binary)
Fixes #2088
2016-09-13 09:40:14 +04:00
George Chakhidze e8190a569b Use prefixed QNames in XPath expressions used by all implementations of ICmdletProviderSupportsHelp interface
Also includes these bugfixes:
  - WSManConfigProvider.GetHelpMaml: Tried to load XML from
    MemoryStream that was created from file name string. Use XmlReader
    instead.
  - WSManConfigProvider.GetHelpMaml: Use Path.Combine instead of
    platform-specific directory separator character.
  - WSManConfigProvider.GetHelpMaml: CmdletHelpPath MAML XML element
    attribute `ID` name casing seems inconsistent with other help.xml
    files. XPath 1.0 does not support case-insensitive expressions,
    use both `id` and `ID` in query.
  - Add Pester test to verify that Get-Help shows provider-specific help.

Fixes #2088
2016-09-13 09:40:14 +04:00
Yanbing fd4552bfb8 Added tests for hashtabletoPSCustomObjectConversion, OutErrorVairable tests (#2160) 2016-09-12 18:29:55 -07:00
Sergei Vorobev a4b7db7277 Merge pull request #2220 from andschwa/docker
Dockerize Linux build environments
2016-09-12 18:27:36 -07:00
Aleksandar Nikolić a127f36ba2 Fix typo in CONTRIBUTING.md (#2242)
Change "once" to "one" and remove spaces before and after "/".
2016-09-12 18:21:29 -07:00
Andrew Schwartzmeyer 832f1a679d Update documentation 2016-09-12 15:01:19 -07:00
Andrew Schwartzmeyer fde942f6bb Copy artifacts from containers to docker/packages 2016-09-12 15:01:19 -07:00
Andrew Schwartzmeyer f0314cd86e Parallelize Docker builds
Log output to docker/logs.
2016-09-12 15:01:19 -07:00
Andrew Schwartzmeyer 002d2a6911 Satisfy shellcheck
Some variables left unquoted because they may be empty.
2016-09-12 15:01:19 -07:00
Andrew Schwartzmeyer 4253051421 Add RUNARGS and BUILDARGS for more flexibility
E.g. RUNARGS="--rm" or BUILDARGS="--no-cache".
2016-09-12 15:01:19 -07:00
Andrew Schwartzmeyer e1e014295b Add -powershell and -Pester options to Start-PSPester
When testing containers, we want to use the in-box PowerShell.
2016-09-12 15:01:19 -07:00
Andrew Schwartzmeyer 03237e91b6 Consolidate test script with launch script 2016-09-12 15:01:19 -07:00
Andrew Schwartzmeyer ceed98e33d Enable building arbitrary forks and branches 2016-09-12 15:01:19 -07:00
Andrew Schwartzmeyer d76cc0f600 Add unstable Dockerfile for CentOS 7 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer 2c7e687340 Add stable Dockerfile for CentOS 7 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer 7ac85f6ce0 Add unstable Dockerfile for Ubuntu 16.04 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer da024ec2ba Add stable Dockerfile for 16.04 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer 7375ab58b1 Add Docker scripts
Common bootstrap.ps1 script to run PowerShell builds.
Launch script to build and tag all containers.
Test script to run tests in unstable containers.
2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer 6bddaf6534 Add unstable Dockerfile for Ubuntu 14.04 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer cbc658b525 Add stable Dockerfile for Ubuntu 14.04
Dependencies and PowerShell are installed.
2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer 3e269103b5 Remove prototype Dockerfile 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer 427435c8fd Refactor .NET CLI installation into Install-Dotnet
So that it can be reinstalled separately if desired.

Also removed the set validation as it was now wrong,
and removed the warning about no Invoke-WebRequest on Core PowerShell
(it is ported now).

I don't like the duplicate parameter logic,
especially around -NoSudo.
2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer fc2c1b9f7d Update apt-get repo in Start-PSBootstrap
yum does not need this as yum install does it automatically.

This is needed when running, for example, in a container.
2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer 3a66c04f23 Add -NoSudo option to Start-PSBootstrap 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer 3687692802 Guard fatal bootstrap steps with Start-NativeExecution 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer bb476d4aef Install groff when bootstrapping for packaging 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer e7537b7ef4 Improve GetFullyQualfiedName() test 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer b86b1f870a Fix memory leak in GetFullyQualifiedName() 2016-09-12 15:01:18 -07:00
Jeff Bienstadt e8481e6a53 Make ConvertTo-Html work on CoreCLR
This also includes some Pester test for the cmdlet.
2016-09-12 11:17:59 -07:00
Yanbing e1bfe97d87 Add tests to language part 1 (#2086) 2016-09-12 10:43:53 -07:00
Aleksandar Nikolić 1d89d46c76 Update demos/Azure/Azure-Demo.ps1 (#2149)
* Update demos/Azure/Azure-Demo.ps1

Fix typos and casing.
Remove double spaces.

* Update Azure-Demo.ps1
2016-09-12 10:08:17 -07:00
Sergei Vorobev ea5b6720cd Merge pull request #2092 from bingbing8/Add-Tests-to-language-part-2
Add tests to language part 2
2016-09-10 10:07:35 -07:00
Ben Tucker 7071137085 Fix test-locale.cpp to report failing value (#2191)
ASSERT_TRUE("a"=="b") only reports that the strings do not match, hiding
their values.
ASSERT_STREQ("a","b") is a functionally equivalent test, but reports
back the values of the failing strings for easier troubleshooting.
2016-09-08 13:44:13 -07:00
Yanbing Wang 2530207d2a move help tests to feature. It generate two much log 2016-09-07 17:34:38 -07:00
Josh Soref fe08ab64ee Issue management (#2197)
* punctuation: issue management

* grammar: issue management

* capitalization: issue management

* miscellaneous: issue management
2016-09-07 11:32:31 -07:00
Josh Soref fd1d7a128f grammar: TransactedRegistry stub in System.Management.Automation CoreCLR (#2196)
PowerShell has some stubs to enable code to almost sort of work with things.
Some of the stubs try to say "Do not use me".

This commit corrects the grammar of the message.

Previously the message tried to apply a past tense form to `hit`,
but the past tense of `hit` is `hit`, and while breakpoints can
be hit, it's better to talk to the user about what should be done/
should not be done.
2016-09-07 11:29:42 -07:00