We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
make test
1 parent 583de27 commit ef55e4fCopy full SHA for ef55e4f
.gitignore
@@ -9,3 +9,4 @@ __pycache__
9
/libkrun.pc
10
init/init
11
examples/chroot_vm
12
+test-prefix
Makefile
@@ -74,7 +74,7 @@ ifeq ($(PREFIX),)
74
PREFIX := /usr/local
75
endif
76
77
-.PHONY: install clean $(LIBRARY_RELEASE_$(OS)) $(LIBRARY_DEBUG_$(OS))
+.PHONY: install clean test $(LIBRARY_RELEASE_$(OS)) $(LIBRARY_DEBUG_$(OS))
78
79
all: $(LIBRARY_RELEASE_$(OS)) libkrun.pc
80
@@ -135,4 +135,10 @@ install:
135
136
clean:
137
rm -f $(INIT_BINARY)
138
+ rm -rf test-prefix
139
cargo clean
140
+
141
+test: $(LIBRARY_RELEASE_$(OS))
142
+ mkdir -p test-prefix
143
+ PREFIX=test-prefix make install
144
+ cd tests; PKG_CONFIG_PATH=../test-prefix/lib64/pkgconfig/ ./run.sh
0 commit comments