According to the general build scenario for a KasperskyOS-based solution, to build a test, you must complete a sequence of CMake commands. The test build process has been simplified by developing a CMake library named test_generator which groups frequently used sequences of commands into functions:
add_kss_pal_qemu_tests(): a function for creating PAL tests for a KasperskyOS-based solution security policy.generate_kos_test(): a function for creating tests of programs included in a KasperskyOS-based solution.