forked from chocolatey/choco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request chocolatey#2824 from AdmiringWorm/logging-tests
(chocolatey#1332) Add tests for disabling file logging of archive extractions
- Loading branch information
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/chocolatey-tests/testpackages/zip-log-disable-test/tools/chocolateyinstall.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
$ErrorActionPreference = 'Stop'; | ||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
|
||
$packageArgs = @{ | ||
packageName = $env:ChocolateyPackageName | ||
destination = "$toolsDir\extraction" | ||
file = "$toolsDir\zip-log-disable-test.zip" | ||
disableLogging= $true | ||
} | ||
|
||
Get-ChocolateyUnzip @packageArgs |
Binary file added
BIN
+6.95 KB
tests/chocolatey-tests/testpackages/zip-log-disable-test/tools/zip-log-disable-test.zip
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
tests/chocolatey-tests/testpackages/zip-log-disable-test/zip-log-disable-test.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>zip-log-disable-test</id> | ||
<version>1.0.0</version> | ||
<title>zip-log-disable-test (Install)</title> | ||
<authors>__REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__</authors> | ||
<tags>zip-log-disable-test SPACE_SEPARATED</tags> | ||
<description>Package used to test disabling verbose file log for zip extraction</description> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
</files> | ||
</package> |