summaryrefslogtreecommitdiff
path: root/test/start-local-webservices.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2009-08-17 11:04:41 +0200
committerChristoph Helma <helma@in-silico.de>2009-08-17 11:04:41 +0200
commite5b63460933112573a4e5ed1f2825c9267370ce0 (patch)
tree06cc7653dba8b71707f5cb6d446a5309b2899604 /test/start-local-webservices.rb
parenta5adc95d43368b976d33be3f00068bdd8e4d255c (diff)
lazar prediction class added, tests finished
Diffstat (limited to 'test/start-local-webservices.rb')
-rwxr-xr-xtest/start-local-webservices.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/start-local-webservices.rb b/test/start-local-webservices.rb
new file mode 100755
index 0000000..66dea29
--- /dev/null
+++ b/test/start-local-webservices.rb
@@ -0,0 +1,13 @@
+#!/usr/bin/env ruby
+require 'fileutils'
+
+port = 5000
+[ "opentox-compound", "opentox-feature" , "opentox-dataset" , "opentox-fminer" , "opentox-lazar" ].each do |component|
+ ENV[component.upcase.gsub(/-/,'_')] = "http://localhost:#{port}/"
+ Dir.chdir ENV['HOME'] + '/webservices/' + component
+ Dir["test.sqlite3"].each { |f| FileUtils.rm_rf(f) }
+ file = 'application.rb'
+ pid = fork {`urxvt -title #{component} -e thin --debug --rackup config.ru start -p #{port} -e test`}
+ Process.detach(pid)
+ port += 1
+end