diff options
author | Fredrik Salomonsson <plattfot@posteo.net> | 2021-01-31 13:26:49 -0800 |
---|---|---|
committer | Fredrik Salomonsson <plattfot@posteo.net> | 2021-01-31 16:55:15 -0800 |
commit | 241efa432e41cf60cbaea5f467c0218deb82febe (patch) | |
tree | 7d70b9154cc85e7b8ae92b17ebe18e2e8cda0267 | |
parent | 5c0da1efda771f25d739e81e9bb0f84601f853c6 (diff) | |
download | pinentry-rofi-241efa432e41cf60cbaea5f467c0218deb82febe.tar.gz |
Add installcheck to make sure the pinentry-rofi script works
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | guix.scm | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index f6eeea3..8158e82 100644 --- a/Makefile.am +++ b/Makefile.am @@ -78,3 +78,9 @@ clean-go: CLEANFILES = \ $(GOBJECTS) \ $(TESTS:tests/%.scm=%.log) + +# Sanity checks for the script +installcheck-local: + [ `$(bindir)/pinentry-rofi --version` = $(HVERSION) ] + $(bindir)/pinentry-rofi --help + echo BYE | $(bindir)/pinentry-rofi @@ -57,7 +57,10 @@ (wrap-program (string-append bin "pinentry-rofi") (list "PATH" ":" 'prefix `(,rofi-bin))) - #t)))))))) + #t))))) + (add-after 'compress-documentation 'installcheck + (lambda* rest + (invoke "make" "installcheck")))))) (native-inputs `(("autoconf" ,autoconf) ("autoconf-archive" ,autoconf-archive) |