Skip to content
Permalink
Browse files

TST: Cover r_h2o_jarpath()

  • Loading branch information
pan14001 committed Jun 23, 2017
1 parent a80fe9a commit 8ab950bde479e3252ae06e90acd4e81fa52babc3
Showing with 17 additions and 0 deletions.
  1. +17 −0 tests/r.bats
@@ -0,0 +1,17 @@
#!/usr/bin/env bats

source $BATS_TEST_DIRNAME/../dietslurm

@test "h2o.jar file is detected in R h2o package" {
# h2o was not supported in R 3.0.2
module unload r
module load r/3.0.2
run r_h2o_jarpath
[[ "${output}" == "" ]]
# h2o is installed for R 3.3.3
module unload r
module load r/3.3.3
run r_h2o_jarpath
[[ $status -eq 0 ]]
[[ "${output}" == *"h2o.jar" ]]
}

0 comments on commit 8ab950b

Please sign in to comment.
You can’t perform that action at this time.