File tree Expand file tree Collapse file tree 6 files changed +37
-9
lines changed Expand file tree Collapse file tree 6 files changed +37
-9
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ OUT_DIR="/tests/results_json"
21
21
# dependencies
22
22
source /build/.env/bin/activate
23
23
24
- # TODO ltp-controllers is too slow for now because of cgroup_fj_stress.sh
25
- # but I haven't found an easy to skip this one from tuxrun
26
- ltp_tests=( " ltp-commands" " ltp-syscalls" " ltp-mm" " ltp-hugetlb" " ltp-crypto" " ltp-cve" " ltp-containers" " ltp-fs" " ltp-sched" )
27
24
28
25
mkdir -p $OUT_DIR
29
26
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -euo pipefail
4
+
5
+ TESTS=($@ )
6
+
7
+ PARSED_TESTS=$( printf ' %s\n' " ${TESTS[@]} " | jq -R . | jq -cs .)
8
+ JSON=$( jq -cn --argjson tests " $PARSED_TESTS " ' {test: $tests}' )
9
+ echo " $JSON "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
set -euo pipefail
4
-
5
4
d=` dirname ${BASH_SOURCE[0]} `
6
- . $d /series/utils.sh
5
+ . $d /../ series/utils.sh
7
6
selftests=$1
8
7
output=$2
9
8
name=${3:- " matrix" }
@@ -13,6 +12,5 @@ curl -L $selftests -o selftests.tar.gz &&\
13
12
tar xvf selftests.tar.gz
14
13
15
14
parse_tests_array .
16
- KTESTS=$( printf ' %s\n' " ${kselftest_subtests[@]} " | jq -R . | jq -cs .)
17
- JSON=$( jq -cn --argjson tests " $KTESTS " ' {test: $tests}' )
18
- echo " $name$separator$JSON " >> $output
15
+ json=$( $d /generate_json.sh " ${kselftest_subtests[@]} " )
16
+ echo $name$separator$json >> $output
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -euo pipefail
4
+
5
+ d=` dirname ${BASH_SOURCE[0]} `
6
+
7
+ output=$1
8
+ name=${2:- " matrix" }
9
+ separator=${3:- " =" }
10
+ # TODO ltp-controllers is too slow for now because of cgroup_fj_stress.sh
11
+ # but I haven't found an easy to skip this one from tuxrun
12
+ ltp_tests=( " ltp-commands" " ltp-syscalls" " ltp-mm" " ltp-hugetlb" " ltp-crypto" " ltp-cve" " ltp-containers" " ltp-fs" " ltp-sched" )
13
+ json=$( $d /generate_json.sh " ${ltp_tests[@]} " )
14
+ echo $name$separator$json >> $output
Original file line number Diff line number Diff line change 40
40
- name : Create Matrix
41
41
id : create-matrix
42
42
run : |
43
- ./.github/scripts/generate_tests_array .sh "${{ inputs.selftests-url }}" $GITHUB_OUTPUT
43
+ ./.github/scripts/matrix/kselftest_matrix .sh "${{ inputs.selftests-url }}" $GITHUB_OUTPUT
44
44
45
45
run-tests :
46
46
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 21
21
type : string
22
22
23
23
jobs :
24
+ setup-matrix :
25
+ runs-on : ubuntu-latest
26
+ outputs :
27
+ matrix : ${{ steps.matrix.outputs.matrix }}
28
+ steps :
29
+ - name : Create LTP matrix
30
+ id : matrix
31
+ run : |
32
+ ./.github/scripts/matrix/ltp_matrix.sh $GITHUB_OUTPUT
33
+
24
34
run-ltp :
25
35
runs-on : ubuntu-latest
26
36
needs : setup-matrix
You can’t perform that action at this time.
0 commit comments