tests/kolainst: Add `make localinstall`
authorJonathan Lebon <jonathan@jlebon.com>
Fri, 14 Apr 2023 16:21:05 +0000 (12:21 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Fri, 14 Apr 2023 19:19:17 +0000 (15:19 -0400)
When hacking and testing locally with `cosa build-fast` and `kola run`,
I prefer to leave testing framework stuff within the work directory
rather than installed in my pet container. Add a `localinstall` target
for this which puts the tests in `tests/kola`. Then a simple `kola run`
will pick it up.

tests/kolainst/Makefile

index acfdc3b71f25cd52a5e6db7cac70cd179c2f95a4..b2172ccbf6058330126dc1caabf710ec648670f1 100644 (file)
@@ -15,3 +15,7 @@ install:
        install -D -m 0755 -t $(KOLA_TESTDIR)/nondestructive-rs ../inst/target/release/ostree-test
        install -D -m 0644 destructive-stamp.ign $(KOLA_TESTDIR)/destructive-rs/config.ign
        ./install-wrappers.sh destructive-list.txt $(KOLA_TESTDIR)/destructive-rs
+
+localinstall:
+       rm -rf ../kola
+       make install KOLA_TESTDIR=../kola