mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Add a very simple test for Windows Habitat builds.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
8b9bb3983a
commit
4544ff30aa
3 changed files with 21 additions and 0 deletions
|
@ -63,6 +63,10 @@ function Invoke-Install {
|
|||
}
|
||||
}
|
||||
|
||||
function Invoke-Verify {
|
||||
rake test/artifact
|
||||
}
|
||||
|
||||
function Invoke-After {
|
||||
# Trim the fat before packaging
|
||||
|
||||
|
|
5
test/artifact/README.md
Normal file
5
test/artifact/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# InSpec Artifact test suite
|
||||
|
||||
A minimal set of tests to validate functionality after 'build'.
|
||||
|
||||
Execute this after building InSpec artifacts with omnibus, habitat, or another system.
|
12
test/artifact/inspec_detect_test.rb
Normal file
12
test/artifact/inspec_detect_test.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
require "minitest/autorun"
|
||||
|
||||
class TestArtifactDetect < Minitest::Test
|
||||
def test_detect
|
||||
out, err = capture_subprocess_io {
|
||||
assert system("inspec detect --no-color")
|
||||
}
|
||||
|
||||
assert_match %r%Platform Details%, out
|
||||
assert_empty
|
||||
end err
|
||||
end
|
Loading…
Reference in a new issue