Skip to content

Commit 259c6c5

Browse files
committed
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 <[email protected]>
1 parent f72c7f5 commit 259c6c5

File tree

6 files changed

+29
-0
lines changed

6 files changed

+29
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "test/sharness"]
2+
path = test/sharness
3+
url = git://github.com/mlafeldt/sharness.git

test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sharness/test/Makefile

test/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Ocitools integration tests
2+
3+
Ocitools uses the [Sharness][] test harness, installed as a [Git
4+
submodule]submodule]. To setup the test installation after a clone,
5+
run:
6+
7+
$ git submodule update --init
8+
9+
which will checkout the appropriate Sharness commit in the `sharness`
10+
directory (after which the `Makefile`, `sharness.sh`, etc. symlinks
11+
will resolve successfully).
12+
13+
Run the tests with:
14+
15+
$ make
16+
17+
And read the `Makefile` source to find other useful targets
18+
(e.g. [`prove`][prove]).
19+
20+
[prove]: http://perldoc.perl.org/prove.html
21+
[Sharness]: http://mlafeldt.github.io/sharness/
22+
[submodule]: http://git-scm.com/docs/git-submodule

test/aggregate-results.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sharness/aggregate-results.sh

test/sharness

Submodule sharness added at 64595a2

test/sharness.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sharness/sharness.sh

0 commit comments

Comments
 (0)