1*4882a593Smuzhiyun# 2*4882a593Smuzhiyun# Generic config for a machine 3*4882a593Smuzhiyun# 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun# Name your machine (the DNS name, what you ssh to) 6*4882a593SmuzhiyunMACHINE = foo 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun# BOX can be different than foo, if the machine BOX has 9*4882a593Smuzhiyun# multiple partitions with different systems installed. For example, 10*4882a593Smuzhiyun# you may have a i386 and x86_64 installation on a test box. 11*4882a593Smuzhiyun# If this is the case, MACHINE defines the way to connect to the 12*4882a593Smuzhiyun# machine, which may be different between which system the machine 13*4882a593Smuzhiyun# is booting into. BOX is used for the scripts to reboot and power cycle 14*4882a593Smuzhiyun# the machine, where it does not matter which system the machine boots into. 15*4882a593Smuzhiyun# 16*4882a593Smuzhiyun#BOX := bar 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun# Define a way to read the console 19*4882a593SmuzhiyunCONSOLE = stty -F /dev/ttyS0 115200 parodd; cat /dev/ttyS0 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun# The include files will set up the type of test to run. Just set TEST to 22*4882a593Smuzhiyun# which test you want to run. 23*4882a593Smuzhiyun# 24*4882a593Smuzhiyun# TESTS = patchcheck, randconfig, boot, test, config-bisect, bisect, min-config 25*4882a593Smuzhiyun# 26*4882a593Smuzhiyun# See the include/*.conf files that define these tests 27*4882a593Smuzhiyun# 28*4882a593SmuzhiyunTEST := patchcheck 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun# Some tests may have more than one test to run. Define MULTI := 1 to run 31*4882a593Smuzhiyun# the extra tests. 32*4882a593SmuzhiyunMULTI := 0 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun# In case you want to differentiate which type of system you are testing 35*4882a593SmuzhiyunBITS := 64 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun# REBOOT = none, error, fail, empty 38*4882a593Smuzhiyun# See include/defaults.conf 39*4882a593SmuzhiyunREBOOT := empty 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun# The defaults file will set up various settings that can be used by all 42*4882a593Smuzhiyun# machine configs. 43*4882a593SmuzhiyunINCLUDE include/defaults.conf 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun# In case you need to add a patch for a bisect or something 46*4882a593Smuzhiyun#PRE_BUILD = patch -p1 < ${THIS_DIR}/fix.patch 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun# Reset the repo after the build and remove all 'test' modules from the target 49*4882a593Smuzhiyun# Notice that DO_POST_BUILD is a variable (defined by ':=') and POST_BUILD 50*4882a593Smuzhiyun# is the option (defined by '=') 51*4882a593Smuzhiyun 52*4882a593SmuzhiyunDO_POST_BUILD := git reset --hard 53*4882a593SmuzhiyunPOST_BUILD = ${SSH} 'rm -rf /lib/modules/*-test*'; ${DO_POST_BUILD} 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun# The following files each handle a different test case. 56*4882a593Smuzhiyun# Having them included allows you to set up more than one machine and share 57*4882a593Smuzhiyun# the same tests. 58*4882a593SmuzhiyunINCLUDE include/patchcheck.conf 59*4882a593SmuzhiyunINCLUDE include/tests.conf 60*4882a593SmuzhiyunINCLUDE include/bisect.conf 61*4882a593SmuzhiyunINCLUDE include/min-config.conf 62*4882a593Smuzhiyun 63