Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asdf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asdf
asdf
Commits
7ee04bd1
Commit
7ee04bd1
authored
Sep 09, 2016
by
Daniel Kochmański
Committed by
Francois-Rene Rideau
Sep 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bundle: add regression test for prebuilt systems
parent
6475bce3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
0 deletions
+75
-0
test/ecl-prebuilt-systems.script
test/ecl-prebuilt-systems.script
+9
-0
test/ecl-prebuilt-systems/hello.lisp
test/ecl-prebuilt-systems/hello.lisp
+3
-0
test/ecl-prebuilt-systems/hellow.asd
test/ecl-prebuilt-systems/hellow.asd
+4
-0
test/ecl-prebuilt-systems/readme.lisp
test/ecl-prebuilt-systems/readme.lisp
+59
-0
No files found.
test/ecl-prebuilt-systems.script
0 → 100644
View file @
7ee04bd1
;;; -*- Lisp -*-
(DBG "Regression test: Test if dependencies on prebuilt libraries work.
Should load from ecl-prebuilt-systems/")
#+(and ecl (not ecl-bytecmp))
(progn
(chdir (subpathname *test-directory* "ecl-prebuilt-systems/"))
(load "readme.lisp"))
test/ecl-prebuilt-systems/hello.lisp
0 → 100644
View file @
7ee04bd1
(
in-package
#:cl-user
)
(
print
`
(
:asdf-version
,
(
asdf:asdf-version
)))
test/ecl-prebuilt-systems/hellow.asd
0 → 100644
View file @
7ee04bd1
(
asdf:defsystem
#:hellow
:serial
t
:depends-on
(
#:asdf
)
:components
((
:file
"hello"
)))
test/ecl-prebuilt-systems/readme.lisp
0 → 100644
View file @
7ee04bd1
;;;
;;; DESCRIPTION:
;;;
;;; This file builds a standalone executable with a dependency on
;;; ASDF.
;;;
;;;
;;; USE:
;;;
;;; Launch a copy of ECL and load this file in it
;;;
;;; (load "readme.lisp")
;;;
(
require
'asdf
)
(
format
t
"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; BUILDING A STANDALONE EXECUTABLE
;;;
"
)
;;
;; * Combine files in a standalone executable. We reuse the files
;; from the previous example
;;
(
defconstant
+standalone-exe+
(
compile-file-pathname
"hellow"
:type
:program
))
(
push
(
make-pathname
:name
nil
:type
nil
:version
nil
:defaults
*load-truename*
)
asdf:*central-registry*
)
(
asdf:make-build
:hellow
:type
:program
:move-here
"./"
:prologue-code
"printf(\"Good morning sunshine!\");"
:epilogue-code
'
(
progn
(
format
t
"~%Good bye sunshine.~%"
)
(
ext:quit
0
)))
;;
;; * Test the program
;;
(
format
t
"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; TESTING A STANDALONE EXECUTABLE
;;;
"
)
(
uiop:run-program
(
format
nil
"./~A"
+standalone-exe+
)
:output
*standard-output*
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; CLEAN UP
;;;
(
delete-file
+standalone-exe+
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment