Build tests by default

While it's not feasible to run all of our tests by default during the
build, we should be able to at least make sure the tests can build.
So, make the default build targets also build our tests, by making the
'finale' target build the tests.

Change-Id: Ieadd48ba2774526de8a13136e6cc8a50434ed2f5
Reviewed-on: https://gerrit.openafs.org/13941
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
Andrew Deason 2019-10-29 17:22:04 -05:00 committed by Benjamin Kaduk
parent 0b8b6683fb
commit 68f406436c

View File

@ -633,7 +633,7 @@ jafsadm: libjafsadm
build_tools: config comerr rxgen
+${COMPILE_PART1} util ${COMPILE_PART2A} buildtools_clean
finale: project cmd comerr afsd butc tbutc tbudb @ENABLE_KERNEL_MODULE@ \
finale_notest: project cmd comerr afsd butc tbutc tbudb @ENABLE_KERNEL_MODULE@ \
libuafs audit kauth log ptserver tptserver scout bu_utils ubik uss \
bozo @VFSCK@ volser tvolser tsalvaged dviced dvolser libafscp \
venus venustests update xstat afsmonitor rxdebug libafsrpc rfc3961 \
@ -641,7 +641,7 @@ finale: project cmd comerr afsd butc tbutc tbudb @ENABLE_KERNEL_MODULE@ \
authtools $(DIR_roken) rxgk
+${COMPILE_PART1} finale ${COMPILE_PART2}
finale_nolibafs: project cmd comerr afsd butc tbutc tbudb libuafs audit kauth \
finale_nolibafs_notest: project cmd comerr afsd butc tbutc tbudb libuafs audit kauth \
log ptserver tptserver scout bu_utils ubik tubik uss bozo @VFSCK@ \
volser tvolser tsalvaged dviced dvolser libafscp venus venustests \
update xstat afsmonitor rxdebug libafsrpc rfc3961 hcrypto \
@ -652,7 +652,17 @@ finale_nolibafs: project cmd comerr afsd butc tbutc tbudb libuafs audit kauth \
rpctestlib: util fsint rx opr libafsrpc libafsauthent
+${TEST_PART1} rpctestlib ${COMPILE_PART2}
check test: finale
finale: finale_notest test_build
finale_nolibafs: finale_nolibafs_notest test_build_nolibafs
test_build: finale_notest
cd tests && $(MAKE)
test_build_nolibafs: finale_nolibafs_notest
cd tests && $(MAKE)
check test: finale_notest
cd tests && $(MAKE) check
force: