-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
65 lines (65 loc) · 2.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
before_install:
- sudo apt install -y linux-headers-`uname -r`
- sudo apt install -y libaio-dev libsnappy-dev liblzma-dev zlib1g-dev
script:
# checkout source
- mkdir work
- cd work
- git clone --depth 1 --branch for-4.3 https://github.com/walb-linux/walb-driver
- git clone --depth 1 https://github.com/walb-linux/walb-tools
# make driver
- pushd walb-driver/module
- make
# insmod driver
- sudo insmod walb-mod.ko
- sudo dmesg|tail
- popd
# make userland tools
- pushd walb-tools
- make CXX=g++ CC=gcc utest -j4 ENABLE_EXEC_PROTOCOL=1
- echo make CXX=g++ CC=gcc utest_all ENABLE_EXEC_PROTOCOL=1
- echo utest/action_counter_test
- make CXX=g++ CC=gcc -j4 ENABLE_EXEC_PROTOCOL=1
# make loopback device for tests
- dd if=/dev/zero of=disk0 count=150 bs=1M
- dd if=/dev/zero of=disk1 count=300 bs=1M
- dd if=/dev/zero of=disk2 count=300 bs=1M
- dd if=/dev/zero of=disk3 count=300 bs=1M
- sudo losetup -f disk0
- sudo losetup -f disk1
- sudo losetup -f disk2
- sudo losetup -f disk3
- sudo losetup -a
# make logical volumes for test
- sudo pvcreate /dev/loop0
- sudo pvcreate /dev/loop1
- sudo pvcreate /dev/loop2
- sudo pvcreate /dev/loop3
- sudo pvs
- sudo vgcreate test /dev/loop0
- sudo vgcreate vg0 /dev/loop1
- sudo vgcreate vg1 /dev/loop2
- sudo vgcreate vg2 /dev/loop3
- sudo vgs
- echo sudo lvcreate -T -L 100m vg0/tp0
- echo sudo lvcreate -T -L 100m vg1/tp0
- echo sudo lvcreate -T -L 100m vg2/tp0
- sudo lvcreate -n data -L 15m test
- sudo lvcreate -n data2 -L 15m test
- sudo lvcreate -n data3 -L 15m test
- sudo lvcreate -n log -L 15m test
- sudo lvcreate -n log2 -L 15m test
- sudo lvcreate -n log3 -L 15m test
- for v in data data2 data3 log log2 log3; do sudo binsrc/wait-for-lv /dev/test/$v; done
- echo sudo python stest/scenario0.py -tp n1 n2 n3 n4a n4b n5 n6 n7 n8 n9 n10 n11a n11b n12 n13 n14
# start test
- sudo python stest/scenario0.py
# show log
- cat stest/tmp/*.log
- ls -al /dev/walb/*
- dmesg | tail -n 100