Skip to content

Commit

Permalink
Create tmon-logs.tgz
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkerYzu1 committed Aug 15, 2024
1 parent 29f86da commit 625c09f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/kernel-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ jobs:
vmlinuz: '${{ github.workspace }}/vmlinuz'
kernel-root: '.'
max-cpu: 8
kernel-test: ${{ inputs.test }}
kernel-test: ${{ inputs.test }}
toolchain: ${{ inputs.toolchain_full }}
1 change: 1 addition & 0 deletions .github/workflows/kernel-veristat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
# Don't run meta's veristat from forked repo.
kernel-test: ${{ github.event.pull_request.head.repo.full_name == github.repository && 'run_veristat_kernel,run_veristat_meta' || 'run_veristat_kernel' }}
output-dir: '${{ github.workspace }}'
toolchain: ${{ inputs.toolchain }}

- name: Compare and save veristat.kernel.csv
uses: ./.github/actions/veristat_baseline_compare
Expand Down
10 changes: 10 additions & 0 deletions ci/vmtest/vmtest_selftests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ WORKING_DIR="/${PROJECT_NAME}"
BPF_SELFTESTS_DIR="${WORKING_DIR}/selftests/bpf"
VMTEST_CONFIGS_PATH="${WORKING_DIR}/ci/vmtest/configs"
PKG_CONFIG=pkg-config
TMON_DIR=/tmp/tmon_pcap

read_lists() {
(for path in "$@"; do
Expand Down Expand Up @@ -190,6 +191,10 @@ echo "TMONLIST: ${TMONLIST}"
cd ${PROJECT_NAME}/selftests/bpf
if [ -d "${TMON_DIR}" ]; then
rm -rf "${TMON_DIR}"
fi
# populate TEST_NAMES
read_test_names "$@"
# if we don't have any test name provided to the script, we run all tests.
Expand All @@ -206,3 +211,8 @@ else
"${test_name}"
done
fi
if [ -d "${TMON_DIR}" ]; then
rm -rf "${OUTPUT_DIR}/tmon-logs"
mv "${TMON_DIR}" "${OUTPUT_DIR}/tmon-logs"
fi

0 comments on commit 625c09f

Please sign in to comment.