summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lebon <jonathan@jlebon.com>2023-04-14 12:21:05 -0400
committerJonathan Lebon <jonathan@jlebon.com>2023-04-14 15:19:17 -0400
commitfd3304e98760f4d8413af6181a77d0e1d955dbe8 (patch)
tree50147b058e04ab89e94d805d186f859feca364fd
parent771deb55d16e673483eeacabf92316eaca70cf40 (diff)
downloadostree-fd3304e98760f4d8413af6181a77d0e1d955dbe8.tar.gz
tests/kolainst: Add `make localinstall`
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.
-rw-r--r--tests/kolainst/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/kolainst/Makefile b/tests/kolainst/Makefile
index acfdc3b7..b2172ccb 100644
--- a/tests/kolainst/Makefile
+++ b/tests/kolainst/Makefile
@@ -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