18c2ecf20Sopenharmony_ci# 28c2ecf20Sopenharmony_ci# Generic config for a machine 38c2ecf20Sopenharmony_ci# 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci# Name your machine (the DNS name, what you ssh to) 68c2ecf20Sopenharmony_ciMACHINE = foo 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci# BOX can be different than foo, if the machine BOX has 98c2ecf20Sopenharmony_ci# multiple partitions with different systems installed. For example, 108c2ecf20Sopenharmony_ci# you may have a i386 and x86_64 installation on a test box. 118c2ecf20Sopenharmony_ci# If this is the case, MACHINE defines the way to connect to the 128c2ecf20Sopenharmony_ci# machine, which may be different between which system the machine 138c2ecf20Sopenharmony_ci# is booting into. BOX is used for the scripts to reboot and power cycle 148c2ecf20Sopenharmony_ci# the machine, where it does not matter which system the machine boots into. 158c2ecf20Sopenharmony_ci# 168c2ecf20Sopenharmony_ci#BOX := bar 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci# Define a way to read the console 198c2ecf20Sopenharmony_ciCONSOLE = stty -F /dev/ttyS0 115200 parodd; cat /dev/ttyS0 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci# The include files will set up the type of test to run. Just set TEST to 228c2ecf20Sopenharmony_ci# which test you want to run. 238c2ecf20Sopenharmony_ci# 248c2ecf20Sopenharmony_ci# TESTS = patchcheck, randconfig, boot, test, config-bisect, bisect, min-config 258c2ecf20Sopenharmony_ci# 268c2ecf20Sopenharmony_ci# See the include/*.conf files that define these tests 278c2ecf20Sopenharmony_ci# 288c2ecf20Sopenharmony_ciTEST := patchcheck 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci# Some tests may have more than one test to run. Define MULTI := 1 to run 318c2ecf20Sopenharmony_ci# the extra tests. 328c2ecf20Sopenharmony_ciMULTI := 0 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci# In case you want to differentiate which type of system you are testing 358c2ecf20Sopenharmony_ciBITS := 64 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci# REBOOT = none, error, fail, empty 388c2ecf20Sopenharmony_ci# See include/defaults.conf 398c2ecf20Sopenharmony_ciREBOOT := empty 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci# The defaults file will set up various settings that can be used by all 428c2ecf20Sopenharmony_ci# machine configs. 438c2ecf20Sopenharmony_ciINCLUDE include/defaults.conf 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci# In case you need to add a patch for a bisect or something 468c2ecf20Sopenharmony_ci#PRE_BUILD = patch -p1 < ${THIS_DIR}/fix.patch 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci# Reset the repo after the build and remove all 'test' modules from the target 498c2ecf20Sopenharmony_ci# Notice that DO_POST_BUILD is a variable (defined by ':=') and POST_BUILD 508c2ecf20Sopenharmony_ci# is the option (defined by '=') 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ciDO_POST_BUILD := git reset --hard 538c2ecf20Sopenharmony_ciPOST_BUILD = ${SSH} 'rm -rf /lib/modules/*-test*'; ${DO_POST_BUILD} 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci# The following files each handle a different test case. 568c2ecf20Sopenharmony_ci# Having them included allows you to set up more than one machine and share 578c2ecf20Sopenharmony_ci# the same tests. 588c2ecf20Sopenharmony_ciINCLUDE include/patchcheck.conf 598c2ecf20Sopenharmony_ciINCLUDE include/tests.conf 608c2ecf20Sopenharmony_ciINCLUDE include/bisect.conf 618c2ecf20Sopenharmony_ciINCLUDE include/min-config.conf 628c2ecf20Sopenharmony_ci 63