Add a very simple test for Windows Habitat builds.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-09-18 16:52:34 -07:00
parent 8b9bb3983a
commit 4544ff30aa
3 changed files with 21 additions and 0 deletions

View file

@ -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
View 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.

View 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