-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
104 lines (84 loc) · 3.25 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
# .travis.yml
# =============================================================================
# VIRTual BLocK IO SIMulating (virtblkiosim). Version 0.9.10
# =============================================================================
# Virtual Linux block device driver for simulating and performing I/O.
#
# This is the configuration of the project characteristics
# used by the Travis CI (continuous integration) service
# to rebuild the project on every push and pull request.
#
%YAML 1.1
---
language: c
compiler: gcc
os: linux
dist: xenial
before_install:
- sudo apt-get update
## Installing the Linux kernel headers package to build the driver.
- sudo apt-get install linux-headers-`uname -r`
## Installing the Flexible I/O Tester package to test the driver.
- sudo apt-get install fio
##
# Installing the Doxygen (source code documentation system) package
# to generate docs for the driver and ioctl() testing utility.
#
- sudo apt-get install doxygen
script:
## Querying the system for characteristics and available resources.
- cat /proc/cpuinfo | grep name && echo
&& uname -a
&& echo
&& df -h
&& echo
&& free
## Building the Virtual Linux block device driver (virtblkiosim).
## Building the utility to run block device ioctl() tests (virtblkioctl).
## Generating docs (for both virtblkiosim and virtblkioctl).
- ls -al && make clean
&& make clean
&& ls -al
&& make all
&& make all
&& ls -al
&& cd src
&& ls -al
&& echo
&& file virtblkiosim.ko
&& echo
## Loading the driver into the running kernel.
- sudo insmod virtblkiosim.ko && lsblk
&& echo
&& lsmod | grep virtblkiosim
&& echo
&& ls -al /dev/virtblkiosim
&& echo
&& sudo cat /var/log/kern.log | grep virtblkiosim
## Returning to the previous working dir.
- cd - && ls -al
## Running the VIRTual BLocK IOCTLing utility.
- cd tests/ioctl && ls -al
&& echo
&& file virtblkioctl
&& echo
&& sudo ./virtblkioctl /dev/virtblkiosim --reguser none
## Returning to the previous working dir.
- cd - && ls -al
## Running the VIRTual BLocK IOFIOing (fio/libaio) tests.
- cd tests/iofio && ls -al
# && echo
# && sudo fio virtblkiofio-00-read.fio
# && echo
# && sudo fio virtblkiofio-01-write.fio
## Returning to the previous working dir.
- cd - && ls -al
&& ls -al docs/doxygen/html
&& ls -al
## Unloading the driver from the running kernel.
- sudo rmmod virtblkiosim && lsblk
&& echo
&& sudo cat /var/log/kern.log | grep virtblkiosim
...
# vim:set nu et ts=4 sw=4: