-
Notifications
You must be signed in to change notification settings - Fork 8
/
binascii.asd
56 lines (46 loc) · 2.08 KB
/
binascii.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
; -*- mode: lisp -*-
(cl:defpackage #:binascii-system
(:use :cl :asdf))
(cl:in-package #:binascii-system)
(asdf:defsystem :binascii
:version "1.0"
:author "Nathan Froyd <[email protected]>"
:maintainer "Nathan Froyd <[email protected]>"
:description "A library of ASCII encoding schemes for binary data"
:license "BSD-style (http://opensource.org/licenses/BSD-3-Clause)"
:components ((:static-file "LICENSE")
(:file "package")
(:file "types" :depends-on ("package"))
(:file "format" :depends-on ("types"))
(:file "octets" :depends-on ("types" "format"))
(:file "ascii85" :depends-on ("octets"))
(:file "base85" :depends-on ("octets"))
(:file "base64" :depends-on ("octets"))
(:file "base32" :depends-on ("octets"))
(:file "base16" :depends-on ("octets"))))
(defmethod perform ((op test-op) (c (eql (find-system :binascii))))
(asdf:oos 'asdf:test-op :binascii-tests))
(defmethod operation-done-p ((op test-op) (c (eql (find-system :binascii))))
nil)
(defclass test-vector-file (static-file)
())
(defmethod source-file-type ((c test-vector-file) (s module)) "testvec")
(asdf:defsystem :binascii-tests
:depends-on (binascii)
:version "1.0"
:in-order-to ((test-op (load-op :binascii-tests)))
:components ((:module "tests"
:components
((:file "rt")
(:file "tests" :depends-on ("rt"))
(:test-vector-file "ascii85")
(:test-vector-file "base85")
(:test-vector-file "base64")
(:test-vector-file "base32")
(:test-vector-file "base32hex")
(:test-vector-file "base16")))))
(defmethod operation-done-p ((op test-op) (c (eql (find-system :binascii-tests))))
nil)
(defmethod perform ((op test-op) (c (eql (find-system :binascii-tests))))
(or (funcall (intern "DO-TESTS" (find-package "RTEST")))
(error "TEST-OP failed for BINASCII-TESTS")))