Commit Graph

210 Commits

Author SHA1 Message Date
Noam Postavsky
eb264f7c64 Fix compilation on different Emacs versions
* .travis.yml:
* test/travis-ci.sh: Don't treat byte-compilation warnings as errors for
downloaded package.el and ert.

* el-get-dependencies.el (el-get-auto-dependencies): Don't use
`read-from-whole-string', it's obsolete in Emacs 25.

* el-get-list-packages.el (el-get-package-menu-sort-by-column): Don't
assume `mouse-select-window' is fbound, it may not be for non-X builds.
2016-05-14 07:47:28 -04:00
Noam Postavsky
7ff73eb11d Test more Emacs versions in Travis CI
Using binaries from https://github.com/npostavs/emacs-travis
2016-05-12 20:08:48 -04:00
Noam Postavsky
00e08b148d .travis.yml: don't hide compile failure
Fix compile warnings that snuck in while the test was broken.
2015-11-13 23:39:27 -05:00
Noam Postavsky
d79c395f22 enable ert tests in travis, reorganize test files
rename ert tests file test.el => el-get-tests.el
move el-get-issue-* files to separate dir
2015-11-13 23:39:27 -05:00
Takafumi Arakaki
dfb8c9c1ef Add a failing new test: el-get-elpa-feature 2015-11-13 23:39:27 -05:00
Takafumi Arakaki
6e4622ec9a el-get-with-temp-home: new helper for tests
Also suppress output for passing tests.
2015-11-13 23:39:27 -05:00
Noam Postavsky
6707f8c1d8 let ert shell scripts use test-utils.sh 2015-11-13 23:39:27 -05:00
Iqbal Ansari
2edca8d941 Fix test script to use el-get-read-from-file instead of
`el-get-read-recipe-file`

`el-get-read-recipe-file` was renamed to `el-get-read-from-file` in #2212
2015-09-29 00:28:02 +05:30
Noam Postavsky
6968ff8ada split el-get-check.el from el-get-recipes.el
Move checking functions from el-get-recipes.el
2015-07-05 15:53:05 -04:00
Noam Postavsky
1385ebb515 .travis.yml: display environment in log
test/travis-ci.sh: remove TRAVIS_COMMIT_RANGE work around, it's no
longer needed.
2015-03-27 17:37:32 -04:00
tarao
4ab4885297 Force installing the package. 2015-03-04 00:24:58 +09:00
Noam Postavsky
f540acc924 test/check-recipe.el: reuse el-get-check-recipe-batch 2015-01-26 14:57:24 -05:00
Noam Postavsky
1d30abffb9 Update package.el git revision hash
Following Emacs' transition to git, the hashes of commits have changed
because some commits were edited to remove bzr specific
referefences (e.g. revnos in commit messages).

Note: the equivalent bzr commit had revno 103620 on trunk, revid
cyd@stupidchicken.com-20110310234046-vzsm4s3pjxc1aids.

First line of commit: "Fix package.el handling of version numbers like
1.0pre6"

* recipes/package.rcp (package):
* test/travis-ci.sh: Update hash for last package.el version compatible
  with Emacs 23.
2014-11-20 16:20:58 -05:00
Noam Postavsky
537a90848d fix typo in test/travis-ci.sh 2014-10-28 19:07:40 -04:00
Noam Postavsky
60ce053515 Improve travis log a bit
Log SHA1 of commit range tested.
Fold output of compilation.
2014-10-26 14:51:48 -04:00
Noam Postavsky
2c131434ed show function definitions for log 2014-10-26 14:05:31 -04:00
Noam Postavsky
94ee9090ea reorganize travis test scripts
Also skip testing with emacs-snapshot if only recipes have been updated.

* test/run-travis-ci.sh: Deleted.
* test/travis-ci.sh (prereqs, byte-compile, check-recipes,
  check-whitespace): New functions.
* .travis.yml (language): emacs-lisp -> generic. emacs-lisp is not
  recognized, so Travis would treat it as ruby and needlessly install
  rvm.
  (install, script): Call functions from travis-ci.sh.
2014-10-26 13:21:57 -04:00
Iqbal Ansari
bb7ccfb49a Do not depend on url-parse for extracting hosts from urls
This fixes for #1939. Tests have been added to test/el-get-issue-1939.el
2014-10-15 21:37:52 +05:30
Iqbal Ansari
4c065f189d Fix some typos and style issues 2014-10-05 20:53:21 +05:30
Iqbal Ansari
c5d3a475ee Add tests for git shallow clones functionality 2014-10-05 12:47:13 +05:30
Rüdiger Sonderfeld
570555b72f Change bash shebang to use /usr/bin/env.
That makes those scripts usable on systems where GNU bash is not in
/bin/.  E.g., NixOS.
2014-08-18 01:09:16 +02:00
Noam Postavsky
56164e7a21 el-get-issue-407.el: remove el-get-notify hack
It's only to support the now-obsolete "stable" version; test-setup.el
already sets el-get-notify-type to 'message.
2014-06-09 22:19:05 -04:00
Noam Postavsky
46007a0334 el-get-issue-407.el: skip emacswiki install
It's not relevant to what we're testing for there, and it takes quite a
long time.
2014-06-09 22:18:44 -04:00
Noam Postavsky
34f3068883 Test that basic installer loads el-get immediately
Closes #1457
2014-06-09 22:18:04 -04:00
Noam Postavsky
8205f3eaa2 Rename el-get-(generate -> use)-autoloads
This reflects what the variable actually does.
2014-06-01 11:20:34 -04:00
Noam Postavsky
92a39c84fe Don't cache http checksums.
- If the file was changed on the HTTP server before you restarted emacs,
  the checksum wouldn't be recomputed because it would be taken from the
  cache.

- The cached value was wrongly including the HTTP headers in the
  computation. Added a test for this.

- Computing a SHA1 is not so expensive that it needs the complication of
  caching.

* methods/el-get-http.el
(el-get-http-checksums): remove.
(el-get-http-retrieve-callback): don't compute hash on HTTP headers.
(el-get-http-compute-checksum): always compute a fresh hash.

* test/el-get-issue-1752.el: new test.
2014-05-28 18:01:52 -04:00
Noam Postavsky
65ecce8567 test_recipe: extend (not replace) el-get-sources
This allows, for example setting ((:name package :post-init nil)) to
avoid downloading all the other archives when testing an ELPA recipe.
2014-05-26 19:06:24 -04:00
Noam Postavsky
dab9b81690 add whitespace check to travis test 2014-05-17 22:36:14 -04:00
Noam Postavsky
0938229093 avoid local variable queries during tests 2014-05-17 22:36:14 -04:00
Noam Postavsky
4b31e99a4a check-recipe-batch: recipes/*.rcp -> recipes/
The travis script has set -e enabled which prints out command line to be
executed. However, it prints the command line after glob expansion, so
having recipes/*.rcp in a command would be a pain to scroll through.
2014-05-01 21:00:32 -04:00
Noam Postavsky
09f9d9a82e check recipes in travis, fix or muffle warnings
suppressed warnings: -Wno-features -Wno-github -Wno-autoloads, because
too many recipes trigger them to handle right now.
2014-05-01 21:00:31 -04:00
Noam Postavsky
979314ddff some tweaks to travis tests
- use github emacs mirror for travis test: repo.or.cz was down a few
  times; since github.com must be up to run anything anyway, it's
  preferable to rely on that instead.

- run all the apt commands separately; there have been some intermittent
  failures, this should make it easier to diagnose.

- suppress curl progress bar

- show emacs --version before running tests
2014-04-23 23:29:43 -04:00
Noam Postavsky
0836da5f43 refactor common parts of test_recipe and run_test 2014-04-22 22:52:51 -04:00
Noam Postavsky
a66ed00b8b refactor run_test into test-utils.sh 2014-04-22 22:17:59 -04:00
Noam Postavsky
160552a6cf refactor test_recipe into test-utils.sh 2014-04-22 21:30:09 -04:00
Noam Postavsky
4709a9aae1 test-utils.sh: only use funcname() syntax
function keyword is redundant
2014-04-22 19:59:14 -04:00
Noam Postavsky
eb7a90aaef reuse code from test-utils.sh 2014-04-22 19:48:22 -04:00
Noam Postavsky
a44e474539 shorten set_default 2014-04-22 19:46:58 -04:00
Noam Postavsky
4c58f55920 fix more compilation warnings, missing functions
some functions were changed or introduced in 24.3
2014-04-06 14:53:59 -04:00
Noam Postavsky
939bf99dc9 just do compilation for travis testing
The current test script doesn't work at all anyway, so at least this is
better than nothing.
2014-04-04 18:27:50 -04:00
Noam Postavsky
5f689e1ec6 fix byte compiler warnings in methods/
Add requires or declare-functions as needed. Added some missing
variables (probably worked previously by dynamic binding).
2014-03-22 19:29:34 -04:00
Desmond O. Chang
c662be370a Add test code for dimitri#1615 2014-03-15 03:00:07 +08:00
Noam Postavsky
5278b05f35 el-get-set-info-path: make safe if package removed
Use an eval-after-load form that won't throw an error, regardless of
removed packages.
2014-03-04 23:42:44 -05:00
Noam Postavsky
6c1562ee55 el-get-init-and-install: handle new :depends
If a package to be init'd has new dependencies, simply install them
rather than throwing an error about missing packages. A warning about
changing non-whitelisted properties is still issued.
2014-03-03 21:02:21 -05:00
Ryan C. Thompson
fdaaf51570 Cleanup indentation with custom indent rules 2014-03-01 16:19:46 -08:00
Ryan C. Thompson
cf34f9aa0a Clean up whitespace
This commit is the result of running cleanup-whitespace.sh.

Fixes #549.
2014-02-21 10:52:48 -08:00
myeffort
67830e2a59 Fixed some mistakes from previous commit.
In particular I neglected the fact that I've introduced a conditional
which blocked package-refresh-contents from el-get-elpa-install in some
cases. Practically the smae bug which I attempted to fix, could have
been encountered if packages were installing in opposite order, whcich i
try to reflect in added variant of the test.
2014-02-12 06:08:09 +04:00
myeffort
2bd1891e90 Made a test 2014-02-11 21:44:23 +04:00
Noam Postavsky
2c006f50b8 test for auto elpa recipes
el-get-elpa-build-local-recipes generates recipes with bogus `emacs'
dependency.
2013-12-14 12:08:50 -05:00
Ryan C. Thompson
b9ae825557 Add failing test for #1454 2013-11-22 08:39:58 -08:00