Skip to content

Commit

Permalink
K and I information in swig tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Marcais authored and Guillaume Marcais committed Mar 19, 2024
1 parent 355188d commit c0b5e4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/swig_perl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ mkdir -p tests-data; cd tests-data
LOADPATH="$BUILDDIR/swig/perl5"
K=$($PERL -e 'print(int(rand(16)) + 6)')
I=$($PERL -e 'print(int(rand(5)))')

echo "K $K I $I"

$JF count -m $K -s 10M -t $nCPUs -C -o ${pref}.jf seq1m_$I.fa
$JF dump -c ${pref}.jf > ${pref}.dump
$JF histo ${pref}.jf > ${pref}.histo
Expand Down
3 changes: 3 additions & 0 deletions tests/swig_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ mkdir -p tests-data; cd tests-data
export PYTHONPATH="$BUILDDIR/swig/python/.libs:$BUILDDIR/swig/python${PYTHONPATH+:$PYTHONPATH}"
K=$($PYTHON -c 'import random; print(random.randint(6, 20))')
I=$($PYTHON -c 'import random; print(random.randint(0, 4))')

echo "K $K I $I"

$JF count -m $K -s 10M -t $nCPUs -C -o ${pref}.jf seq1m_$I.fa
$JF dump -c ${pref}.jf > ${pref}.dump
$JF histo ${pref}.jf > ${pref}.histo
Expand Down
3 changes: 3 additions & 0 deletions tests/swig_ruby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ mkdir -p tests-data; cd tests-data
LOADPATH="$BUILDDIR/swig/ruby/.libs"
K=$($RUBY -e 'print(rand(15) + 6)')
I=$($RUBY -e 'print(rand(5))')

echo "K $K I $I"

$JF count -m $K -s 10M -t $nCPUs -C -o ${pref}.jf seq1m_$I.fa
$JF dump -c ${pref}.jf > ${pref}.dump
$JF histo ${pref}.jf > ${pref}.histo
Expand Down

0 comments on commit c0b5e4f

Please sign in to comment.