Skip to content

Commit

Permalink
Adds basic chef-analyze verification
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune <afiune@chef.io>
  • Loading branch information
Salim Afiune authored and marcparadise committed Oct 2, 2019
1 parent 92175e9 commit ab26b12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion omnibus/omnibus-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ git config --global user.name "Your Name"

$Env:CHEF_LICENSE = "accept-no-persist"

# Ensure our Chef Workstation works
Write-Output "--- Ensure the 'chef' cli works (chef env)"
chef env
If ($lastexitcode -ne 0) { Exit $lastexitcode }

Write-Output "--- Ensure the 'chef-analyze' cli works (chef-analyze help)"
chef-analyze help
If ($lastexitcode -ne 0) { Exit $lastexitcode }

# Run Workstation verification suite
C:/opscode/chef-workstation/embedded/bin/ruby.exe omnibus/verification/run.rb
If ($lastexitcode -ne 0) { Exit $lastexitcode }
7 changes: 5 additions & 2 deletions omnibus/omnibus-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ git config --global user.name "Your Name"

export CHEF_LICENSE="accept-no-persist"

# Ensure our chef cli works
echo "--- Ensure the 'chef' cli works (chef env)"
chef env

echo "--- Ensure the 'chef-analyze' cli works (chef-analyze help)"
chef-analyze help

# Verify that the chef-workstation-app was installed (MacOS only)
if is_darwin; then
echo "Verifying that chef-workstation-app exist in /Applications directory"
echo "--- Verifying that chef-workstation-app exist in /Applications directory"
test -d "/Applications/Chef Workstation App.app"
fi

Expand Down

0 comments on commit ab26b12

Please sign in to comment.