# $NetBSD: Makefile,v 1.25 2009/11/19 00:30:25 sjg Exp $ # # Unit tests for make(1) # The main targets are: # # all: run all the tests # test: run 'all', capture output and compare to expected results # accept: move generated output to expected results # # Adding a test case. # Each feature should get its own set of tests in its own suitably # named makefile which should be added to SUBFILES to hook it in. # .MAIN: all UNIT_TESTS:= ${.PARSEDIR} # Simple sub-makefiles - we run them as a black box # keep the list sorted. SUBFILES= \ comment \ cond1 \ export \ export-all \ dotwait \ forsubst \ moderrs \ modmatch \ modmisc \ modorder \ modts \ modword \ posix \ qequals \ ternary \ unexport \ unexport-env \ varcmd all: ${SUBFILES} # the tests are actually done with sub-makes. .PHONY: ${SUBFILES} .PRECIOUS: ${SUBFILES} ${SUBFILES}: -@${.MAKE} -k -f ${UNIT_TESTS}/$@ clean: rm -f *.out *.fail *.core .include TEST_MAKE?= ${.MAKE} # The driver. # We always pretend .MAKE was called 'make' # and strip ${.CURDIR}/ from the output # and replace anything after 'stopped in' with unit-tests # so the results can be compared. test: @echo "${TEST_MAKE} -f ${MAKEFILE} > ${.TARGET}.out 2>&1" @cd ${.OBJDIR} && ${TEST_MAKE} -f ${MAKEFILE} 2>&1 | \ ${TOOL_SED} -e 's,^${TEST_MAKE:T:C/\./\\\./g}:,make:,' \ -e '/stopped/s, /.*, unit-tests,' \ -e 's,${.CURDIR:C/\./\\\./g}/,,g' \ -e 's,${UNIT_TESTS:C/\./\\\./g}/,,g' > ${.TARGET}.out || { \ tail ${.TARGET}.out; mv ${.TARGET}.out ${.TARGET}.fail; exit 1; } diff -u ${UNIT_TESTS}/${.TARGET}.exp ${.TARGET}.out accept: mv test.out ${.CURDIR}/test.exp /td>
path: root/sys/dev/i2c/xc5k.c
AgeCommit message (Expand)Author
2018-09-03Rename min/max -> uimin/uimax for better honesty.riastradh
2018-04-12PR/53177: David Binderman: Better error handlingchristos
2017-06-01remove checks for failure after memory allocation calls that cannot fail:chs
2015-03-07i2c devices don't actually have a dependency on "iic" (the bus driver)jmcneill
2015-01-07Pass a correct firmware size (instead of 0) to firmware_freeozaki-r
2011-10-02now that iic is a module, add "iic" dependency to iic driversjmcneill
2011-07-09add digital capture supportjmcneill
2010-12-28don't make module declaration conditional on _MODULEjmcneill
2010-12-27add driver for the Auvitek AU0828 USB video controllers's analog videojmcneill