Files
linux-kernel-module-cheat/build-test
Ciro Santilli 六四事件 法轮功 fedb68c62c merge test-user-mode and test-baremetal into test-executables
Differentiate with --mode userland vs --mode baremetal.

The code was basically copied, now it's DRY.
2019-05-29 00:00:01 +00:00

16 lines
350 B
Bash
Executable File

#!/usr/bin/env bash
# Build just enough to run ./test:
# https://github.com/cirosantilli/linux-kernel-module-cheat#automated-tests
set -eu
test_size=1
while [ $# -gt 0 ]; do
case "$1" in
--size)
test_size="$2"
shift 2
;;
esac
done
./build-test-boot --size "$test_size"
./build --all-archs test-gdb test-executables-userland