162306a36Sopenharmony_ci#
262306a36Sopenharmony_ci# Generic config for a machine
362306a36Sopenharmony_ci#
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci# Name your machine (the DNS name, what you ssh to)
662306a36Sopenharmony_ciMACHINE = foo
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci# BOX can be different than foo, if the machine BOX has
962306a36Sopenharmony_ci# multiple partitions with different systems installed. For example,
1062306a36Sopenharmony_ci# you may have a i386 and x86_64 installation on a test box.
1162306a36Sopenharmony_ci# If this is the case, MACHINE defines the way to connect to the
1262306a36Sopenharmony_ci# machine, which may be different between which system the machine
1362306a36Sopenharmony_ci# is booting into. BOX is used for the scripts to reboot and power cycle
1462306a36Sopenharmony_ci# the machine, where it does not matter which system the machine boots into.
1562306a36Sopenharmony_ci#
1662306a36Sopenharmony_ci#BOX := bar
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci# Define a way to read the console
1962306a36Sopenharmony_ciCONSOLE = stty -F /dev/ttyS0 115200 parodd; cat /dev/ttyS0
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci# The include files will set up the type of test to run. Just set TEST to
2262306a36Sopenharmony_ci# which test you want to run.
2362306a36Sopenharmony_ci#
2462306a36Sopenharmony_ci# TESTS = patchcheck, randconfig, boot, test, config-bisect, bisect, min-config
2562306a36Sopenharmony_ci#
2662306a36Sopenharmony_ci# See the include/*.conf files that define these tests
2762306a36Sopenharmony_ci#
2862306a36Sopenharmony_ciTEST := patchcheck
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci# Some tests may have more than one test to run. Define MULTI := 1 to run
3162306a36Sopenharmony_ci# the extra tests.
3262306a36Sopenharmony_ciMULTI := 0
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci# In case you want to differentiate which type of system you are testing
3562306a36Sopenharmony_ciBITS := 64
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci# REBOOT = none, error, fail, empty
3862306a36Sopenharmony_ci#  See include/defaults.conf
3962306a36Sopenharmony_ciREBOOT := empty
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci# The defaults file will set up various settings that can be used by all
4262306a36Sopenharmony_ci# machine configs.
4362306a36Sopenharmony_ciINCLUDE include/defaults.conf
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci# In case you need to add a patch for a bisect or something
4662306a36Sopenharmony_ci#PRE_BUILD = patch -p1 < ${THIS_DIR}/fix.patch
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci# Reset the repo after the build and remove all 'test' modules from the target
4962306a36Sopenharmony_ci# Notice that DO_POST_BUILD is a variable (defined by ':=') and POST_BUILD
5062306a36Sopenharmony_ci# is the option (defined by '=')
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciDO_POST_BUILD := git reset --hard
5362306a36Sopenharmony_ciPOST_BUILD = ${SSH} 'rm -rf /lib/modules/*-test*'; ${DO_POST_BUILD}
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci# The following files each handle a different test case.
5662306a36Sopenharmony_ci# Having them included allows you to set up more than one machine and share
5762306a36Sopenharmony_ci# the same tests.
5862306a36Sopenharmony_ciINCLUDE include/patchcheck.conf
5962306a36Sopenharmony_ciINCLUDE include/tests.conf
6062306a36Sopenharmony_ciINCLUDE include/bisect.conf
6162306a36Sopenharmony_ciINCLUDE include/min-config.conf
6262306a36Sopenharmony_ci
63