Java tests not running for sample app? - junit4

I am trying the example app computer-database and then run 'play test'. No tests are running. I am using play 2.1.3.
https://github.com/playframework/playframework/tree/2.1.x/samples/java/computer-database/test
$ play
_ __ | | __ _ _ _| |
| '_ \| |/ _' | || |_|
| __/|_|\____|\__ (_)
|_| |__/
play! 2.1.3 (using Java 1.7.0_25 and Scala 2.10.0), http://www.playframework.org
$ play test
[info] FunctionalTest
[info]
[info]
[info] Total for test FunctionalTest
[info] Finished in 0.009 seconds
[info] 0 tests, 0 failures, 0 errors
[info] ModelTest
[info]
[info]
[info] Total for test ModelTest
[info] Finished in 0.001 seconds
[info] 0 tests, 0 failures, 0 errors
[info] IntegrationTest
[info]
[info]
[info] Total for test IntegrationTest
[info] Finished in 0.0 seconds
[info] 0 tests, 0 failures, 0 errors

This is a bug in 2.1.3. Here is the workaround. http://play.lighthouseapp.com/projects/82401/tickets/967-tests-are-not-discovered
add this to your dependencies:
"play" %% "play-test" % play.core.PlayVersion.current % "test" exclude("com.novocode", "junit-interface"),
"com.novocode" % "junit-interface" % "0.9" % "test"

Related

Nominatim: psycopg2.errors.UndefinedTable: missing FROM-clause entry for table "parent" when trying to import

I had created an empty database called nominatim on my DB cluster, pointed the DSN to my database with the dbname, host, port, user and pass and tried to import the map of Portugal with the following params:
nohup <path/to/file>/build/utils/setup.php \
--threads 4 \
--setup-db \
--import-data \
--create-functions \
--enable-diff-updates \
--enable-debug-statements \
--create-tables \
--create-partition-tables \
--create-partition-functions \
--import-wikipedia-articles \
--load-data \
--import-tiger-data \
--calculate-postcodes \
--index \
--index-noanalyse \
--create-search-indices \
--create-country-names \
--osm-file <path/to/file>/portugal-latest.osm.pbf >> <path/to/file>/logImportPortugal.txt 2>&1
But it is giving me the following error:
WARNING: Starting rank 25
Traceback (most recent call last):
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 370, in <module>
Indexer(options).run()
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 215, in run
self.index(RankRunner(self.maxrank))
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 259, in index
thread = next(next_thread)
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 300, in find_free_thread
if thread.is_done():
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 178, in is_done
if self.conn.poll() == psycopg2.extensions.POLL_OK:
psycopg2.errors.UndefinedTable: missing FROM-clause entry for table "parent"
LINE 1: parent.place_id
^
QUERY: parent.place_id
CONTEXT: PL/pgSQL function find_parent_for_address(text,text,smallint,geometry) line 25 at RAISE
PL/pgSQL function find_parent_for_poi(character,bigint,smallint,geometry,text,text,boolean) line 31 at assignment
PL/pgSQL function placex_update() line 178 at assignment
ERROR: error status 1 running nominatim!
string(33) "error status 1 running nominatim!"
The flag --setup-db shouldn't create all the relations? What am I missing?
Below is the full log:
nohup: ignoring input
2023-01-10 13:00:49 == module path: /srv/nominatim/build/module
2023-01-10 13:00:49 == Setup DB
Postgres version found: 14
Postgis version found: 3.2
set_config
------------
(1 row)
2023-01-10 13:00:54 == Import data
osm2pgsql version 1.2.0 (64 bit id space)
Mid: loading persistent node cache from /srv/nominatim/flatnode.file
Mid: pgsql, cache=0
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Parsing gazetteer style file '/srv/nominatim/Nominatim-3.5.1/settings/import-full.style'.
Using projection SRS 4326 (Latlong)
NOTICE: table "place" does not exist, skipping
Reading in file: /home/izadmin/planet_full/portugal-latest.osm.pbf
Using PBF parser.
^MProcessing: Node(50k 50.0k/s) Way(0k 0.00k/s) Relation(0 0.00/s)^MProcessing: Node(150k 75.0k/s) Way(0k 0.00k/s) Relation(0 0.00/s)^MProcessing: Node(310k 103.3k/s) Way(0k 0.00k/s) Relation>Node stats: total(36476942), max(10423206981) in 223s
Way stats: total(3678221), max(1129408209) in 88s
Relation stats: total(75907), max(15101706) in 7s
Stopping table: planet_osm_nodes
Stopped table: planet_osm_nodes in 0s
Stopping table: planet_osm_ways
Stopped table: planet_osm_ways in 0s
Stopping table: planet_osm_rels
Building index on table: planet_osm_rels
Stopped table: planet_osm_rels in 0s
Osm2pgsql took 319s overall
2023-01-10 13:06:14 == Create Functions
2023-01-10 13:06:14 == Create Tables
2023-01-10 13:06:14 == Create Functions
2023-01-10 13:06:14 == Create Tables
2023-01-10 13:06:15 == Create Partition Tables
2023-01-10 13:06:16 == Create Partition Functions
2023-01-10 13:06:16 == Importing wikipedia articles and redirects
2023-01-10 13:08:08 == Drop old Data
...............................................................................................................................................................................................>2023-01-10 13:08:13 == Loading word list
count
--------
318141
(1 row)
count
-------
14556
(1 row)
2023-01-10 13:09:01 == Load Data
2023-01-10 13:43:34 == Reanalysing database
Latest data imported from 2023-01-09T21:15:53Z.
2023-01-10 13:43:37 == Import Tiger data
2023-01-10 13:43:37 == Found 0 SQL files in path /srv/nominatim/Nominatim-3.5.1/data/tiger
2023-01-10 13:43:37 == WARNING: Tiger data import selected but no files found in path /srv/nominatim/Nominatim-3.5.1/data/tiger
2023-01-10 13:43:37 == Calculate Postcodes
2023-01-10 13:44:47 == Index ranks 0 - 4
'/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py' --database nominatim --port 5432 --threads 4 -v --host '127.0.0.1' --user postgres --maxrank 4WARNING: Starting indexing rank (0 to 4) >WARNING: Starting rank 0
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 0
WARNING: Starting rank 1
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 1
WARNING: Starting rank 2
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 2
WARNING: Starting rank 3
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 3
WARNING: Starting rank 4
WARNING: Done 2/2 in 0 # 3.477 per second - FINISHED rank 4
2023-01-10 13:44:47 == Index ranks 5 - 25
WARNING: Starting indexing rank (5 to 25) using 4 threads
WARNING: Starting rank 5
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 5
WARNING: Starting rank 6
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 6
WARNING: Starting rank 7
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 7
WARNING: Starting rank 8
WARNING: Done 2/2 in 0 # 7.341 per second - FINISHED rank 8
WARNING: Starting rank 9
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 9
WARNING: Starting rank 10
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 10
WARNING: Starting rank 11
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 11
WARNING: Starting rank 12
WARNING: Done 37/37 in 0 # 139.460 per second - FINISHED rank 12
WARNING: Starting rank 13
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 13
WARNING: Starting rank 14
INFO: Done 100 in 0 # 389.785 per second - rank 14 ETA (seconds): 0.53
WARNING: Done 308/308 in 0 # 321.383 per second - FINISHED rank 14
WARNING: Starting rank 15
WARNING: Done 1/1 in 0 # 661.813 per second - FINISHED rank 15
WARNING: Starting rank 16
INFO: Done 100 in 0 # 587.337 per second - rank 16 ETA (seconds): 5.38
INFO: Done 687 in 1 # 516.197 per second - rank 16 ETA (seconds): 4.99
INFO: Done 1203 in 2 # 507.508 per second - rank 16 ETA (seconds): 4.06
INFO: Done 1710 in 3 # 488.050 per second - rank 16 ETA (seconds): 3.18
INFO: Done 2198 in 4 # 455.463 per second - rank 16 ETA (seconds): 2.34
INFO: Done 2653 in 5 # 450.394 per second - rank 16 ETA (seconds): 1.35
INFO: Done 3103 in 7 # 425.337 per second - rank 16 ETA (seconds): 0.37
WARNING: Done 3262/3262 in 8 # 388.872 per second - FINISHED rank 16
WARNING: Starting rank 17
INFO: Done 100 in 0 # 1959.248 per second - rank 17 ETA (seconds): 0.01
WARNING: Done 127/127 in 0 # 1647.831 per second - FINISHED rank 17
WARNING: Starting rank 18
INFO: Done 100 in 0 # 1458.789 per second - rank 18 ETA (seconds): 2.29
INFO: Done 1558 in 0 # 1776.158 per second - rank 18 ETA (seconds): 1.06
INFO: Done 3334 in 1 # 1774.513 per second - rank 18 ETA (seconds): 0.06
WARNING: Done 3447/3447 in 1 # 1777.266 per second - FINISHED rank 18
WARNING: Starting rank 19
INFO: Done 100 in 0 # 3007.609 per second - rank 19 ETA (seconds): 1.98
INFO: Done 3107 in 1 # 2444.868 per second - rank 19 ETA (seconds): 1.20
INFO: Done 5551 in 2 # 2570.094 per second - rank 19 ETA (seconds): 0.19
WARNING: Done 6053/6052 in 2 # 2644.112 per second - FINISHED rank 19
WARNING: Starting rank 20
INFO: Done 100 in 0 # 2110.150 per second - rank 20 ETA (seconds): 13.73
INFO: Done 2210 in 0 # 2969.273 per second - rank 20 ETA (seconds): 9.04
INFO: Done 5179 in 2 # 2321.562 per second - rank 20 ETA (seconds): 10.29
INFO: Done 7500 in 3 # 2142.735 per second - rank 20 ETA (seconds): 10.07
INFO: Done 9642 in 4 # 2055.257 per second - rank 20 ETA (seconds): 9.45
INFO: Done 11697 in 5 # 2019.092 per second - rank 20 ETA (seconds): 8.60
INFO: Done 13716 in 6 # 1998.935 per second - rank 20 ETA (seconds): 7.68
INFO: Done 15714 in 7 # 1993.985 per second - rank 20 ETA (seconds): 6.70
INFO: Done 17707 in 8 # 1990.804 per second - rank 20 ETA (seconds): 5.71
INFO: Done 19697 in 9 # 1978.861 per second - rank 20 ETA (seconds): 4.74
INFO: Done 21675 in 11 # 1960.704 per second - rank 20 ETA (seconds): 3.77
INFO: Done 23635 in 12 # 1936.453 per second - rank 20 ETA (seconds): 2.81
INFO: Done 25571 in 13 # 1929.992 per second - rank 20 ETA (seconds): 1.81
INFO: Done 27500 in 14 # 1939.698 per second - rank 20 ETA (seconds): 0.81
WARNING: Done 29070/29067 in 14 # 1942.903 per second - FINISHED rank 20
WARNING: Starting rank 21
INFO: Done 100 in 0 # 2234.986 per second - rank 21 ETA (seconds): 0.48
WARNING: Done 1167/1167 in 0 # 1538.119 per second - FINISHED rank 21
WARNING: Starting rank 22
INFO: Done 100 in 0 # 1638.646 per second - rank 22 ETA (seconds): 18.97
INFO: Done 1738 in 0 # 1982.608 per second - rank 22 ETA (seconds): 14.85
INFO: Done 3720 in 2 # 1732.995 per second - rank 22 ETA (seconds): 15.85
INFO: Done 5452 in 3 # 1742.091 per second - rank 22 ETA (seconds): 14.77
INFO: Done 7194 in 4 # 1723.857 per second - rank 22 ETA (seconds): 13.92
INFO: Done 8917 in 5 # 1717.254 per second - rank 22 ETA (seconds): 12.97
INFO: Done 10634 in 6 # 1712.904 per second - rank 22 ETA (seconds): 12.00
INFO: Done 12346 in 7 # 1716.312 per second - rank 22 ETA (seconds): 10.98
INFO: Done 14062 in 8 # 1718.356 per second - rank 22 ETA (seconds): 9.96
INFO: Done 15780 in 9 # 1720.232 per second - rank 22 ETA (seconds): 8.95
INFO: Done 17500 in 10 # 1727.692 per second - rank 22 ETA (seconds): 7.92
INFO: Done 19227 in 11 # 1727.651 per second - rank 22 ETA (seconds): 6.92
INFO: Done 20954 in 12 # 1723.779 per second - rank 22 ETA (seconds): 5.93
INFO: Done 22677 in 13 # 1715.023 per second - rank 22 ETA (seconds): 4.96
INFO: Done 24392 in 14 # 1717.552 per second - rank 22 ETA (seconds): 3.95
INFO: Done 26109 in 15 # 1697.694 per second - rank 22 ETA (seconds): 2.99
INFO: Done 27806 in 16 # 1659.334 per second - rank 22 ETA (seconds): 2.04
INFO: Done 29465 in 17 # 1662.434 per second - rank 22 ETA (seconds): 1.03
INFO: Done 31127 in 18 # 1667.951 per second - rank 22 ETA (seconds): 0.03
WARNING: Done 31184/31183 in 18 # 1668.224 per second - FINISHED rank 22
WARNING: Starting rank 23
WARNING: Done 0/0 in 0 # 0.000 per second - FINISHED rank 23
WARNING: Starting rank 24
INFO: Done 100 in 0 # 2041.400 per second - rank 24 ETA (seconds): 2.52
INFO: Done 2141 in 1 # 1956.016 per second - rank 24 ETA (seconds): 1.59
INFO: Done 4097 in 2 # 1911.586 per second - rank 24 ETA (seconds): 0.60
WARNING: Done 5248/5245 in 2 # 1908.391 per second - FINISHED rank 24
WARNING: Starting rank 25
Traceback (most recent call last):
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 370, in <module>
Indexer(options).run()
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 215, in run
self.index(RankRunner(self.maxrank))
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 259, in index
thread = next(next_thread)
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 300, in find_free_thread
if thread.is_done():
File "/srv/nominatim/Nominatim-3.5.1/nominatim/nominatim.py", line 178, in is_done
if self.conn.poll() == psycopg2.extensions.POLL_OK:
psycopg2.errors.UndefinedTable: missing FROM-clause entry for table "parent"
LINE 1: parent.place_id
^
QUERY: parent.place_id
CONTEXT: PL/pgSQL function find_parent_for_address(text,text,smallint,geometry) line 25 at RAISE
PL/pgSQL function find_parent_for_poi(character,bigint,smallint,geometry,text,text,boolean) line 31 at assignment
PL/pgSQL function placex_update() line 178 at assignment
ERROR: error status 1 running nominatim!
string(33) "error status 1 running nominatim!"
I am using Nominatim 3.5.1

Issue in testing the performance of populating a Seq vs a List in Scala

I've been trying to understand more about the rationale in choosing either a Seq or a List in Scala, to aid this I am trying to create a simple timed example where I create an instance of each, both populated with the same number of elements - see below.
object SeqVsList extends App with LazyLogging {
private val numberOfElements = 1234567
// whichever of these is run first takes the most amount of time
populateSeq()
populateList()
def populateSeq(): Unit = {
val seqStartTime = System.currentTimeMillis()
val aSeq = Seq.fill(numberOfElements)("foo")
logger.info(s"Populating Seq took ${System.currentTimeMillis() - seqStartTime} ms")
}
def populateList(): Unit = {
val listStartTime = System.currentTimeMillis()
val aList = List.fill(numberOfElements)("bar")
logger.info(s"Populating List took ${System.currentTimeMillis() - listStartTime} ms")
}
}
The issue I'm having (as defined in my comment in the code) is that the example does not accurately represent which one is quickest to populate all elements, instead whichever of the methods I call first is always the slowest.
I imagine there's something going on behind the scenes such as loading a bunch of objects into memory at runtime which slows down the first of the two methods? If someone could help me shed some light on this I'd be very grateful.
I've just tried to proof the idea of equality Seq and List by some benchmark test with sbt-jmh:
package bmks
import java.util.concurrent.TimeUnit
import org.openjdk.jmh.annotations.{Benchmark, OutputTimeUnit}
#OutputTimeUnit(TimeUnit.MILLISECONDS)
class TestBenchmark {
#Benchmark
def seq(): Seq[String] =
Seq.fill(1234567)("foo")
#Benchmark
def list(): Seq[String] =
List.fill(1234567)("foo")
}
run it with:
$ sbt
$ sbt:benchmarks> jmh:run -i 20 -wi 10 -f1 -t1
and got:
sbt:benchmarks> jmh:run -i 20 -wi 10 -f1 -t1
[info] Compiling 1 Scala source to /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/classes ...
[info] Done compiling.
[info] Packaging /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/benchmarks_2.12-1.0.jar ...
Processing 1 classes from /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/classes with "reflection" generator
Writing out Java source to /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/src_managed/jmh and resources to /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/resource_managed/jmh
[info] Done packaging.
[info] Compiling 6 Java sources to /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/classes ...
[info] Done compiling.
[info] Packaging /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/benchmarks_2.12-1.0-jmh.jar ...
[info] Done packaging.
[info] Running (fork) org.openjdk.jmh.Main -i 20 -wi 10 -f1 -t1
[info] # JMH version: 1.21
[info] # VM version: JDK 1.8.0_161, Java HotSpot(TM) 64-Bit Server VM, 25.161-b12
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Warmup: 10 iterations, 10 s each
[info] # Measurement: 20 iterations, 10 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Throughput, ops/time
[info] # Benchmark: bmks.TestBenchmark.list
[info] # Run progress: 0.00% complete, ETA 00:10:00
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 0.091 ops/ms
[info] # Warmup Iteration 2: 0.111 ops/ms
[info] # Warmup Iteration 3: 0.111 ops/ms
[info] # Warmup Iteration 4: 0.113 ops/ms
[info] # Warmup Iteration 5: 0.112 ops/ms
[info] # Warmup Iteration 6: 0.115 ops/ms
[info] # Warmup Iteration 7: 0.114 ops/ms
[info] # Warmup Iteration 8: 0.116 ops/ms
[info] # Warmup Iteration 9: 0.115 ops/ms
[info] # Warmup Iteration 10: 0.115 ops/ms
[info] Iteration 1: 0.115 ops/ms
[info] Iteration 2: 0.116 ops/ms
[info] Iteration 3: 0.114 ops/ms
[info] Iteration 4: 0.114 ops/ms
[info] Iteration 5: 0.115 ops/ms
[info] Iteration 6: 0.114 ops/ms
[info] Iteration 7: 0.116 ops/ms
[info] Iteration 8: 0.115 ops/ms
[info] Iteration 9: 0.115 ops/ms
[info] Iteration 10: 0.115 ops/ms
[info] Iteration 11: 0.115 ops/ms
[info] Iteration 12: 0.115 ops/ms
[info] Iteration 13: 0.114 ops/ms
[info] Iteration 14: 0.116 ops/ms
[info] Iteration 15: 0.115 ops/ms
[info] Iteration 16: 0.115 ops/ms
[info] Iteration 17: 0.115 ops/ms
[info] Iteration 18: 0.114 ops/ms
[info] Iteration 19: 0.114 ops/ms
[info] Iteration 20: 0.117 ops/ms
[info] Result "bmks.TestBenchmark.list":
[info] 0.115 ±(99.9%) 0.001 ops/ms [Average]
[info] (min, avg, max) = (0.114, 0.115, 0.117), stdev = 0.001
[info] CI (99.9%): [0.114, 0.116] (assumes normal distribution)
[info] # JMH version: 1.21
[info] # VM version: JDK 1.8.0_161, Java HotSpot(TM) 64-Bit Server VM, 25.161-b12
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Warmup: 10 iterations, 10 s each
[info] # Measurement: 20 iterations, 10 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Throughput, ops/time
[info] # Benchmark: bmks.TestBenchmark.seq
[info] # Run progress: 50.00% complete, ETA 00:05:01
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 0.094 ops/ms
[info] # Warmup Iteration 2: 0.115 ops/ms
[info] # Warmup Iteration 3: 0.118 ops/ms
[info] # Warmup Iteration 4: 0.115 ops/ms
[info] # Warmup Iteration 5: 0.114 ops/ms
[info] # Warmup Iteration 6: 0.115 ops/ms
[info] # Warmup Iteration 7: 0.115 ops/ms
[info] # Warmup Iteration 8: 0.115 ops/ms
[info] # Warmup Iteration 9: 0.114 ops/ms
[info] # Warmup Iteration 10: 0.117 ops/ms
[info] Iteration 1: 0.116 ops/ms
[info] Iteration 2: 0.116 ops/ms
[info] Iteration 3: 0.089 ops/ms
[info] Iteration 4: 0.116 ops/ms
[info] Iteration 5: 0.116 ops/ms
[info] Iteration 6: 0.118 ops/ms
[info] Iteration 7: 0.116 ops/ms
[info] Iteration 8: 0.118 ops/ms
[info] Iteration 9: 0.118 ops/ms
[info] Iteration 10: 0.117 ops/ms
[info] Iteration 11: 0.117 ops/ms
[info] Iteration 12: 0.107 ops/ms
[info] Iteration 13: 0.111 ops/ms
[info] Iteration 14: 0.113 ops/ms
[info] Iteration 15: 0.113 ops/ms
[info] Iteration 16: 0.114 ops/ms
[info] Iteration 17: 0.114 ops/ms
[info] Iteration 18: 0.114 ops/ms
[info] Iteration 19: 0.114 ops/ms
[info] Iteration 20: 0.114 ops/ms
[info] Result "bmks.TestBenchmark.seq":
[info] 0.114 ±(99.9%) 0.005 ops/ms [Average]
[info] (min, avg, max) = (0.089, 0.114, 0.118), stdev = 0.006
[info] CI (99.9%): [0.108, 0.119] (assumes normal distribution)
[info] # Run complete. Total time: 00:10:02
[info] REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
[info] why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
[info] experiments, perform baseline and negative tests that provide experimental control, make sure
[info] the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
[info] Do not assume the numbers tell you what you want them to tell.
[info] Benchmark Mode Cnt Score Error Units
[info] TestBenchmark.list thrpt 20 0.115 ± 0.001 ops/ms
[info] TestBenchmark.seq thrpt 20 0.114 ± 0.005 ops/ms
[success] Total time: 607 s, completed Apr 29, 2019 8:35:22 PM
Conclusion: they are equal.

Understanding Scala MiMa Output

I'm attempting to use MiMa(https://github.com/lightbend/migration-manager#usage) to determine any binary incompatibilities between argonaut-shapeless's v1.2.0-M9 and v1.2.0-M6. Please see the output, where I post what I did, as well as ask my question.
# clone argonaut-shapeless
# cd to directory
$git branch
* (HEAD detached at v1.2.0-M9)
master
$git diff
diff --git a/build.sbt b/build.sbt
index 6465b3c..e1e5ac4 100644
--- a/build.sbt
+++ b/build.sbt
## -104,6 +104,7 ## lazy val `argonaut-shapeless` = project
)
.settings(
shared,
+ mimaPreviousArtifacts := Set("com.github.alexarchambault" %%% "argonaut-shapeless_6.2" % "1.2.0-M6"),
dontPublish
)
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 0f055fc..490c9de 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
## -6,4 +6,7 ## addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.8")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.5.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "0.5.0")
+addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.3.0")
+
+
addSbtCoursier
Next, run MIMA to determine any binary incompatibilities:
sbt:argonaut-shapeless> mimaReportBinaryIssues
[info] Updating argonaut-shapeless
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.12/scala-library-2.11.12.pom
100.0% [##########] 1.4 KiB (3.0 KiB / s)
[info] Resolved argonaut-shapeless dependencies
[info] Updating argonaut-shapeless
https://repo1.maven.org/maven2/org/scalamacros/paradise_2.11.12/2.1.1/paradise_2.11.12-2.1.1.pom
100.0% [##########] 2.0 KiB (18.3 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.12/scala-compiler-2.11.12.pom
100.0% [##########] 2.3 KiB (22.5 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.11.12/scala-reflect-2.11.12.pom
100.0% [##########] 1.5 KiB (5.8 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.pom
100.0% [##########] 2.1 KiB (20.4 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.5/scala-xml_2.11-1.0.5.pom
100.0% [##########] 2.5 KiB (23.9 KiB / s)
[info] Resolved argonaut-shapeless dependencies
[info] Updating argonaut-shapeless
https://repo1.maven.org/maven2/jline/jline/2.14.3/jline-2.14.3.pom
100.0% [##########] 19.4 KiB (99.1 KiB / s)
[info] Resolved argonaut-shapeless dependencies
[info] Updating refined
https://repo1.maven.org/maven2/com/chuusai/shapeless_2.11/2.3.3/shapeless_2.11-2.3.3.pom
100.0% [##########] 2.2 KiB (21.6 KiB / s)
https://repo1.maven.org/maven2/eu/timepit/refined_2.11/0.9.2/refined_2.11-0.9.2.pom
100.0% [##########] 2.8 KiB (20.5 KiB / s)
https://repo1.maven.org/maven2/io/argonaut/argonaut_2.11/6.2.2/argonaut_2.11-6.2.2.pom
100.0% [##########] 2.4 KiB (8.4 KiB / s)
https://repo1.maven.org/maven2/org/typelevel/macro-compat_2.11/1.1.1/macro-compat_2.11-1.1.1.pom
100.0% [##########] 1.9 KiB (19.5 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.1.0/scala-xml_2.11-1.1.0.pom
100.0% [##########] 2.7 KiB (24.0 KiB / s)
[info] Resolved refined dependencies
[info] Updating coreJS
https://repo1.maven.org/maven2/org/scala-js/scalajs-library_2.11/0.6.26/scalajs-library_2.11-0.6.26.pom
100.0% [##########] 2.2 KiB (15.9 KiB / s)
https://repo1.maven.org/maven2/io/argonaut/argonaut_sjs0.6_2.11/6.2.2/argonaut_sjs0.6_2.11-6.2.2.pom
100.0% [##########] 2.8 KiB (12.7 KiB / s)
https://repo1.maven.org/maven2/org/scala-js/scalajs-test-interface_2.11/0.6.26/scalajs-test-interface_2.11-0.6.26.pom
100.0% [##########] 2.2 KiB (14.6 KiB / s)
https://repo1.maven.org/maven2/com/chuusai/shapeless_sjs0.6_2.11/2.3.3/shapeless_sjs0.6_2.11-2.3.3.pom
100.0% [##########] 2.7 KiB (8.9 KiB / s)
[info] Resolved coreJS dependencies
[info] Updating coreJS
https://repo1.maven.org/maven2/org/scala-js/scalajs-compiler_2.11.12/0.6.26/scalajs-compiler_2.11.12-0.6.26.pom
100.0% [##########] 2.6 KiB (20.7 KiB / s)
[info] Resolved coreJS dependencies
[info] Updating coreTestJS
https://repo1.maven.org/maven2/com/lihaoyi/utest_sjs0.6_2.11/0.6.6/utest_sjs0.6_2.11-0.6.6.pom
100.0% [##########] 2.2 KiB (15.3 KiB / s)
https://repo1.maven.org/maven2/com/github/alexarchambault/scalacheck-shapeless_1.13_sjs0.6_2.11/1.1.8/scalacheck-shapeless_1.13_sjs0.6_2.11-1.1.8.pom
100.0% [##########] 2.5 KiB (13.3 KiB / s)
https://repo1.maven.org/maven2/org/portable-scala/portable-scala-reflect_sjs0.6_2.11/0.1.0/portable-scala-reflect_sjs0.6_2.11-0.1.0.pom
100.0% [##########] 2.6 KiB (19.5 KiB / s)
https://repo1.maven.org/maven2/org/scalacheck/scalacheck_sjs0.6_2.11/1.13.5/scalacheck_sjs0.6_2.11-1.13.5.pom
100.0% [##########] 1.8 KiB (13.0 KiB / s)
[info] Resolved coreTestJS dependencies
[info] Fetching artifacts of coreJS
https://repo1.maven.org/maven2/org/typelevel/macro-compat_2.11/1.1.1/macro-compat_2.11-1.1.1.jar
100.0% [##########] 3.1 KiB (27.9 KiB / s)
https://repo1.maven.org/maven2/org/scalamacros/paradise_2.11.12/2.1.1/paradise_2.11.12-2.1.1.jar
100.0% [##########] 265.2 KiB (541.2 KiB / s)
https://repo1.maven.org/maven2/org/scala-js/scalajs-test-interface_2.11/0.6.26/scalajs-test-interface_2.11-0.6.26.jar
100.0% [##########] 485.6 KiB (552.4 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.5/scala-xml_2.11-1.0.5.jar
100.0% [##########] 655.4 KiB (1.1 MiB / s)
https://repo1.maven.org/maven2/com/chuusai/shapeless_sjs0.6_2.11/2.3.3/shapeless_sjs0.6_2.11-2.3.3.jar
100.0% [##########] 6.8 MiB (4.3 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.12/scala-library-2.11.12.jar
100.0% [##########] 5.5 MiB (5.0 MiB / s)
https://repo1.maven.org/maven2/jline/jline/2.14.3/jline-2.14.3.jar
100.0% [##########] 262.2 KiB (2.2 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar
100.0% [##########] 413.8 KiB (2.1 MiB / s)
https://repo1.maven.org/maven2/org/scala-js/scalajs-compiler_2.11.12/0.6.26/scalajs-compiler_2.11.12-0.6.26.jar
100.0% [##########] 1.8 MiB (566.5 KiB / s)
https://repo1.maven.org/maven2/io/argonaut/argonaut_sjs0.6_2.11/6.2.2/argonaut_sjs0.6_2.11-6.2.2.jar
100.0% [##########] 3.4 MiB (630.7 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.12/scala-compiler-2.11.12.jar
100.0% [##########] 14.9 MiB (2.6 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.11.12/scala-reflect-2.11.12.jar
100.0% [##########] 4.4 MiB (464.2 KiB / s)
[info] Fetched artifacts of coreJS
[info] Fetching artifacts of refined
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.1.0/scala-xml_2.11-1.1.0.jar
100.0% [##########] 656.1 KiB (1.5 MiB / s)
https://repo1.maven.org/maven2/eu/timepit/refined_2.11/0.9.2/refined_2.11-0.9.2.jar
100.0% [##########] 618.0 KiB (771.6 KiB / s)
https://repo1.maven.org/maven2/io/argonaut/argonaut_2.11/6.2.2/argonaut_2.11-6.2.2.jar
100.0% [##########] 2.0 MiB (1.7 MiB / s)
[info] Fetched artifacts of refined
[info] Fetching artifacts of coreTestJS
[info] Compiling 2 Scala sources to /Users/kmeredith/Workspace/argonaut-shapeless/refined/target/scala-2.11/classes ...ess_1.13_sjs0.6_2.11-1.1.8.jar
[info] Compiling 7 Scala sources to /Users/kmeredith/Workspace/argonaut-shapeless/core/js/target/scala-2.11/classes ...ess_1.13_sjs0.6_2.11-1.1.8.jar
https://repo1.maven.org/maven2/org/portable-scala/portable-scala-reflect_sjs0.6_2.11/0.1.0/portable-scala-reflect_sjs0.6_2.11-0.1.0.jar
100.0% [##########] 6.6 KiB (32.0 KiB / s)
https://repo1.maven.org/maven2/com/github/alexarchambault/scalacheck-shapeless_1.13_sjs0.6_2.11/1.1.8/scalacheck-shapeless_1.13_sjs0.6_2.11-1.1.8.jar
100.0% [##########] 334.4 KiB (1.0 MiB / s)
[info] Non-compiled module 'compiler-bridge_2.11' for Scala 2.11.12. Compiling...check_sjs0.6_2.11-1.13.5.jar
https://repo1.maven.org/maven2/com/lihaoyi/utest_sjs0.6_2.11/0.6.6/utest_sjs0.6_2.11-0.6.6.jar
100.0% [##########] 706.7 KiB (1.3 MiB / s)
[info] Fetched artifacts of coreTestJS
http://dl.bintray.com/tpolecat/maven/org/tpolecat/tut-core_2.11/0.6.3/tut-core_2.11-0.6.3.pom
100.0% [##########] 1.8 KiB (2.4 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.6/scala-xml_2.11-1.0.6.pom
100.0% [##########] 2.5 KiB (19.5 KiB / s)
[info] Resolved doc dependencies
[info] Updating coreTestJVMen2/com/github/alexarchambault/scalacheck-shapeless_1.13_2.11/1.1.8/scalacheck-shapeless_1.13_2.11-1.1.8.pom
https://repo1.maven.org/maven2/com/github/alexarchambault/scalacheck-shapeless_1.13_2.11/1.1.8/scalacheck-shapeless_1.13_2.11-1.1.8.pom
100.0% [##########] 2.1 KiB (22.0 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/utest_2.11/0.6.6/utest_2.11-0.6.6.pom
100.0% [##########] 2.3 KiB (10.9 KiB / s)
https://repo1.maven.org/maven2/org/scalacheck/scalacheck_2.11/1.13.5/scalacheck_2.11-1.13.5.pom
100.0% [##########] 1.6 KiB (13.2 KiB / s)
https://repo1.maven.org/maven2/org/portable-scala/portable-scala-reflect_2.11/0.1.0/portable-scala-reflect_2.11-0.1.0.pom
100.0% [##########] 2.4 KiB (17.7 KiB / s)
[info] Resolved coreTestJVM dependencies
[info] Fetching artifacts of coreTestJVM
https://repo1.maven.org/maven2/org/portable-scala/portable-scala-reflect_2.11/0.1.0/portable-scala-reflect_2.11-0.1.0.jar
100.0% [##########] 33.7 KiB (234.1 KiB / s)
https://repo1.maven.org/maven2/com/github/alexarchambault/scalacheck-shapeless_1.13_2.11/1.1.8/scalacheck-shapeless_1.13_2.11-1.1.8.jar
100.0% [##########] 207.7 KiB (865.6 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/utest_2.11/0.6.6/utest_2.11-0.6.6.jar
100.0% [##########] 427.9 KiB (1.0 MiB / s)
[info] Fetched artifacts of coreTestJVM
[info] Fetching artifacts of docaven/org/tpolecat/tut-core_2.11/0.6.3/tut-core_2.11-0.6.3.jar
[info] Fetched artifacts of doc
not a directory or jar file: /Users/kmeredith/Workspace/argonaut-shapeless/target/scala-2.11/classes
2019-03-04 09:50:30,503 pool-28-thread-2 ERROR No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 internal initialization logging.
[info] Compiling 7 Scala sources to /Users/kmeredith/Workspace/argonaut-shapeless/core/jvm/target/scala-2.11/classes ...
$
So there's no binary incompatibilities per this lack of output?

Perl - Issue installing or connecting to queue manager from MQSeries - 1.34 (Reason = 2059)

I tried to install MQSeries 1.34 from CPAN, and I was getting an error, which I found a fix for on the CPAN bug tracking website. So I applied the fix and still got a few test errors, but the build seemed okay. Installing it with a force install MQSeries worked. Once I had installed it, I can construct objects and reference the libraries in my other perl scripts, but when I try to connect to the queue manager or queue, I get an error back.
Any advice on what is wrong with the setup or how to fix this and get my connection back up and running would be much appreciated.
Here are specifics about my configuration:
$ uname -srvpio
Linux 2.6.32-573.22.1.el6.x86_64 #1 SMP Thu Mar 17 03:23:39 EDT 2016 x86_64 x86_64 GNU/Linux
$ /opt/mqm/bin/dspmqsver
Name: WebSphere MQ Advanced Message Security
Version: 7.5.0.0
Level: p000-L120604
BuildType: IKAP - (Production)
$ rpm -qa |grep 'MQ' |sort
MQSeriesAMS-7.5.0-0.x86_64
MQSeriesClient-7.5.0-0.x86_64
MQSeriesExplorer-7.5.0-0.x86_64
MQSeriesFTAgent-7.5.0-0.x86_64
MQSeriesFTBase-7.5.0-0.x86_64
MQSeriesFTLogger-7.5.0-0.x86_64
MQSeriesFTService-7.5.0-0.x86_64
MQSeriesFTTools-7.5.0-0.x86_64
MQSeriesGSKit-7.5.0-0.x86_64
MQSeriesJava-7.5.0-0.x86_64
MQSeriesJRE-7.5.0-0.x86_64
MQSeriesMan-7.5.0-0.x86_64
MQSeriesMsg_cs-7.5.0-0.x86_64
MQSeriesMsg_de-7.5.0-0.x86_64
MQSeriesMsg_es-7.5.0-0.x86_64
MQSeriesMsg_fr-7.5.0-0.x86_64
MQSeriesMsg_hu-7.5.0-0.x86_64
MQSeriesMsg_it-7.5.0-0.x86_64
MQSeriesMsg_ja-7.5.0-0.x86_64
MQSeriesMsg_ko-7.5.0-0.x86_64
MQSeriesMsg_pl-7.5.0-0.x86_64
MQSeriesMsg_pt-7.5.0-0.x86_64
MQSeriesMsg_ru-7.5.0-0.x86_64
MQSeriesMsg_Zh_CN-7.5.0-0.x86_64
MQSeriesMsg_Zh_TW-7.5.0-0.x86_64
MQSeriesRuntime-7.5.0-0.x86_64
MQSeriesSamples-7.5.0-0.x86_64
MQSeriesSDK-7.5.0-0.x86_64
MQSeriesServer-7.5.0-0.x86_64
MQSeriesXRClients-7.5.0-0.x86_64
MQSeriesXRService-7.5.0-0.x86_64
$ ./dispModVersion.pl MQSeries
Module Installed CPAN
MQSeries 1.34 1.34
$ perl -v
This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
$ perl -V
Summary of my perl5 (revision 5 version 22 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.32-573.22.1.el6.x86_64, archname=x86_64-linux
uname='linux ******* 2.6.32-573.22.1.el6.x86_64 #1 smp thu mar 17 03:23:39 edt 2016 x86_64 x86_64 x86_64 gnulinux '
config_args='-des -Dprefix=******'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2',
optimize='-O2',
cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-16)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at Apr 18 2016 15:46:59
%ENV:
PERL5BIN="*******/bin"
PERL5HOME="*******"
PERL5SITE="*******/lib/site_perl/5.22.1"
#INC:
*******/lib/site_perl/5.22.1/x86_64-linux
*******/lib/site_perl/5.22.1
*******/lib/5.22.1/x86_64-linux
*******/lib/5.22.1
When I first tried to install MQSeries, I got the following error:
t/99-pod.t .. 2/63
# Failed test 'POD test for MQSeries/Message/IIH.pm'
# at Test/Pod.pm line 187.
# MQSeries/Message/IIH.pm (415): Non-ASCII character seen before =encoding in 'Villag▒mez'. Assuming CP1252
# Looks like you failed 1 test of 63.
t/99-pod.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/63 subtests
Test Summary Report
-------------------
t/99-pod.t (Wstat: 256 Tests: 63 Failed: 1)
Failed test: 61
Non-zero exit status: 1
Files=1, Tests=63, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.34 cusr 0.00 csys = 0.37 CPU)
Result: FAIL
Failed 1/1 test programs. 1/63 subtests failed.
Then, I modified the file MQSeries/Message/IIH.pm to add =encoding ISO-8859-1 at the start of the file, per bug report on CPAN, I ran the install again and got the following:
t/99-pod.t .. ok
All tests successful.
Files=1, Tests=63, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.34 cusr 0.01 csys = 0.39 CPU)
Result: PASS
make[1]: Entering directory `build/MQSeries-1.34-SLJq6K/MQClient'
PERL_DL_NONLAZY=1 "perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
t/10constants.t ........... ok
t/20convert.t ............. Failed 5/6 subtests
t/30basic.t ............... ok
t/31properties.t .......... ok
t/32async_put.t ........... ok
t/40oo-qmgr.t ............. 3/14 MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at t/40oo-qmgr.t line 38.
# Failed test 'MQSeries::QueueManager - constructor'
# at t/40oo-qmgr.t line 39.
t/40oo-qmgr.t ............. 5/14 MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at t/40oo-qmgr.t line 52.
# Failed test 'MQSeries::QueueManager - Connect'
# at t/40oo-qmgr.t line 58.
t/40oo-qmgr.t ............. 7/14 MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at t/40oo-qmgr.t line 73.
# Failed test 'MQSeries::QueueManager - constructor'
# at t/40oo-qmgr.t line 74.
Can't call method "Open" on an undefined value at t/40oo-qmgr.t line 77.
# Looks like you planned 14 tests but ran 7.
# Looks like you failed 3 tests of 7 run.
# Looks like your test exited with 13 just after 7.
t/40oo-qmgr.t ............. Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 10/14 subtests
t/50oo-command.t .......... ok
t/51oo-command-changes.t .. ok
t/52oo-command-filter.t ... ok
t/60-logs.t ............... ok
t/70-config.t ............. ok
Test Summary Report
-------------------
t/20convert.t (Wstat: 0 Tests: 2 Failed: 1)
Failed test: 2
Parse errors: Bad plan. You planned 6 tests but ran 2.
t/40oo-qmgr.t (Wstat: 3328 Tests: 7 Failed: 3)
Failed tests: 3, 5, 7
Non-zero exit status: 13
Parse errors: Bad plan. You planned 14 tests but ran 7.
Files=11, Tests=5334, 1264 wallclock secs ( 0.96 usr 0.02 sys + 1.56 cusr 0.18 csys = 2.72 CPU)
Result: FAIL
Failed 2/11 test programs. 4/5334 subtests failed.
If I force the install, I can get it to finish the install after everything is said and done, but then I get the following error when trying to connect:
MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at testMQConnectivity.pl line 16.
MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at testMQConnectivity.pl line 16.
at MQSeries/QueueManager.pm line 809.
MQSeries::QueueManager::Connect(MQSeries::QueueManager=HASH(0x24a7180)) called at MQSeries/QueueManager.pm line 155
MQSeries::QueueManager::new(undef, "QueueManager", "*******", "Reason", SCALAR(0x151d4f0), "CompCode", SCALAR(0x151d610), "ClientConn", ...) called at testMQConnectivity.pl line 16
I edited the CONFIG file after pulling the data from CPAN to reference my remote MQ Queues that I can connect to using /opt/mqm/samp/bin/amqsputc or /opt/mqm/samp/bin/amqsgetc, after setting export MQSERVER=..., if I run make test TEST_VERBOSE=1 from the working CPAN directory, I see the following output:
t/20convert.t:
t/20convert.t .............
1..6
ok 1
ok 2
ok 3
ok 4
MQGET failed: CompCode => 2, Reason => 2033
not ok 5
Message conversion failed.
Should be: 'This msg is in EBCDIC'
Is: ''
not ok 6
Failed 2/6 subtests
t/31properties.t:
t/31properties.t ..........
1..22
ok 1 - use MQClient::MQSeries;
Connecting to queue manager '*******' (MQCONN)
ok 2 - MQCONN
Opening queue manager for inquire
ok 3 - MQOPEN - queue manager
Querying queue manager attributes (MQINQ)
ok 4 - MQINQ
Closing queue manager object handle (MQCLOSE)
ok 5 - MQCLOSE - queue manager
Create message handle object (MQCRTMH)
ok 6 - MQCRTMH
Set message property (MQSETMP - string)
ok 7 - MQSETMP - string
Set message property (MQSETMP - float)
ok 8 - MQSETMP - float
Set message property (MQSETMP - int)
ok 9 - MQSETMP - int
Inquire message property (MQINQMP - float)
ok 10 - MQINQMP - float
ok 11 - MQINQMP - float value okay (3.14164996147156)
Delete float property
ok 12 - MQDLTMP - float
Opening queue '*******' (MQOPEN)
ok 13 - MQOPEN - queue
Putting message with properties (MQPUT)
ok 14 - MQPUT
Create message handle object (MQCRTMH #2)
ok 15 - MQCRTMH \#2
Getting message (MQGET)
not ok 16 - MQGET
# Failed test 'MQGET'
# at t/31properties.t line 146.
Inquire message property (MQINQMP - int)
not ok 17 - MQINQMP - int
# Failed test 'MQINQMP - int'
# at t/31properties.t line 156.
Use of uninitialized value $prop in concatenation (.) or string at t/31properties.t line 157.
not ok 18 - MQINQMP - int value okay ()
# Failed test 'MQINQMP - int value okay ()'
# at t/31properties.t line 157.
# got: undef
# expected: '42'
Delete message handle (MQDLTMH)
ok 19 - MQDLTMH
Delete message handle (MQDLTMH #2)
ok 20 - MQDLTMH \#2
Closing queue (MQCLOSE)
ok 21 - MQCLOSE
Disconnecting (MQDISC)
ok 22 - MQDISC
# Looks like you failed 3 tests of 22.
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/22 subtests
t/32async_put.t:
t/32async_put.t ...........
1..25
ok 1 - use MQClient::MQSeries;
Connecting to queue manager '*******' (MQCONN)
ok 2 - MQCONN
Opening queue manager for inquire
ok 3 - MQOPEN - queue manager
Querying queue manager attributes (MQINQ)
MQINQ returned: CompCode => 0, Reason => 0
ok 4 - MQINQ
Closing queue manager object handle (MQCLOSE)
ok 5 - MQCLOSE - queue manager
Opening queue '*******' (MQOPEN)
ok 6 - MQOPEN - queue
Putting message #1 (async MQPUT)
ok 7 - MQPUT - 1
Putting message #2 (async MQPUT)
ok 8 - MQPUT - 2
Putting message #3 (async MQPUT)
ok 9 - MQPUT - 3
Putting message #4 (async MQPUT)
ok 10 - MQPUT - 4
Putting message #5 (async MQPUT)
ok 11 - MQPUT - 5
Getting status info (MQSTAT)
ok 12 - MQSTAT
not ok 13 - MQSTAT result
# Failed test 'MQSTAT result'
# at t/32async_put.t line 120.
# Structures begin differing at:
# $got->{PutSuccessCount} = '5'
# $expected->{PutSuccessCount} = '0'
Getting message #1 (MQGET)
ok 14 - MQGET - 1
ok 15 - MQGET message content - 1
Getting message #2 (MQGET)
ok 16 - MQGET - 2
ok 17 - MQGET message content - 2
Getting message #3 (MQGET)
ok 18 - MQGET - 3
ok 19 - MQGET message content - 3
Getting message #4 (MQGET)
ok 20 - MQGET - 4
ok 21 - MQGET message content - 4
Getting message #5 (MQGET)
ok 22 - MQGET - 5
ok 23 - MQGET message content - 5
Closing queue (MQCLOSE)
ok 24 - MQCLOSE
Disconnecting (MQDISC)
ok 25 - MQDISC
# Looks like you failed 1 test of 25.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/25 subtests
And t/40oo-qmgr.t, which was previously failing now executes successfully:
t/40oo-qmgr.t:
t/40oo-qmgr.t .............
1..14
ok 1 - use MQClient::MQSeries;
ok 2 - use MQSeries::QueueManager;
ok 3 - MQSeries::QueueManager - constructor
ok 4 - MQSeries::QueueManager - constructor - AutoConnect=0
ok 5 - MQSeries::QueueManager - Connect
ok 6 - MQSeries::QueueManager - Disconnect
ok 7 - MQSeries::QueueManager - constructor
ok 8 - MQSeries::QueueManager - Open
ok 9 - MQSeries::QueueManager - Inquire
ok 10 - MQSeries::QueueManager - Inquire - Platform
ok 11 - MQSeries::QueueManager - Inquire - CodedCharSetId
ok 12 - MQSeries::QueueManager - Inquire - CommandLevel
ok 13 - MQSeries::QueueManager - Inquire - DeadLetterQName
ok 14 - MQSeries::QueueManager - Close
ok
Yielding the final results:
Test Summary Report
-------------------
t/20convert.t (Wstat: 0 Tests: 6 Failed: 2)
Failed tests: 5-6
t/31properties.t (Wstat: 768 Tests: 22 Failed: 3)
Failed tests: 16-18
Non-zero exit status: 3
t/32async_put.t (Wstat: 256 Tests: 25 Failed: 1)
Failed test: 13
Non-zero exit status: 1
Files=11, Tests=5345, 183 wallclock secs ( 1.02 usr 0.08 sys + 1.48 cusr 0.18 csys = 2.76 CPU)
Result: FAIL
Failed 3/11 test programs. 6/5345 subtests failed.
Any ideas on how to get this resolved and get the package up and running?
If I run /opt/mqm/samp/bin/amqsputc or /opt/mqm/samp/bin/amqsgetc, I can connect to the same host, port, channel, queue manager, and queue from this host.
Thanks!

Why can't I compile the iText source code?

I get an error after running mvn install -P all -e to compile and install iText.
I've also done mvn clean on before hand. The error says:
testFlatteningGenerateAppearances2(com.itextpdf.text.pdf.FlatteningTest):
Path to GhostScript is not specified. Please use -DgsExec
Do I need to install Ghostscript?
I thought maven would take care of all dependencies.
C:\code4-itext\itext-code-6558-trunk\itext>mvn install -P all -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building iText, a Free Java-PDF library 5.5.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.1:create (default) # itextpdf ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: C:\code4-itext\itext-code-6558-trunk\itext
[INFO] Storing buildNumber: null at timestamp: 1410923963268
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: C:\code4-itext\itext-code-6558-trunk\itext
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # itextpdf ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 24 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # itextpdf ---
[INFO] Compiling 601 source files to C:\code4-itext\itext-code-6558-trunk\itext\target\classes
[INFO]
[INFO] --- maven-bundle-plugin:2.3.4:manifest (bundle-manifest) # itextpdf ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # itextpdf ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 189 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # itextpdf ---
[INFO] Compiling 63 source files to C:\code4-itext\itext-code-6558-trunk\itext\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.9:test (default-test) # itextpdf ---
[INFO] Surefire report directory: C:\code4-itext\itext-code-6558-trunk\itext\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.itextpdf.text.pdf.CMapAwareDocumentFontTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.25 sec
Running com.itextpdf.text.pdf.parser.LocationTextExtractionStrategyTest
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec
Running com.itextpdf.text.pdf.parser.VectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.RandomAccessFileOrArrayTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.ChunkTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec
Running com.itextpdf.text.pdf.fonts.cmaps.CMapTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.cs.LabColorSpaceTest
[itext] INFO Comparing by content..........OK
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.itextpdf.text.pdf.TextFieldTest
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.itextpdf.text.io.FileChannelRandomAccessSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
Running com.itextpdf.text.io.GroupedRandomAccessSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.TaggedPdfCopyTest
Tests run: 30, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 24.726 sec
Running com.itextpdf.text.pdf.parser.MatrixTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.error_messages.ErrorMessageTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.MappedRandomAccessFileTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.html.parser.HtmlWorkerWhitSpaceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.pdf.parser.GlyphTextRenderListenerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.AcroFieldsTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running com.itextpdf.text.io.ArrayRandomAccessSourceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.TestPdfCopyAndStamp
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.PRTokeniserTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.ToUnicodeNonBreakableSpacesTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.io.PagedChannelRandomAccessSourceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.io.GetBufferedRandomAccessSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.fonts.cmaps.CMapParserExTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.PdfReaderSelectPagesTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.cs.DeviceNColorSpaceTest
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.table.RowspanTest
true
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
Running com.itextpdf.text.RemoteGifImageTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.983 sec
Running com.itextpdf.text.xml.simpleparser.SimpleXMLParserTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.signature.XmlDSigRsaTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.546 sec
Running com.itextpdf.text.html.WebColorTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.pdf.parser.TextRenderInfoTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.error_messages.MessageLocalizationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.fonts.SymbolTest
[itext] INFO Comparing by content..........OK
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.error_messages.ErrorMessageExistenceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 sec
Running com.itextpdf.text.pdf.DocumentFontTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.html.parser.HtmlWorkerParagraphTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.html.parser.HtmlWorkerLinkTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.UnbalancedOperatorsTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.parser.PdfImageObjectTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.249 sec
Running com.itextpdf.text.pdf.FlatteningTest
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 9, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec <<< FAILURE!
Running com.itextpdf.text.signature.XadesTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running com.itextpdf.text.signature.XmlDSigCertTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.093 sec
Running com.itextpdf.text.pdf.parser.MultiFilteredRenderListenerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.468 sec
Running com.itextpdf.text.pdf.parser.TextMarginFinderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.PdfReaderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.MultithreadedTtfTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running com.itextpdf.text.pdf.PdfCopyTest
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.406 sec
Running com.itextpdf.text.pdf.parser.SimpleTextExtractionStrategyTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.signature.XmlDSigKSTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec
Running com.itextpdf.text.pdf.BookmarksTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.parser.PdfTextExtractorEncodingsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.187 sec
Running com.itextpdf.text.io.WindowRandomAccessSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.parser.FilteredTextRenderListenerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.testutils.ClearOutTempFilesDuringTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.MetaDataTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.html.parser.HtmlXFAWorkerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.TaggedPdfTest
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.342 sec
Running com.itextpdf.text.pdf.parser.PdfContentStreamProcessorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.xml.xmp.XmpWriterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Results :
Failed tests: testFlatteningGenerateAppearances2(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<p
ath_to_ghostscript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances1(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlattening(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostscript> (e.g. -DgsExec
="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances4(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances5(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances6(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances3(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
Tests run: 246, Failures: 7, Errors: 0, Skipped: 4
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.209 s
[INFO] Finished at: 2014-09-16T20:20:07-08:00
[INFO] Final Memory: 29M/552M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on project itextpdf: There are test failures.
[ERROR]
[ERROR] Please refer to C:\code4-itext\itext-code-6558-trunk\itext\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
on project itextpdf: There are test failures.
Please refer to C:\code4-itext\itext-code-6558-trunk\itext\target\surefire-reports for the individual test results.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
Please refer to C:\code4-itext\itext-code-6558-trunk\itext\target\surefire-reports for the individual test results.
at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:87)
at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:631)
at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:605)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:136)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:97)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
C:\code4-itext\itext-code-6558-trunk\itext>
Add the parameter maven.test.skip=true or skipTests=true in the command line. The tests create plenty of PDF files (new documents) that need to be compared with reference PDF files (existing documents stored with the tests). Ghostscript is used to create images of those PDF files. These images are compared on a pixel basis to check if the new files have the same appearance of the reference files.
If you want to build iText with the tests, you need Ghostscript.
If you want to build iText merely to get a jar, you can skip the tests and you don't need Ghostscript.