]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/lib.sh
Added simple test to check the infrastructure
[can-benchmark.git] / tests / lib.sh
1 set -x
2 set -e
3
4 PATH=$PWD/../_compiled/bin/:$PATH
5
6 rmmod_can() {
7     modprobe -r lincan
8 }
9
10 load_lincan_hw() {
11     rmmod_can
12     modprobe -C /dev/null lincan hw=pcican-q io=1 baudrate=1000,1000,1000,1000 processlocal=0
13     sleep 0.1
14 }
15
16 load_lincan_virtual() {
17     rmmod_can
18     modprobe -C /dev/null lincan hw=virtual io=0 baudrate=0
19     sleep 0.1
20 }
21
22 load_socketcan() {
23     rmmod_can
24 }