-
Notifications
You must be signed in to change notification settings - Fork 0
/
tar.asd
155 lines (144 loc) · 6.88 KB
/
tar.asd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
;;; -*- mode: lisp -*-
(asdf:defsystem #:tar
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "A high level interface for tar archives"
:license "MIT"
:depends-on ("alexandria" "babel" "local-time" "split-sequence"
(:version "tar-file" "0.2.0")
"uiop" "40ants-doc")
:pathname "src"
:in-order-to ((test-op (load-op "tar/test")))
:perform (test-op (o c)
(unless (eql :passed (uiop:symbol-call
:parachute :status
(uiop:symbol-call :parachute :test :tar-test)))
(error "Tests failed")))
:components ((:file "archive" :depends-on ("package"))
(:file "conditions" :depends-on ("package"))
(:file "entry" :depends-on ("package" "utils"))
(:file "gnu-archive" :depends-on ("package" "archive" "utils" "validation"))
(:file "package")
(:file "pax-archive" :depends-on ("package" "archive" "utils" "validation"))
(:file "ustar-archive" :depends-on ("package" "archive" "utils" "validation"))
(:file "utils" :depends-on ("package"))
(:file "v7-archive" :depends-on ("package" "archive" "validation"))
(:file "validation" :depends-on ("package" "archive" "entry"))))
(asdf:defsystem #:tar/common-extract
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "Common utilities for tar-simple-extract and tar-extract."
:license "MIT"
:depends-on ("split-sequence" "tar" "uiop")
:pathname "src/common-extract"
:components ((:file "package")
(:file "conditions" :depends-on ("package"))
(:file "utils" :depends-on ("package"))
(:file "pathname-computation" :depends-on ("package"))))
(asdf:defsystem #:tar/create
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "A system to create tar archives from the filesystem."
:license "MIT"
:depends-on ("tar" "uiop" "local-time" "osicat")
:pathname "src/create/"
:in-order-to ((test-op (load-op "tar/create-test")))
:perform (test-op (o c)
(unless (eql :passed (uiop:symbol-call
:parachute :status
(uiop:symbol-call :parachute :test :tar-create-test)))
(error "Tests failed")))
:components ((:file "package")
(:file "create" :depends-on ("package"))
(:file "posix" :depends-on ("create") :if-feature (:not :windows))
(:file "windows" :depends-on ("create") :if-feature :windows)))
(asdf:defsystem #:tar/docs
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "Documentation system for tar."
:license "MIT"
:depends-on ("tar" "40ants-doc" "tar/simple-extract" "tar/extract" "tar/create")
:pathname "src/"
:components ((:file "docs")))
(asdf:defsystem #:tar/extract
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "A system to extract tar archives to the filesystem."
:license "MIT"
:depends-on ("alexandria" "local-time" "osicat" "tar" "uiop" "tar/common-extract")
:pathname "src/extract"
:in-order-to ((test-op (load-op "tar/extract-test")))
:perform (test-op (o c)
(unless (eql :passed (uiop:symbol-call
:parachute :status
(uiop:symbol-call :parachute :test :tar-extract-test)))
(error "Tests failed")))
:components ((:file "package")
(:file "conditions" :depends-on ("package"))
(:file "features" :depends-on ("package"))
(:file "utils" :depends-on ("package" "features"))
(:file "fd-stream" :depends-on ("package" "utils" "features"))
(:file "extract" :depends-on ("package" "conditions" "utils" "features"))))
(asdf:defsystem #:tar/simple-extract
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "A system to extract tar archives to the filesystem using only portable CL constructs."
:license "MIT"
:depends-on ("tar" "tar/common-extract" "uiop" "local-time")
:pathname "src/simple-extract"
:in-order-to ((test-op (load-op "tar/simple-extract-test")))
:perform (test-op (o c)
(unless (eql :passed (uiop:symbol-call
:parachute :status
(uiop:symbol-call :parachute :test :tar-simple-extract-test)))
(error "Tests failed")))
:components ((:file "package")
(:file "extract" :depends-on ("package"))))
;;; Tests
(defsystem #:tar/test
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "Tar test system"
:license "MIT"
:pathname "test"
:components ((:file "package")
(:file "read" :depends-on ("package" "shared"))
(:file "shared" :depends-on ("package"))
(:file "write" :depends-on ("package" "shared")))
:depends-on ("tar" "parachute"))
(defsystem #:tar/create-test
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "Tar create test system"
:license "MIT"
:pathname "test/create"
:components ((:file "package")
(:file "utils" :depends-on ("package"))
(:file "v7" :depends-on ("package" "utils"))
(:file "ustar" :depends-on ("package" "utils"))
(:file "pax" :depends-on ("package" "utils"))
;;(:file "gnu" :depends-on ("package" "utils"))
)
:depends-on ("tar/create" "parachute" "osicat"))
(defsystem #:tar/extract-test
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "Tar extract test system"
:license "MIT"
:pathname "test/extract"
:components ((:file "package")
(:file "utils" :depends-on ("package"))
(:file "extract" :depends-on ("package" "utils"))
(:file "stress" :depends-on ("package" "utils")))
:depends-on ("tar/extract" "parachute"))
(defsystem #:tar/simple-extract-test
:version (:read-file-form "version.lisp-expr")
:author "Eric Timmons <[email protected]>"
:description "Tar simple extract test system"
:license "MIT"
:pathname "test/simple-extract"
:components ((:file "package")
(:file "utils" :depends-on ("package"))
(:file "v7" :depends-on ("package" "utils"))
(:file "stress" :depends-on ("package" "utils")))
:depends-on ("tar/simple-extract" "parachute" "osicat"))