# Linux Kernel Module Cheat

#### 38.16.1. Automated tests

Run almost all tests:

    ./build-test --all-archs --all-emulators --size 3 && \
    ./test --size 3
    echo $?

should output 0.

Sources:

- build-test

- test

The test script runs several different types of tests, which can also be run separately as explained at:

- test-boot

- Test userland in full system

- User mode tests

- Baremetal tests

- GDB tests

- gem5 unit tests

test does not all possible tests, because there are too many possible variations and that would take forever. The rationale is the same as for `./build all` and is explained in `./build --help`.

- Test arch and emulator selection

- Quit on fail

- Test userland in full system

- GDB tests

- Magic failure string