Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Stub in sharness framework #180

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test/sharness: Add sharness v1.0.0 as a submodule
It's GPLv2+ [1], so using a submodule keeps the separation from our
Apache 2.0 source clear.  And it's an isolated enough dependency that
I prefer to keep the Git histories separate.

Generated with:

  $ mkdir test
  $ git submodule add git://github.com/mlafeldt/sharness.git test/sharness
  $ (cd test/sharness && git checkout v1.0.0)
  $ git add test/sharness
  $ cd test
  $ ln -s sharness/aggregate-results.sh
  $ ln -s sharness/sharness.sh
  $ ln -s sharness/test/Makefile
  $ emacs README.md
  $ git add README.md Makefile sharness.sh aggregate-results.sh

[1]: https://github.com/mlafeldt/sharness/tree/v1.0.0#license

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking committed Aug 2, 2017
commit 509117ef398e41c36383408c39fd743be41c55a1
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "test/sharness"]
path = test/sharness
url = git://github.com/mlafeldt/sharness.git
1 change: 1 addition & 0 deletions test/Makefile
22 changes: 22 additions & 0 deletions test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# oci-runtime-tool integration tests

This project uses the [Sharness][] test harness, installed as a [Git
submodule][submodule]. To setup the test installation after a clone,
run:

$ git submodule update --init

which will checkout the appropriate Sharness commit in the `sharness`
directory (after which the `Makefile`, `sharness.sh`, etc. symlinks
will resolve successfully).

Run the tests with:

$ make

And read the `Makefile` source to find other useful targets
(e.g. [`prove`][prove]).

[prove]: http://perldoc.perl.org/prove.html
[Sharness]: http://mlafeldt.github.io/sharness/
[submodule]: http://git-scm.com/docs/git-submodule
1 change: 1 addition & 0 deletions test/aggregate-results.sh
1 change: 1 addition & 0 deletions test/sharness
Submodule sharness added at 64595a
1 change: 1 addition & 0 deletions test/sharness.sh