-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkselftests.sh
executable file
·42 lines (39 loc) · 1.15 KB
/
kselftests.sh
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
#!/bin/sh
if [ ! -e /root/kselftest.tar.gz ];then
case $(uname -m) in
aarch64)
KSARCH=arm64
;;
x86_64)
KSARCH=x86
;;
armv7l)
KSARCH=arm
echo "SKIP: kselftests are disabled on ARM"
exit 0
;;
*)
echo "SKIP: no kselftests for $(uname -m) arch"
exit 0
;;
esac
# TODO move this in rootfs generation
wget http://storage.kernelci.org/images/selftests/$KSARCH/kselftest.tar.gz
fi
tar xzf kselftest.tar.gz || exit $?
cd kselftest
# remove test which stuck
sed -i 's,.*ftracetest.*,echo "selftests: ftracetest [SKIP]",' run_kselftest.sh
# remove some tests which always fail
sed -i 's,.*execveat.*,echo "selftests: execveat [SKIP]",' run_kselftest.sh
sed -i 's,.*test_bpf.sh.*,echo "selftests: test_bpf.sh [SKIP]",' run_kselftest.sh
sed -i 's,.*run_vmtests.*,echo "selftests: run_vmtests [SKIP]",' run_kselftest.sh
sed -i 's,.*fw_filesystem.sh.*,echo "selftests: fw_filesystem.sh [SKIP]",' run_kselftest.sh
sed -i 's,.*fw_userhelper.sh.*,echo "selftests: fw_userhelper.sh [SKIP]",' run_kselftest.sh
# spetial arch cases
case $(uname -m) in
aarch64)
sed -i 's,.*mq_perf_tests.*,echo "selftests: mq_perf_tests [SKIP]",' run_kselftest.sh
;;
esac
./run_kselftest.sh