442
442
# disabled: SecurityTest exhausts memory to fail
443
443
# disabled: PowerMonitorTest doesn't mock power enough, I think
444
444
# disabled: FileUtilTest fails because of fakeroot interaction
448
cd $(SRC_DIR); ./out/$(BUILD_TYPE)/base_unittests --gtest_filter=-SecurityTest.NewOverflow:PowerMonitorTest.\*:FileUtilTest.ChangeFilePermissionsAndRead:FileUtilTest.ChangeFilePermissionsAndWrite:FileUtilTest.ChangeDirectoryPermissionsAndEnumerate:ReadOnlyFileUtilTest.ContentsEqual:ReadOnlyFileUtilTest.TextContentsEqual: |tee $(TEMPFILE) |cat -n; $(KEEPALIVE) stop
446
449
@echo If more than 15 tests fail, then we interpret that as too poor quality to continue.
447
450
sed -e 1,/FAILED.\*tests,\ listed\ below/d $(TEMPFILE) |grep -c \\\[\ \ FAILED\ \ \\\] |xargs test 15 -gt
448
451
@echo Unit tests are good enough.