#!/bin/sh

exec 2>&1

run() {
  echo '$' "$@"
  set -e
  "$@"
  set +e
}

run chef-solo -c debian/tests/config.rb -j debian/tests/node.json

echo
echo '------ testing results of chef-solo run ------'

test_install_package() {
  assertTrue 'dpkg-query --show vim'
}

. shunit2
