Skip to content

Commit fb9fc58

Browse files
committed
Add manual test for install script
1 parent 5c9e4f9 commit fb9fc58

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include rules.mk
22

3-
.PHONY: force all clean test-compile test coverage manpages
3+
.PHONY: force all clean test-compile test coverage manpages test-install clean-install
44
.DEFAULT_GOAL = all
55

66
CXXFLAGS += -g -std=c++2a -Isrc -Wall -Wextra -Wpedantic
@@ -20,4 +20,14 @@ manpages: \
2020
$(call Manpage,java_remove_annotations.7)\
2121
$(call Manpage,java_remove_imports.7)\
2222

23+
test-install: export buildroot = target/buildroot
24+
test-install: export bindir = /usr/bin
25+
test-install: export rpmmacrodir = /usr/lib/rpm/macros.d
26+
test-install: export mandir = /usr/share/man
27+
test-install: all manpages
28+
./install.sh
29+
30+
clean-install:
31+
@rm -rfv target/buildroot
32+
2333
-include target/dependencies/*.mk

0 commit comments

Comments
 (0)