#!/bin/sh

exec 2>&1

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

TESTDIR=$(pwd)/debian/tests

run chef-solo -c $TESTDIR/config.rb -j $TESTDIR/node.json

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

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

. shunit2
