You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2021. It is now read-only.
This cookbook installs Sharness, the "Shell library to test your Unix tools
like Git does".
Requirements
Platform:
Ubuntu
Debian
probably many more
Cookbooks:
No dependencies
Attributes
node['sharness']['version'] - The version of Sharness to install.
node['sharness']['url'] - URL to download Sharness source tarball from.
node['sharness']['checksum'] - Checksum of source tarball.
node['sharness']['prefix'] - Path prefix for installation.
node['sharness']['path'] - Path to directory that holds Sharness library.
See attributes/default.rb for default values.
Recipes
sharness::default
Installs Sharness.
This recipe can be run without any configuration. You might want to set
node['sharness']['version'] to install a specific version of Sharness.
The recipe also sets up the environment variable SHARNESS_PATH to point to
node['sharness']['path'], so you can easily source Sharness inside your tests:
#!/bin/sh
test_description="Some example test"."$SHARNESS_PATH/sharness.sh"
Testing
The cookbook provides the following Rake tasks for testing:
rake foodcritic # Lint Chef cookbooks
rake integration # Alias for kitchen:all
rake kitchen:all # Run all test instances
rake kitchen:default-ubuntu-1204 # Run default-ubuntu-1204 test instance
rake rubocop # Run RuboCop style and lint checks
rake spec # Run ChefSpec examples
rake test # Run all tests
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contributing
Fork it
Create your feature branch (git checkout -b my-new-feature)
Commit your changes (git commit -am 'Add some feature')
Push to the branch (git push origin my-new-feature)