[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/system-packages 04e2f7f 087/117: Make travis run tests
From: |
Stefan Monnier |
Subject: |
[elpa] externals/system-packages 04e2f7f 087/117: Make travis run tests |
Date: |
Fri, 14 Dec 2018 17:02:14 -0500 (EST) |
branch: externals/system-packages
commit 04e2f7fa734dabf755bbede6d29207cc1e6aa2ac
Author: Alex Branham <address@hidden>
Commit: Alex Branham <address@hidden>
Make travis run tests
---
.travis.yml | 3 ++-
Makefile | 7 ++++++-
test/system-packages-test.el | 9 +++++----
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index e9e54a2..c7b860b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,5 +9,6 @@ before_install:
script:
- emacs-snapshot --version
- - make
+ - make compile
+ - make test
diff --git a/Makefile b/Makefile
index 3e5a4a6..9365804 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,13 @@ ELC := $(patsubst %.el,%.elc,$(EL))
.PHONY: all
all: compile
-.PHONY: compile
+.PHONY: compile test
compile: $(ELC)
%.elc: %.el
$(EMACS_BATCH) --eval "(progn (message (emacs-version)) (setq
byte-compile-error-on-warn t) (batch-byte-compile))" $<
+
+test:
+ $(EMACS_BATCH) --eval "(progn\
+ (load-file \"test/system-packages-test.el\") \
+ (ert-run-tests-batch-and-exit))"
diff --git a/test/system-packages-test.el b/test/system-packages-test.el
index 26ac4dd..2e98dad 100644
--- a/test/system-packages-test.el
+++ b/test/system-packages-test.el
@@ -5,18 +5,19 @@
;; Author: J. Alexander Branham <address@hidden>
(require 'ert)
+(require 'system-packages)
(ert-deftest system-packages-get-install ()
"Return correct installation command."
(should (string=
(let ((system-packages-use-sudo nil)
(system-packages-package-manager 'guix))
- (system-packages--get-command 'install))
+ (system-packages-get-command 'install))
"guix package -i "))
(should (string=
(let ((system-packages-use-sudo t)
(system-packages-package-manager 'pacman))
- (system-packages--get-command 'install))
+ (system-packages-get-command 'install))
"sudo pacman -S ")))
(ert-deftest system-packages-get-install-noconfirm ()
@@ -25,11 +26,11 @@
(let ((system-packages-noconfirm t)
(system-packages-use-sudo nil)
(system-packages-package-manager 'guix))
- (system-packages--get-command 'install))
+ (system-packages-get-command 'install))
"guix package -i "))
(should (string=
(let ((system-packages-noconfirm t)
(system-packages-use-sudo t)
(system-packages-package-manager 'pacman))
- (system-packages--get-command 'install))
+ (system-packages-get-command 'install))
"sudo pacman -S --noconfirm")))
- [elpa] externals/system-packages e42e8e7 096/117: Simplify sudo handling, (continued)
- [elpa] externals/system-packages e42e8e7 096/117: Simplify sudo handling, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 3af0d4d 104/117: system-packages--run-command: Inhibit read-only text properties, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages e53540f 102/117: Update CI to use Emacs docker image, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 54f8243 116/117: Version 1.0.10, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages e821fa2 056/117: Drop support for pacaur, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages ce34019 066/117: Update travis to use latest Emacs release, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages ede298f 094/117: Add system-packages-ensure, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages f85a7bf 083/117: Remove unneeded :group statements, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages ec3ca7a 078/117: Fix brew list, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages ed5d9cc 082/117: Improve system-packages-package-manager :type defcustom, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 04e2f7f 087/117: Make travis run tests,
Stefan Monnier <=
- [elpa] externals/system-packages e4551fc 079/117: Add initial support for guix, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages df01469 113/117: Ensure a space between command and args, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 453802c 110/117: Add cache cleaning commands for nix and guix, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 4f82d24 092/117: Fix missing space before a nonconfirm option, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages fff67d1 084/117: README: add guix, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages b504534 115/117: Revert "Ensure a space between command and args", Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 41c294b 112/117: Fix tests, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 41933fb 107/117: Add support for yum package management, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 9a8c3a9 099/117: Move CI to gitlab, Stefan Monnier, 2018/12/14
- [elpa] externals/system-packages 78fd4c0 062/117: Initial support for nix, Stefan Monnier, 2018/12/14