[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-serveez] `make check` fails in VPATH build
From: |
Thien-Thi Nguyen |
Subject: |
Re: [bug-serveez] `make check` fails in VPATH build |
Date: |
Mon, 21 Oct 2013 15:04:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
() Thien-Thi Nguyen <address@hidden>
() Sun, 20 Oct 2013 18:18:11 +0200
will post a patch shortly.
Here is a patch that you can apply against the 0.2.1 tarball:
diff -urbw old/ new
diff -urbw old/test/Makefile.am new/test/Makefile.am
--- old/test/Makefile.am 2013-03-06 09:13:50.000000000 +0100
+++ new/test/Makefile.am 2013-10-21 14:47:39.000000000 +0200
@@ -26,7 +26,9 @@
# FIXME: Make ‘SVZ_GUILE’ (../configure.ac) set this.
GUILE = guile
-TESTS_ENVIRONMENT = $(GUILE) -s
+TESTS_ENVIRONMENT = \
+ GUILE_LOAD_PATH=".:$(srcdir):$$GUILE_LOAD_PATH" \
+ $(GUILE) -s
XFAIL_TESTS =
TESTS = t000 t001 t002 t003 t004 t005 t006 t007
diff -urbw old/test/Makefile.in new/test/Makefile.in
--- old/test/Makefile.in 2013-03-24 01:01:09.000000000 +0100
+++ new/test/Makefile.in 2013-10-21 14:47:45.000000000 +0200
@@ -334,7 +334,9 @@
# FIXME: Make ‘SVZ_GUILE’ (../configure.ac) set this.
GUILE = guile
-TESTS_ENVIRONMENT = $(GUILE) -s
+TESTS_ENVIRONMENT = \
+ GUILE_LOAD_PATH=".:$(srcdir):$$GUILE_LOAD_PATH" \
+ $(GUILE) -s
TESTS = t000 t001 t002 t003 t004 t005 t006 t007
EXTRA_DIST = common $(TESTS) \
test-suite.scm
Solo in new/test: Makefile.in~
diff -urbw old/test/t001 new/test/t001
--- old/test/t001 2013-01-20 15:49:50.000000000 +0100
+++ new/test/t001 2013-10-21 14:45:56.000000000 +0200
@@ -18,11 +18,11 @@
;;; Code:
;; Skip this test if the passthrough server is not enabled.
-(primitive-load "but-of-course")
+(primitive-load-path "but-of-course")
(or (boc? 'ENABLE_PROG_SERVER)
(exit 77))
-(load (in-vicinity (getenv "srcdir") "common"))
+(primitive-load-path "common")
(set! TESTBASE "t001")
(write-config!
diff -urbw old/test/t002 new/test/t002
--- old/test/t002 2013-01-20 15:49:50.000000000 +0100
+++ new/test/t002 2013-10-21 14:45:56.000000000 +0200
@@ -18,13 +18,13 @@
;;; Code:
;; Skip this test if the SNTP server is not enabled.
-(primitive-load "but-of-course")
+(primitive-load-path "but-of-course")
(or (boc? 'ENABLE_SNTP_PROTO)
(exit 77))
(define EXPECT-8? (and-map boc? '(HAVE_DECL_GETTIMEOFDAY
HAVE_SYS_TIME_H)))
-(load (in-vicinity (getenv "srcdir") "common"))
+(primitive-load-path "common")
(set! TESTBASE "t002")
(define UNIX-EPOCH-OFFSET 2208988800) ; per RFC 868
diff -urbw old/test/t003 new/test/t003
--- old/test/t003 2013-03-20 12:25:25.000000000 +0100
+++ new/test/t003 2013-10-21 14:45:56.000000000 +0200
@@ -19,11 +19,11 @@
;;; Code:
;; Skip this test if the Guile server is not enabled.
-(primitive-load "but-of-course")
+(primitive-load-path "but-of-course")
(or (boc? 'ENABLE_GUILE_SERVER)
(exit 77))
-(load (in-vicinity (getenv "srcdir") "common"))
+(primitive-load-path "common")
(set! TESTBASE "t003")
(write-config!
diff -urbw old/test/t004 new/test/t004
--- old/test/t004 2013-02-26 09:32:21.000000000 +0100
+++ new/test/t004 2013-10-21 14:45:56.000000000 +0200
@@ -18,11 +18,11 @@
;;; Code:
;; Skip this test if the HTTP server is not enabled.
-(primitive-load "but-of-course")
+(primitive-load-path "but-of-course")
(or (boc? 'ENABLE_HTTP_PROTO)
(exit 77))
-(load (in-vicinity (getenv "srcdir") "common"))
+(primitive-load-path "common")
(set! TESTBASE "t004")
(define SCRIPT-NAME (string-append TESTBASE ".cgi"))
diff -urbw old/test/t005 new/test/t005
--- old/test/t005 2013-03-11 14:07:33.000000000 +0100
+++ new/test/t005 2013-10-21 14:45:56.000000000 +0200
@@ -18,7 +18,7 @@
;;; Code:
-(load (in-vicinity (getenv "srcdir") "common"))
+(primitive-load-path "common")
(set! TESTBASE "t005")
(write-config!
diff -urbw old/test/t006 new/test/t006
--- old/test/t006 2013-03-11 14:08:03.000000000 +0100
+++ new/test/t006 2013-10-21 14:45:56.000000000 +0200
@@ -18,8 +18,8 @@
;;; Code:
-(primitive-load "but-of-course")
-(load (in-vicinity (getenv "srcdir") "common"))
+(primitive-load-path "but-of-course")
+(primitive-load-path "common")
(set! TESTBASE "t006")
(push-dot-on-load-path!)
diff -urbw old/test/t007 new/test/t007
--- old/test/t007 2013-03-06 09:13:28.000000000 +0100
+++ new/test/t007 2013-10-21 14:45:56.000000000 +0200
@@ -21,8 +21,8 @@
(ice-9 rdelim)
(srfi srfi-13))
-(primitive-load "but-of-course")
-(load (in-vicinity (getenv "srcdir") "common"))
+(primitive-load-path "but-of-course")
+(primitive-load-path "common")
(set! TESTBASE "t007")
(push-dot-on-load-path!)
Diff finished. Mon Oct 21 14:49:34 2013
It is a subset of the change just installed:
http://git.savannah.gnu.org/cgit/serveez.git/commit/?h=p&id=9ae8faefc2
(the full change includes modifications to test/t008, which is not in
0.2.1). When you apply it, be sure to touch test/Makefile.in afterwards
(prior to running "make check") to thwart any "automagic" Makefile.am to
Makefile.in rebuild weirdness. (In theory it should only come into play
if you ‘./configure --enable-maintainer-mode’, but you never know...)
Does that help?
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
pgpqinL8LxCpK.pgp
Description: PGP signature