We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
make test
1 parent f19bccb commit 2e998eeCopy full SHA for 2e998ee
.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