Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
scx: Run selftests in scx CI
Browse files Browse the repository at this point in the history
We have a fairly comprehensive set of selftests in
tools/selftests/sched_ext. Let's run them in CI.

Signed-off-by: David Vernet <[email protected]>
  • Loading branch information
Byte-Lab committed Apr 30, 2024
1 parent 1ea92e2 commit 1ef9ac4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/run-schedulers
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,14 @@ for sched in $(find tools/sched_ext/build/bin -type f -executable); do
echo "OK: ${sched}"
fi
done

# Run the selftests suite
runtest "tools/testing/selftests/sched_ext/runner"
sed -n -e '/not ok/q1' /tmp/output
res=$?
if [ ${res} -ne 0 ]; then
echo "FAIL: selftests"
echo "output: $(cat /tmp/output)"
else
echo "OK: selftests"
fi
5 changes: 4 additions & 1 deletion .github/workflows/test-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ jobs:
# Build a minimal kernel (with sched-ext enabled) using virtme-ng
- run: vng -v --build --config .github/workflows/sched-ext.config

# Build the selftests suite
- run: make -j $(nproc) -C tools/testing/selftests/sched_ext

# Build the in-kernel schedulers
- run: cd tools/sched_ext && make
- run: make -j $(nproc) -C tools/sched_ext

# Test the schedulers inside the recompile kernel
- run: .github/workflows/run-schedulers

0 comments on commit 1ef9ac4

Please sign in to comment.