Kind | Covered | All | % |
expression | 0 | 7 | 0.0 |
branch | 0 | 0 | nil |
1
;;; box/tests.lisp --- Box tests
2
3
;;
4
5
;;; Code:
6
(defpackage :box/tests
7
(:use :cl :rt :box :box/archiso :sb-bsd-sockets)
8
(:import-from :std :in-readtable)
9
(:export
10
#:*archiso-json*))
11
12
(in-package :box/tests)
13
(defsuite :box)
14
(in-suite :box)
15
(in-readtable :std)
16
(defparameter *archiso-json*
17
#"{
18
"__separator__": null,
19
"additional-repositories": [],
20
"archinstall-language": "English",
21
"audio_config": null,
22
"bootloader": "Systemd-boot",
23
"config_version": "2.6.0",
24
"debug": false,
25
"disk_config": {
26
"config_type": "manual_partitioning",
27
"device_modifications": [
28
{
29
"device": "/dev/sda",
30
"partitions": [
31
{
32
"btrfs": [],
33
"flags": [
34
"Boot"
35
],
36
"fs_type": "fat32",
37
"length": {
38
"sector_size": null,
39
"total_size": null,
40
"unit": "B",
41
"value": 99982592
42
},
43
"mount_options": [],
44
"mountpoint": "/boot",
45
"obj_id": "369f31a8-2781-4d6b-96e7-75680552b7c9",
46
"start": {
47
"sector_size": {
48
"sector_size": null,
49
"total_size": null,
50
"unit": "B",
51
"value": 512
52
},
53
"total_size": null,
54
"unit": "sectors",
55
"value": 34
56
},
57
"status": "create",
58
"type": "primary"
59
},
60
{
61
"btrfs": [],
62
"flags": [],
63
"fs_type": "fat32",
64
"length": {
65
"sector_size": null,
66
"total_size": null,
67
"unit": "B",
68
"value": 100000000
69
},
70
"mount_options": [],
71
"mountpoint": "/efi",
72
"obj_id": "13cf2c96-8b0f-4ade-abaa-c530be589aad",
73
"start": {
74
"sector_size": {
75
"sector_size": null,
76
"total_size": null,
77
"unit": "B",
78
"value": 512
79
},
80
"total_size": {
81
"sector_size": null,
82
"total_size": null,
83
"unit": "B",
84
"value": 16106127360
85
},
86
"unit": "MB",
87
"value": 100
88
},
89
"status": "create",
90
"type": "primary"
91
},
92
{
93
"btrfs": [],
94
"flags": [],
95
"fs_type": "ext4",
96
"length": {
97
"sector_size": null,
98
"total_size": null,
99
"unit": "B",
100
"value": 15805127360
101
},
102
"mount_options": [],
103
"mountpoint": "/",
104
"obj_id": "3e75d045-21a4-429d-897e-8ec19a006e8b",
105
"start": {
106
"sector_size": {
107
"sector_size": null,
108
"total_size": null,
109
"unit": "B",
110
"value": 512
111
},
112
"total_size": {
113
"sector_size": null,
114
"total_size": null,
115
"unit": "B",
116
"value": 16106127360
117
},
118
"unit": "MB",
119
"value": 301
120
},
121
"status": "create",
122
"type": "primary"
123
}
124
],
125
"wipe": false
126
}
127
]
128
},
129
"disk_encryption": {
130
"encryption_type": "luks",
131
"partitions": [
132
"3e75d045-21a4-429d-897e-8ec19a006e8b"
133
]
134
},
135
"hostname": "archlinux",
136
"kernels": [
137
"linux"
138
],
139
"locale_config": {
140
"kb_layout": "us",
141
"sys_enc": "UTF-8",
142
"sys_lang": "en_US"
143
},
144
"mirror_config": {
145
"custom_mirrors": [],
146
"mirror_regions": {
147
"Sweden": [
148
"https://mirror.osbeck.com/archlinux/$repo/os/$arch",
149
"https://mirror.bahnhof.net/pub/archlinux/$repo/os/$arch",
150
"https://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch",
151
"https://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch",
152
"https://ftp.ludd.ltu.se/mirrors/archlinux/$repo/os/$arch",
153
"https://ftp.acc.umu.se/mirror/archlinux/$repo/os/$arch",
154
"http://mirror.bahnhof.net/pub/archlinux/$repo/os/$arch",
155
"http://ftpmirror.infania.net/mirror/archlinux/$repo/os/$arch",
156
"http://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch",
157
"http://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch",
158
"http://ftp.acc.umu.se/mirror/archlinux/$repo/os/$arch"
159
]
160
}
161
},
162
"network_config": {},
163
"no_pkg_lookups": false,
164
"ntp": true,
165
"offline": false,
166
"packages": [],
167
"parallel downloads": 0,
168
"profile_config": null,
169
"save_config": null,
170
"script": "guided",
171
"silent": false,
172
"swap": true,
173
"timezone": "UTC",
174
"version": "2.6.0"
175
}"#)
176
177
(deftest archiso ()
178
(is *archiso-json*))