Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Commit

Permalink
R/qtl: Fixed Ruby integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Dec 5, 2009
1 parent 48a89d6 commit 6290c15
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/clibs/rqtl
1 change: 1 addition & 0 deletions src/mappings/swig/rqtl.i
Expand Up @@ -9,5 +9,6 @@
#include <mqmprob.h>
%}

%include <scanone_mr.h>
%include <mqmdatatypes.h>
%include <mqmprob.h>
2 changes: 1 addition & 1 deletion src/mappings/swig/ruby/affyio/CMakeLists.txt
Expand Up @@ -15,10 +15,10 @@ ENDIF(NOT BUILD_LIBS)
SET (USE_CORE TRUE)
SET (USE_RLIB TRUE)
SET (USE_ZLIB TRUE)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY biolib)

FIND_PACKAGE(MapRuby)

BUILD_RUBY_BINDINGS()
TEST_RUBY_BINDINGS()
INSTALL_RUBY_BINDINGS()

3 changes: 2 additions & 1 deletion src/mappings/swig/ruby/emboss/CMakeLists.txt
Expand Up @@ -22,10 +22,11 @@ INCLUDE_DIRECTORIES(${EMBOSS_PATH}/ajax/graphics)
INCLUDE_DIRECTORIES(${EMBOSS_PATH}/plplot)

# INCLUDE(CMakeBackwardCompatibilityC)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY biolib)
# SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY biolib)

FIND_PACKAGE(MapRuby)

BUILD_RUBY_BINDINGS()
TEST_RUBY_BINDINGS()
INSTALL_RUBY_BINDINGS()

Expand Down
10 changes: 1 addition & 9 deletions src/mappings/swig/ruby/rqtl/CMakeLists.txt
@@ -1,10 +1,6 @@
# Make biolib_ruby_rqtl module

cmake_minimum_required(VERSION 2.6)
ENABLE_TESTING()

SET (M_NAME rqtl)
# SET (M_VERSION 1.12)
SET (INTERFACE ruby_${M_NAME}.i)

IF(NOT BUILD_LIBS)
Expand All @@ -13,14 +9,10 @@ IF(NOT BUILD_LIBS)
ENDIF(NOT BUILD_LIBS)

SET (USE_RLIB TRUE)
# SET (USE_ZLIB TRUE)

# INCLUDE(CMakeBackwardCompatibilityC)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY biolib)
SET(USE_C_LINKAGE TRUE)

FIND_PACKAGE(MapRuby)

BUILD_RUBY_BINDINGS()
TEST_RUBY_BINDINGS()
INSTALL_RUBY_BINDINGS()

Expand Down
12 changes: 5 additions & 7 deletions src/mappings/swig/ruby/test/test_rqtl.rb
Expand Up @@ -6,15 +6,13 @@
# Rlib functions. Anything more elaborate would need to initialize
# Rlib first.

CRIL = 'R'
MAA = '0'

prob = Biolib::Rqtl.start_prob(CRIL,MAA);

raise "Error" if prob != 0.5
# CRIL = Biolib::CUNKNOWN
# MAA = '0'
# prob = Biolib::Rqtl.start_prob(CRIL,MAA);
# raise "Error" if prob != 0.5

res = Biolib::Rqtl.scanone_mr(0,0,0,[],[],0,[],0,[],[])
print "prob = #{prob}, result = #{res}"
print "result = #{res}"
print "Success!"
exit 0
end

0 comments on commit 6290c15

Please sign in to comment.