Skip to content

Commit bd0d538

Browse files
committed
Add a couple of cram tests for the melting pot
It's a relatively complex beast, so let's really make sure it works.
1 parent 9ab5306 commit bd0d538

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

tests/melting-pot-out-dir.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Script should fail if output directory already exists:
2+
3+
$ mkdir melting-pot && sh "$TESTDIR/../melting-pot.sh" foo:bar
4+
[ERROR] Directory already exists: melting-pot
5+
[2]

tests/melting-pot-simple.t

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Down-the-middle test of a relatively simply project:
2+
3+
$ sh "$TESTDIR/../melting-pot.sh" net.imagej:imagej-common:0.15.1 -r http://maven.imagej.net/content/groups/public -c org.scijava:scijava-common:2.44.2 -i 'org.scijava:*,net.imagej:*,net.imglib2:*,io.scif:*' -e net.imglib2:imglib2-roi -v -f -s
4+
[DEBUG] net.imagej:imagej-common:0.15.1: fetching project source
5+
[DEBUG] net.imagej:imagej-common:0.15.1: determining project dependencies
6+
[DEBUG] net.imagej:imagej-common:0.15.1: processing project dependencies
7+
[DEBUG] net.imagej:imagej-common:0.15.1: imglib2: fetching component source
8+
[DEBUG] net.imagej:imagej-common:0.15.1: processing changed components
9+
[DEBUG] Generating aggregator POM
10+
[DEBUG] Skipping the build; the command would have been:
11+
[DEBUG] mvn -Denforcer.skip -Dimglib2-roi.version=0.3.0 -Djunit.version=4.11 -Dhamcrest-core.version=1.3 -Dimglib2.version=2.2.1 -Dtrove4j.version=3.0.3 -Dgentyref.version=1.1.0 -Dudunits.version=4.3.18 -Deventbus.version=1.4 -Dscijava-common.version=2.44.2 test
12+
[DEBUG] net.imagej:imagej-common:0.15.1: complete
13+
14+
$ find melting-pot -maxdepth 2
15+
melting-pot
16+
melting-pot/net.imagej
17+
melting-pot/net.imagej/imagej-common
18+
melting-pot/net.imglib2
19+
melting-pot/net.imglib2/imglib2
20+
melting-pot/pom.xml

tests/readme.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This directory houses automated tests for use with cram.
2+
3+
https://bitheap.org/cram/
4+
5+
To run them, type "cram tests" from the toplevel directory.

0 commit comments

Comments
 (0)