[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/assess be539d6447 92/95: Update test framework, drop ea
From: |
ELPA Syncer |
Subject: |
[elpa] externals/assess be539d6447 92/95: Update test framework, drop early 24 |
Date: |
Tue, 19 Jul 2022 15:57:36 -0400 (EDT) |
branch: externals/assess
commit be539d6447c24369692466e01b0190257f3c0bd1
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Update test framework, drop early 24
This adds a new docker based test launcher. This version does not use
cask, as this can be problematic on older versions. We also drop
support for Emacs before 24.3 due to a strange bug which seems to
prevent package installation.
---
.gitignore | 1 +
.travis.yml | 20 +++++++++-----------
Makefile | 42 +++++++++++++++++++++++++++++++++++++++---
test-by-cp | 9 +++++++++
test-from-git | 7 +++++++
test/local-sandbox.el | 25 +++++++++++++++++++++++++
6 files changed, 90 insertions(+), 14 deletions(-)
diff --git a/.gitignore b/.gitignore
index 7479b28172..c8bf50de28 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
/dist
/assess-pkg.el
/test/assess-test.org
+/elpa-sandbox/
diff --git a/.travis.yml b/.travis.yml
index 00ecd357d5..71a4f8b228 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,20 +1,18 @@
language: generic
sudo: no
env:
- - EVM_EMACS=emacs-24.1-travis
- - EVM_EMACS=emacs-24.2-travis
- - EVM_EMACS=emacs-24.3-travis
- - EVM_EMACS=emacs-24.4-travis
- - EVM_EMACS=emacs-24.5-travis
- - EVM_EMACS=emacs-25.1-travis
- - EVM_EMACS=emacs-25.2-travis
- - EVM_EMACS=emacs-25.3-travis
- - EVM_EMACS=emacs-26.1-travis
- EVM_EMACS=emacs-git-snapshot-travis
+ - EVM_EMACS=emacs-26.3-travis
+ - EVM_EMACS=emacs-26.2-travis
+ - EVM_EMACS=emacs-26.1-travis
+ - EVM_EMACS=emacs-25.3-travis
+ - EVM_EMACS=emacs-25.2-travis
+ - EVM_EMACS=emacs-25.1-travis
+ - EVM_EMACS=emacs-24.5-travis
+ - EVM_EMACS=emacs-24.4-travis
install:
- curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw >
travis.sh && source ./travis.sh
- evm install $EVM_EMACS --use --skip
- - cask
script:
- emacs --version
- - make
\ No newline at end of file
+ - make cask-free-test
diff --git a/Makefile b/Makefile
index a95e173daa..1f1f570060 100644
--- a/Makefile
+++ b/Makefile
@@ -28,12 +28,48 @@ just-test:
export:
export
+
multi-test:
make EMACS=$(EMACSES)/master/src/emacs test
make EMACS=$(EMACSES)/emacs-26.1/src/emacs test
make EMACS=$(EMACSES)/emacs-25.3/src/emacs test
make EMACS=$(EMACSES)/emacs-24.5/src/emacs test
make EMACS=$(EMACSES)/emacs-24.4/src/emacs test
- make EMACS=$(EMACSES)/emacs-24.3/src/emacs test
- make EMACS=$(EMACSES)/emacs-24.2/src/emacs test
- make EMACS=$(EMACSES)/emacs-24.1/src/emacs test
+
+elpa-sandbox:
+ mkdir elpa-sandbox
+
+
+cask-free-test: elpa-sandbox
+ emacs --batch -q \
+ --directory=. \
+ --load test/local-sandbox.el \
+ --eval '(assess-discover-run-and-exit-batch t)'
+
+DOCKER_TAG=26
+test-cp:
+ docker run -it --rm --name docker-cp -v $(PWD):/usr/src/app -w
/usr/src/app --entrypoint=/bin/bash silex/emacs:$(DOCKER_TAG)-dev ./test-by-cp
+
+test-git:
+ docker run -it --rm --name docker-git -v $(PWD):/usr/src/app -w
/usr/src/app --entrypoint=/bin/bash silex/emacs:$(DOCKER_TAG)-dev
./test-from-git
+
+multi-test-cp:
+ $(MAKE) test-cp DOCKER_TAG=26.2
+ $(MAKE) test-cp DOCKER_TAG=26.1
+ $(MAKE) test-cp DOCKER_TAG=25.3
+ $(MAKE) test-cp DOCKER_TAG=25.2
+ $(MAKE) test-cp DOCKER_TAG=25.1
+ $(MAKE) test-cp DOCKER_TAG=24.5
+ $(MAKE) test-cp DOCKER_TAG=24.4
+ $(MAKE) test-cp DOCKER_TAG=master
+
+multi-test-git:
+ $(MAKE) test-git DOCKER_TAG=27.0
+ $(MAKE) test-git DOCKER_TAG=26.3
+ $(MAKE) test-git DOCKER_TAG=26.2
+ $(MAKE) test-git DOCKER_TAG=26.1
+ $(MAKE) test-git DOCKER_TAG=25.3
+ $(MAKE) test-git DOCKER_TAG=25.2
+ $(MAKE) test-git DOCKER_TAG=25.1
+ $(MAKE) test-git DOCKER_TAG=24.5
+ $(MAKE) test-git DOCKER_TAG=24.4
diff --git a/test-by-cp b/test-by-cp
new file mode 100644
index 0000000000..be459f9eb1
--- /dev/null
+++ b/test-by-cp
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+cd ..
+mkdir copy
+cd copy
+cp -rf ../app/* .
+
+rm makefile-local
+make cask-free-test
diff --git a/test-from-git b/test-from-git
new file mode 100644
index 0000000000..255cca84ca
--- /dev/null
+++ b/test-from-git
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+cd ..
+mkdir git
+cd git
+git clone ../app .
+make test
diff --git a/test/local-sandbox.el b/test/local-sandbox.el
new file mode 100644
index 0000000000..019e0c65e7
--- /dev/null
+++ b/test/local-sandbox.el
@@ -0,0 +1,25 @@
+(setq package-user-dir
+ (concat
+ default-directory
+ "elpa-sandbox/"
+ (int-to-string emacs-major-version)
+ "."
+ (int-to-string emacs-minor-version)
+ ))
+
+
+(setq package-archives
+ '(("gnu" . "https://elpa.gnu.org/packages/")
+ ("melpa-stable" . "https://stable.melpa.org/packages/")
+ ))
+
+;; switch this off or Emacs-25 will fail to get to gnu
+(setq package-check-signature nil)
+(package-initialize)
+(package-refresh-contents)
+
+(package-install 'm-buffer)
+(package-install 'load-relative)
+
+(load-file "assess-discover.el")
+
- [elpa] externals/assess 46834f9423 54/95: Add ability to capture calls to hooks, (continued)
- [elpa] externals/assess 46834f9423 54/95: Add ability to capture calls to hooks, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 74d8de749c 64/95: assess-with-temp-buffers now uses let*, ELPA Syncer, 2022/07/19
- [elpa] externals/assess fca80753d7 66/95: Kill even modified file associated buffers, ELPA Syncer, 2022/07/19
- [elpa] externals/assess df2532f2ec 56/95: Add autoload cookies, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 979c26b3b7 73/95: Add assess-with-filesystem, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 190eab03d7 74/95: Fix debug declation in -with-temp-buffers, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 1c34f2bc14 79/95: Fix error symbol declaration, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 1b1ac33709 87/95: Fix travis build, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 29950d8964 90/95: Merge pull request #18 from DamienCassou/typos, ELPA Syncer, 2022/07/19
- [elpa] externals/assess cb2c0361a7 91/95: Add expected failure, ELPA Syncer, 2022/07/19
- [elpa] externals/assess be539d6447 92/95: Update test framework, drop early 24,
ELPA Syncer <=
- [elpa] externals/assess cd394f309f 49/95: Add documentation for assess-call, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 38084cff73 60/95: v0.3 release, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 4a5eee8ba9 62/95: Fix version number, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 29e80b7540 65/95: Ensure capture function returns correct value, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 9374be7b98 72/95: Add initial lentic support to assess-discover, ELPA Syncer, 2022/07/19
- [elpa] externals/assess e57945bb84 75/95: Merge pull request #9 from DamienCassou/typos, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 63e934c6f2 76/95: State that text properties are ignored, ELPA Syncer, 2022/07/19
- [elpa] externals/assess deb6e4cb23 80/95: Remove direct dash dependency, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 1ef6760358 82/95: Add Emacs24.1 to multi-test target, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 83fddff944 83/95: Update README, ELPA Syncer, 2022/07/19