It seems that gnustep-gui can't pass the test if it is built but not installed.

Inspired by gnustep-base code, I ve tried to modify the Tests/GNUmakefile files (see attachment).
Some tests pass now but I obtain a recurrent error:

   Did not find correct version of backend
   (libgnustep-back-024.bundle), falling back to std
   (libgnustep-back.bundle).
   NSApplication.m:304  Assertion failed in
   initialize_gnustep_backend.  Unable to find backend back
   . Uncaught exception NSInternalInconsistencyException, reason:
   NSApplication.m:304  Assertion failed in
   initialize_gnustep_backend.  Unable to find backend back

In Objective C code, how can I check if gnustep-back is installed ?
(an if not, I will skip test with SKIP('It looks like GNUstep-gui is not yet installed') )

Thanks
Eric
--- a/Tests/GNUmakefile
+++ b/Tests/GNUmakefile
@@ -42,11 +42,29 @@
 
 include $(GNUSTEP_MAKEFILES)/common.make
 
+TOP_DIR := $(shell dirname $(CURDIR))
+
 all::
 	@(echo If you want to run the gnustep-gui testsuite, please type \'make check\')
 
 check::
-	gnustep-tests gui
+	(\
+	GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES="$(TOP_DIR)/gui.make";\
+	ADDITIONAL_INCLUDE_DIRS="-I$(TOP_DIR)/Headers -I$(TOP_DIR)/Source/$(GNUSTEP_TARGET_DIR) -I$(TOP_DIR)/Headers/Additions";\
+	ADDITIONAL_LIB_DIRS="-L$(TOP_DIR)/Source/$(GNUSTEP_OBJ_DIR)";\
+	LD_LIBRARY_PATH="$(TOP_DIR)/Source/$(GNUSTEP_OBJ_DIR):${LD_LIBRARY_PATH}";\
+	PATH="$(TOP_DIR)/Tools/$(GNUSTEP_OBJ_DIR):${PATH}";\
+	export GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES;\
+	export ADDITIONAL_INCLUDE_DIRS;\
+	export ADDITIONAL_LIB_DIRS;\
+	export LD_LIBRARY_PATH;\
+	export PATH;\
+	if [ "$(DEBUG)" = "" ]; then \
+	  gnustep-tests gui;\
+        else \
+	  gnustep-tests --debug gui;\
+        fi; \
+	)
 
 clean::
 	-gnustep-tests --clean
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to