diff --git a/Makefile b/Makefile index c3a866c..2d730d2 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,15 @@ SUBDIR= ${_ggatec} \ ${_ggated} \ - ggatel + ggatel \ + tests _ggatec= ggatec _ggated= ggated +.PHONY: devtest + +devtest: + find [gst]* -type f -name '*.c' -o -name 'Makefile*' -o -name '*.sh' -o -name '*.8' | entr sh -c 'make -j 4 && make install -j 4 && kyua test -k /usr/tests/Kyuafile sys/geom/class/gate' + .include diff --git a/Makefile.inc b/Makefile.inc new file mode 100644 index 0000000..0ef2231 --- /dev/null +++ b/Makefile.inc @@ -0,0 +1,4 @@ +# This is to replicate the other parts of the FreeBSD build infrastructure. + +BINDIR?= /sbin +WARNS?= 6 diff --git a/tests/Makefile b/tests/Makefile index 417fa7d..856c207 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,7 +2,7 @@ PACKAGE= tests -TESTSDIR= ${TESTSBASE}/sys/geom/class/${.CURDIR:T} +TESTSDIR= ${TESTSBASE}/sys/geom/class/gate ATF_TESTS_SH+= ggate_test