mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
--quit-after-boot: fix for gem5, update path to gem5.sh Improve the printing of results and errors: - remove newlines from IDs at the end for ./test-boot - remove newlines from progress for __call__ commands and don't print executed commands at all, otherwise there are too many lines per test and it is hard to tell what is going on - print backtraces for any exception in the threads (bugs while developing this code) Tests across different archs and emulators are still not running in parallel, which is a huge loss. TODO. thread_pool: introduce with API. This was motivate by test-boot, I've had enough of doing separate error handling for each loop type! Greatly dries up the code, awesome. common: make --all-emulators work properly with native hopefully for the last time, ./test-baremetal was still failing. gem5: don't pass --command-line for baremetal. Maybe later we can use it to actually pass command line arguments to main()? To be seen.
21 lines
603 B
Bash
Executable File
21 lines
603 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# We want to move this into ./build. The only reason we haven't is that
|
|
# what to build depends on --size, which ./build does not support right now.
|
|
# The best way to solve this is to move the dependency checking into the run
|
|
# scripts, which will take a while to refactor.
|
|
set -eux
|
|
test_size=1
|
|
while [ $# -gt 0 ]; do
|
|
case "$1" in
|
|
--size)
|
|
test_size="$2"
|
|
shift 2
|
|
;;
|
|
esac
|
|
done
|
|
./build --all-archs qemu-gem5-buildroot
|
|
if [ "$test_size" -ge 3 ]; then
|
|
./build-gem5 --arch aarch64 --gem5-build-type debug
|
|
./build-gem5 --arch aarch64 --gem5-build-type fast
|
|
fi
|