This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
git-api-test.asd
60 lines (47 loc) · 1.71 KB
/
git-api-test.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
#|
This file is a part of git-api project.
Copyright (c) 2016 Alexey Veretennikov ([email protected])
Test package.
Usage:
(ql:quickload :git-api-test)
(asdf/operate:test-system :git-api)
In order to perform code coverage with these tests (currenty supported
only on LispWorks 7), run the following:
(asdf/operate:operate 'git-api-test-asd:coverage-op :git-api-test)
|#
(in-package :cl-user)
(defpackage git-api-test-asd
(:use :cl :asdf)
(:export coverage-op))
(in-package :git-api-test-asd)
(defclass coverage-op (selfward-operation)
((selfward-operation :initform 'load-op :allocation :class))
(:documentation "Test coverage operation"))
(defsystem git-api-test
:author "Alexey Veretennikov"
:license "BSD"
:depends-on (:git-api
:cl-fad
:flexi-streams
:nibbles
:split-sequence
:prove)
:components ((:module "t"
:components
((:file "base")
(:file "coverage")
(:test-file "utils-test")
(:test-file "pack-test")
(:test-file "wrapper-test")
(:test-file "object-test")
(:test-file "repo-test")
(:test-file "filemasks-test")
(:test-file "attributes-test"))))
:description "Test system for git-api"
:defsystem-depends-on (:prove-asdf)
:perform (test-op :after (op c)
(funcall (intern #.(string :run-test-system) :prove-asdf) c)
(asdf:clear-system c))
:perform (coverage-op (op c)
(funcall (intern #.(string :run-tests-with-coverage) :git-api.test.coverage))
(asdf:clear-system c)))