19847666 mlocate should enable its test suite
authorRich Burridge <rich.burridge@oracle.com>
Wed, 07 Oct 2015 08:16:30 -0700
changeset 4924 3100caf65c36
parent 4923 b9e3f6b6a101
child 4925 687405346773
19847666 mlocate should enable its test suite
components/mlocate/Makefile
components/mlocate/test/results-64.master
--- a/components/mlocate/Makefile	Wed Aug 26 05:17:17 2015 -0700
+++ b/components/mlocate/Makefile	Wed Oct 07 08:16:30 2015 -0700
@@ -48,21 +48,35 @@
 COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake)
 COMPONENT_POST_INSTALL_ACTION= \
     @$(MKDIR) -p $(PROTO_DIR)/etc/; \
-    $(CP) files/updatedb.conf $(PROTO_DIR)/etc/ 
+    $(CP) files/updatedb.conf $(PROTO_DIR)/etc/
+
+COMPONENT_TEST_TRANSFORMS += \
+	'-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
+	'-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
+	'-e "s|^make.*: Nothing to be.*$$|XXX_REMOVE_XXX|g" ' \
+	'-e "s|^/usr/gnu/bin/make.*$$|XXX_REMOVE_XXX|g" ' \
+	'-e "/^XXX_REMOVE_XXX$$/d" '
 
-# Enable aslr for this component
+COMPONENT_TEST_ENV +=		PATH="$(@D)/src:$(USRBINDIR):$(USRSBINDIR)"
+COMPONENT_TEST_CMD =		$(SOURCE_DIR)/tests/testsuite
+COMPONENT_TEST_TARGETS =
+
+COMPONENT_SYSTEM_TEST_ENV +=	PATH="$(USRBINDIR):$(USRSBINDIR)"
+COMPONENT_SYSTEM_TEST_CMD =	$(SHELL) $(SOURCE_DIR)/tests/testsuite
+COMPONENT_SYSTEM_TEST_ARGS =	AUTOTEST_PATH=$(USRBINDIR):$(USRSBINDIR)
+COMPONENT_SYSTEM_TEST_TARGETS =
+
 ASLR_MODE = $(ASLR_ENABLE)
 
-# common targets
 configure:	$(CONFIGURE_64)
 
-build:		$(BUILD_64) 
+build:		$(BUILD_64)
+
+install:	$(INSTALL_64)
 
-install:	$(INSTALL_64) 
-		
-test:		$(NO_TESTS)
+test:		$(TEST_64)
 
-system-test:    $(NO_TESTS)
+system-test:    configure $(SYSTEM_TEST_64)
 
 
 REQUIRED_PACKAGES += system/library
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/mlocate/test/results-64.master	Wed Oct 07 08:16:30 2015 -0700
@@ -0,0 +1,67 @@
+## ------------------------ ##
+## mlocate 0.25 test suite. ##
+## ------------------------ ##
+  1: config: updatedb.conf                           skipped (config.at:26)
+  2: config: -f                                      skipped (config.at:27)
+  3: config: -e                                      ok
+  4: config: -h                                      ok
+  5: config: -n                                      ok
+  6: config: -o                                      ok
+  7: config: -l                                      ok
+  8: config: -U                                      ok
+  9: config: -v                                      ok
+ 10: config: -V                                      ok
+ 11: config: --debug-pruning                         skipped (config.at:223)
+ 12: config: --prune-bind-mounts                     ok
+ 13: config: --prunefs                               ok
+ 14: config: --prunenames                            ok
+ 15: config: --prunepaths                            ok
+ 16: locate: Basic                                   ok
+ 17: locate: -b                                      ok
+ 18: locate: -c                                      ok
+ 19: locate: -d                                      ok
+ 20: locate: -e                                      ok
+ 21: locate: -h                                      ok
+ 22: locate: -i                                      ok
+ 23: locate: -l, -n                                  ok
+ 24: locate: -L                                      ok
+ 25: locate: -P                                      ok
+ 26: locate: -S                                      ok
+ 27: locate: -q                                      ok
+ 28: locate: -r                                      ok
+ 29: locate: -V                                      ok
+ 30: locate: -w                                      ok
+ 31: locate: -0                                      FAILED (locate.at:530)
+ 32: locate: --regex                                 ok
+ 33: locate: LOCATE_PATH                             ok
+ 34: locate: Invalid source database                 ok
+ 35: updatedb: File types                            ok
+ 36: updatedb: Output sorting                        ok
+ 37: updatedb: Permissions                           ok
+ 38: updatedb: Invalid source database               ok
+ 39: updatedb: Change detection                      ok
+ 40: updatedb: Concurrent modification               ok
+ 41: updatedb: Very deep hierarchy                   FAILED (updatedb.at:261)
+ 42: updatedb: Output creation                       FAILED (updatedb.at:297)
+ 43: updatedb: Path sorting                          ok
+
+## ------------- ##
+## Test results. ##
+## ------------- ##
+
+ERROR: 40 tests were run,
+3 failed unexpectedly.
+3 tests were skipped.
+## -------------------------- ##
+## testsuite.log was created. ##
+## -------------------------- ##
+
+Please send `./testsuite.log' and all information you think might help:
+
+   To: <[email protected]>
+   Subject: [mlocate 0.25] testsuite: 31 41 42 failed
+
+You may investigate any problem if you feel able to do so, in which
+case the test suite provides a good starting point.  Its output may
+be found below `./testsuite.dir'.
+