From b75fe717045db33af3e9b0d9d74220daaf1c5a57 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Wed, 6 May 2020 20:24:05 -0400 Subject: makefile: destructive tests. DO NOT RUN --- Makefile | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9398787..f071c77 100644 --- a/Makefile +++ b/Makefile @@ -136,20 +136,31 @@ boot: rootfs fastboot: rootfs sudo qemu.sh -reuse_child := $(shell 2>/dev/null read child < reused-child && echo --reuse_child=$$child; true) +reuse_child := $(shell 2>/dev/null read child < reused-child && echo --reuse-child=$$child; true) samizdat.iso: sudo initrd.sh - xorriso-usb.sh $(reuse_child) --bootloader --out samizdat.iso + sudo xorriso-usb.sh $(reuse_child) --bootloader --out samizdat.iso + + +testclean: + make -C kiki install + sudo mv /root/.gnupg /root/.gnupg.$$(date -Im) || true + sudo killall gpg-agent || true + rm -f reused-child + +cleantest: + make testclean + make isotest-nonet isotest: install sudo initrd.sh - xorriso-usb.sh $(reuse_child) --bootloader --out samizdat.iso + sudo xorriso-usb.sh $(reuse_child) --bootloader --out samizdat.iso USE_ISO=y SLOW_BOOT=y qemu.sh isotest-nonet: install sudo initrd.sh - xorriso-usb.sh $(reuse_child) --out samizdat-nonet.iso + sudo xorriso-usb.sh $(reuse_child) --out samizdat-nonet.iso USE_ISO=y SLOW_BOOT=y NO_NET=y qemu.sh samizdat-nonet.iso .PHONY: install -- cgit v1.2.3