-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·40 lines (36 loc) · 846 Bytes
/
run.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
#!/bin/bash
test_string=${1:-"self-bpf-all"}
opaque=${2:-}
case ${test_string} in
"self-all")
;;
"self-net")
;;
"self-bpf-all")
;;
"self-bpf-test_progs")
;;
"self-bpf-test_progs_no_alu32")
;;
"self-bpf-test_progs_cpuv4")
;;
"self-bpf-test_maps")
;;
"self-bpf-test_verifier")
;;
*)
echo "::error::Not a valid test_string"
exit 1
;;
esac
echo "::notice::test_string: ${test_string}"
cd /build/my-linux
/usr/local/bin/ci/prepare_tests.sh
/usr/local/bin/ci/kernel_builder.sh rv64 kselftest plain gcc
/usr/local/bin/ci/kselftest_builder.sh rv64 kselftest plain gcc
/usr/local/bin/ci/test_runner.sh rv64 kselftest plain gcc ubuntu ${test_string} "${opaque}"
for i in /build/tests/run_test_*; do
echo "::group::Dumping $i"
cat $i
echo "::endgroup::"
done