Skip to content

Commit

Permalink
pazpar2: restore proper test
Browse files Browse the repository at this point in the history
This was removed in dacab63 as running pazpar2
with the -t option caused a crash at the time.

This issue has been fixed in pazpar2 by now, so we
can restore the test we previously had.

Closes #8459.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
  • Loading branch information
ssp authored and nijikon committed Jan 4, 2017
1 parent 4ef3130 commit d062d21
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Formula/pazpar2.rb
Expand Up @@ -30,6 +30,16 @@ def install
end

test do
system "#{sbin}/pazpar2", "-V"
(testpath/"test-config.xml").write <<-EOS.undent
<?xml version="1.0" encoding="UTF-8"?>
<pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
<threads number="2"/>
<server>
<listen port="8004"/>
</server>
</pazpar2>
EOS

system "#{sbin}/pazpar2", "-t", "-f", "#{testpath}/test-config.xml"
end
end

0 comments on commit d062d21

Please sign in to comment.