diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-06 20:24:05 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-06 20:24:05 -0400 |
commit | b75fe717045db33af3e9b0d9d74220daaf1c5a57 (patch) | |
tree | 9b9aacf7bc33f1ee05d80e36decb737176c8b1c7 /Makefile | |
parent | eab4091ba437ed510d0c9fbad7e7fcb50d864c0b (diff) |
makefile: destructive tests. DO NOT RUN
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -136,20 +136,31 @@ boot: rootfs | |||
136 | fastboot: rootfs | 136 | fastboot: rootfs |
137 | sudo qemu.sh | 137 | sudo qemu.sh |
138 | 138 | ||
139 | reuse_child := $(shell 2>/dev/null read child < reused-child && echo --reuse_child=$$child; true) | 139 | reuse_child := $(shell 2>/dev/null read child < reused-child && echo --reuse-child=$$child; true) |
140 | 140 | ||
141 | samizdat.iso: | 141 | samizdat.iso: |
142 | sudo initrd.sh | 142 | sudo initrd.sh |
143 | xorriso-usb.sh $(reuse_child) --bootloader --out samizdat.iso | 143 | sudo xorriso-usb.sh $(reuse_child) --bootloader --out samizdat.iso |
144 | |||
145 | |||
146 | testclean: | ||
147 | make -C kiki install | ||
148 | sudo mv /root/.gnupg /root/.gnupg.$$(date -Im) || true | ||
149 | sudo killall gpg-agent || true | ||
150 | rm -f reused-child | ||
151 | |||
152 | cleantest: | ||
153 | make testclean | ||
154 | make isotest-nonet | ||
144 | 155 | ||
145 | isotest: install | 156 | isotest: install |
146 | sudo initrd.sh | 157 | sudo initrd.sh |
147 | xorriso-usb.sh $(reuse_child) --bootloader --out samizdat.iso | 158 | sudo xorriso-usb.sh $(reuse_child) --bootloader --out samizdat.iso |
148 | USE_ISO=y SLOW_BOOT=y qemu.sh | 159 | USE_ISO=y SLOW_BOOT=y qemu.sh |
149 | 160 | ||
150 | isotest-nonet: install | 161 | isotest-nonet: install |
151 | sudo initrd.sh | 162 | sudo initrd.sh |
152 | xorriso-usb.sh $(reuse_child) --out samizdat-nonet.iso | 163 | sudo xorriso-usb.sh $(reuse_child) --out samizdat-nonet.iso |
153 | USE_ISO=y SLOW_BOOT=y NO_NET=y qemu.sh samizdat-nonet.iso | 164 | USE_ISO=y SLOW_BOOT=y NO_NET=y qemu.sh samizdat-nonet.iso |
154 | 165 | ||
155 | .PHONY: install | 166 | .PHONY: install |