fix magic typo in test/README
[valse.git] / test / README
CommitLineData
3f3ed99c 1#!/bin/sh
3aed37d0 2set -e
3f3ed99c
BA
3
4#Testing procedure for EMGLLF (inside this folder):
5
6#0) Install current version of the package
7 # Should be library(roxygen2);roxygenize('.'), but roxygen2 6.0.1 bug
8 # ==> temporary workaround with devtools + document()
9 echo "setwd('../pkg');library(devtools);document()" | R --slave
10 R CMD INSTALL ../pkg
11
12#1) Generate data using R versions of EMGLLF/EMGrank (slow, but trusted)
13 cd generate_test_data/
14 echo "source('generateRunSaveTest_EMGLLF.R');\
b1969175 15 # I'm happy with default values - feel free to give args\
3f3ed99c
BA
16 generateRunSaveTest_EMGLLF() "\
17 | R --slave
923a335e 18 cd ..
3f3ed99c
BA
19
20#2) Compile test C code
923a335e 21 # Next line compile the test into an executable named "test.EMGLLF"
3f3ed99c
BA
22 make test.EMGLLF
23
24#3) Run it!
25 # Fingers crossed, hoping everything is alright
26 ./test.EMGLLF
923a335e
BA
27 # Ask valgrind (generally better idea ;) )
28 #valgrind ./test.EMGLLF
3f3ed99c
BA
29
30#For EMGrank: same procedure, just change EMGLLF to EMGrank everwhere.