Changeset 15016


Ignore:
Timestamp:
05/23/17 11:00:30 (6 years ago)
Author:
Mark Evenson
Message:

abcl-build: Incremental work on tests

Not any worse than before.

Location:
trunk/abcl/contrib/abcl-build
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/contrib/abcl-build/abcl-build.asd

    r15012 r15016  
    44(defsystem abcl-build
    55  :version "2.0.0"
    6   :description "Build ABCL from a Lisp.  Downloads necessary build-time tools to local cache."
     6  :description "Build ABCL from a Lisp.  Downloads necessary build-time tools to local cache if not available on system."
    77  :in-order-to ((test-op (test-op abcl-build-tests)))
    88  :components ((:module package
  • trunk/abcl/contrib/abcl-build/build/ant.lisp

    r15009 r15016  
    55  #p"http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.zip"
    66 
    7   #+nil ;; https on OPEN fails; probably attempting to upgrade
     7  #+(or) ;; https on OPEN fails; probably attempting to upgrade
    88  #p"https://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.zip"
    99
    10   #+nil ;; need apache-ant-1.9 for JVM version 49.0
     10  #+(or) ;; need apache-ant-1.9 for JVM version 49.0
    1111  #p"http://www-eu.apache.org/dist/ant/binaries/apache-ant-1.10.1-bin.zip")
    1212
    1313(defun xdg/ant-executable ()
    14   (probe-file
    15    (localize-executable-name
    16     (merge-pathnames #p"bin/ant"
    17                      (xdg/abcl-install-root (ant-zip-uri))))))
     14  (let* ((uri (ant-zip-uri))
     15         (directory (xdg/abcl-install-root uri))
     16         (ant-root-name (let ((name (pathname-name uri)))
     17                          (subseq name 0 (- (length name) (length "-bin")))))
     18         (ant-home (merge-pathnames (make-pathname :directory `(:relative ,ant-root-name))
     19                                    directory)))
     20    (values
     21     (probe-file
     22      (localize-executable-name
     23       (merge-pathnames #p"bin/ant" ant-home)))
     24     ant-home)))
    1825
    1926(defun ant/install ()
  • trunk/abcl/contrib/abcl-build/build/package.lisp

    r15009 r15016  
    3232   #:download
    3333
     34   #:xdg/ant-executable
    3435   #:with-ensured-ant
    3536   #:ant/install
  • trunk/abcl/contrib/abcl-build/build/t/abcl-build.lisp

    r15009 r15016  
    11(in-package :abcl/build/t)
    22
    3 (prove:plan 2)
    4 (prove:diag "Testing BUILD-ABCL
")
    5 (prove:ok
    6  (abcl-build:build-abcl))
    7 (prove:diag "Testing MAKE-DIST
")
    8 (prove:ok
    9  (abcl-build:make-dist (format nil "test-" (random (expt 2 32)))))
    10 
    11 #+abcl-build-test-more
    12 (progn
    13   (prove:plan 1)
    14   (prove:ok (abcl-build:build-abcl :clean t)))
    15 
    16 #+abcl-build-test-more
    17 (progn
    18   (prove:plan 1)
    19   (abcl-build:build-abcl :force t))
     3(if (not (ignore-errors (asdf:find-system :abcl)))
     4    (prove:diag "Unable to find 'abcl.asd'.~&Enable ASDF to find 'abcl.asd' by adding symlink to ~/common-lisp/ to ABCL source directory.")
     5    (prove:subtest "Testing BUILD-ABCL."
     6      (prove:plan 2)
     7      (prove:ok
     8       (abcl-build:build-abcl)
     9       "Testing BUILD-ABCL
")
     10      (prove:diag )
     11      (prove:ok
     12       (abcl-build:make-dist (format nil "test-" (random (expt 2 32))))
     13       "Testing MAKE-DIST
")
     14      #+abcl-build-test-more
     15      (progn
     16        (prove:ok
     17         (abcl-build:build-abcl :clean t)
     18         "Testing BUILD:ABCL clean
"))
     19      #+abcl-build-test-more
     20      (prove:ok
     21       (abcl-build:build-abcl :force t)
     22       "Testing BUILD-ABCL force
")))
    2023
    2124(prove:finalize)
  • trunk/abcl/contrib/abcl-build/build/t/ant.lisp

    r15009 r15016  
    55(prove:ok (build-abcl:ant/install))
    66
    7 (prove:plan 1)
    8 (let ((antfile (asdf:system-relative-pathname :abcl "build.xml")))
    9   (prove:diag (format nil "Testing invocation of private Ant on main ABCL build artifact at ~&~2,t~a
"
    10                       antfile))
    11   (prove:ok (abcl-build:ant/call antfile "abcl.diagnostic")))
    12 
     7(if (not (ignore-errors (asdf:find-system :abcl)))
     8    (prove:diag "Unable to find 'abcl.asd'.~&Enable ASDF to find 'abcl.asd' by adding symlink to ~~/common-lisp/ to ABCL source directory.")
     9    (let ((ant-file (asdf:system-relative-pathname :abcl "build.xml")))
     10      (prove:plan 1)
     11      (prove:ok
     12       (abcl-build:ant/call ant-file "abcl.diagnostic")
     13       (format nil "Testing invocation of private Ant on main ABCL build artifact at ~&~2,t~a
" ant-file))))
     14           
    1315(prove:finalize)
Note: See TracChangeset for help on using the changeset viewer.