File: test.sh

package info (click to toggle)
ruby-gsl 2.1.0.3%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,984 kB
  • sloc: ansic: 62,039; ruby: 15,844; sh: 19; makefile: 12
file content (21 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash 
function compile_and_test {
  bundle install
  rake clobber
  rake compile --silent --quiet
  rake test  
}
echo "Testing without NMATRIX or NARRAY...\n\n"
unset NMATRIX
unset NARRAY
compile_and_test

echo "Testing with NMATRIX=1...\n\n"
export NMATRIX=1
compile_and_test
unset NMATRIX

echo "Testing with NARRAY=1...\n\n"
export NARRAY=1
compile_and_test
unset NARRAY