Commit 6619612 1 parent 9e6edc8 commit 6619612 Copy full SHA for 6619612
File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ __pycache__
9
9
/libkrun.pc
10
10
init /init
11
11
examples /chroot_vm
12
+ test-prefix
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ ifeq ($(PREFIX),)
74
74
PREFIX := /usr/local
75
75
endif
76
76
77
- .PHONY : install clean $(LIBRARY_RELEASE_$(OS ) ) $(LIBRARY_DEBUG_$(OS ) )
77
+ .PHONY : install clean test $(LIBRARY_RELEASE_$(OS ) ) $(LIBRARY_DEBUG_$(OS ) )
78
78
79
79
all : $(LIBRARY_RELEASE_$(OS ) ) libkrun.pc
80
80
@@ -136,3 +136,10 @@ install: libkrun.pc
136
136
clean :
137
137
rm -f $(INIT_BINARY )
138
138
cargo clean
139
+ rm -rf test-prefix
140
+ cd tests; cargo clean
141
+
142
+ test : $(LIBRARY_RELEASE_$(OS ) )
143
+ mkdir -p test-prefix
144
+ PKG_CONFIG_PATH=test-prefix/lib64/pkgconfig/ PREFIX=" $$ (realpath test-prefix)" make install
145
+ cd tests; LD_LIBRARY_PATH=../test-prefix/lib64/ PKG_CONFIG_PATH=../test-prefix/lib64/pkgconfig/ ./run.sh
You can’t perform that action at this time.
0 commit comments