Commit Graph

189 Commits

Author SHA1 Message Date
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
Yakkala Yagnesh Raghava
9d131afa3d Merge branch 'next' 2013-10-21 14:24:00 +09:00
yagnesh రాఘవ
807a0ca754 Merge pull request #1397 from npostavs/elpa-pkg-dir
be more precise about elpa package dir names
2013-10-20 22:12:37 -07:00
Yakkala Yagnesh Raghava
f8a8008f23 Merge branch 'next' 2013-10-21 13:52:07 +09:00
Noam Postavsky
8b28d257bb test for removal of autoloads (failing) 2013-10-09 08:05:33 -04:00
Noam Postavsky
32ab64f47e be more precise about elpa package dir names
ELPA Package directories are named <package>-<version>.  Previously
`el-get-elpa-package-directory' looked for package-dirs using
`all-completions' meaning anything starting with <package> would match.
This is problematic if a package is a prefix of another package, eg the
`s' and `solarized-theme' packages.

Instead of doing that, look for a directory that is precisely
<package>-<version> where <version> is something acceptable to
`version-to-list'.

Fixes #1189.
2013-10-07 00:20:16 -04:00
yagnesh రాఘవ
b6c74f7caf Merge pull request #1395 from npostavs/rmpkg-is-nil
fix test 683, removed package has no status
2013-10-06 19:11:25 -07:00
Yakkala Yagnesh Raghava
513a1a7125 Merge branch 'npostavs-package-initialize' into next 2013-10-07 10:57:56 +09:00
Noam Postavsky
4cc57f3170 test http-tar method el-get-update
This test attempts to recreate the situation described in #809. The test
passes, which means either the issue has been fixed, or this test case
isn't actually testing the right thing.

closes #809
2013-10-06 14:59:41 -04:00
Noam Postavsky
d023603bdb fix test 683, removed package has no status
Since 0e1d2d2444 a removed package is
simply deleted from the status list, but the test was still expecting
"removed".
2013-10-06 14:42:06 -04:00
Yakkala Yagnesh Raghava
b1d3be9cbc Merge branch 'package-initialize' of https://github.com/npostavs/el-get into npostavs-package-initialize 2013-10-06 23:33:33 +09:00
Yakkala Yagnesh Raghava
1ab0dc3405 Merge branch 'autoloads-nil' of https://github.com/npostavs/el-get into npostavs-autoloads-nil 2013-10-06 22:47:21 +09:00
Noam Postavsky
dd18802af9 call package-initialize in elpa installion
The package-install function calls some initalization functions from
within the interactive form.  This can cause it to fail when called
non-interactively.

package-refresh-contents calls package-read-all-archive-contents so we
don't need to call it explicitly.

Fixes #1389
2013-09-29 16:22:59 -04:00
Noam Postavsky
b8ce58d42f test for #1006 2013-09-24 21:12:46 -04:00
Noam Postavsky
e40aa6670d check el-get-want-autoloads-p in el-get-update-autoloads
This fixes #810 and #614.
2013-09-24 19:32:07 -04:00
Rüdiger Sonderfeld
3ef2ca4995 Colorize output of run-*test.sh.
Remove the use of ack in run-all-tests.sh.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-05-15 14:58:50 +02:00
Victor Deryagin
0a202ea35d changed mentions of 'README.asciidoc' to 'README.md' in source files 2013-04-01 15:46:34 +03:00
Victor Borja
66f6bec211 Git clone should ignore depth when using http transport.
Add failing test for issue #1028

Fixes #1028
2013-02-04 04:33:45 +00:00
Takafumi Arakaki
15bd4cfa61 Add recipe checker command and script
* Add el-get-check-recipe command
* Add a script test/check-recipe.el
* Mention recipe checker in the document
* Add warnings to el-get-check-recipe
* Use @command instead of @code
* make el-get.info
* Use more expressive name than el-get-check-recipe-1
2013-01-05 11:56:49 +09:00
Takafumi Arakaki
37a9e6da5c Add usage in test/README.md 2012-11-25 02:37:37 +01:00
Takafumi Arakaki
e359166b29 Run ert tests from run-travis-ci.sh 2012-11-25 02:30:28 +01:00
Takafumi Arakaki
2eed7a2af0 Load ert at top level in test.el 2012-11-25 02:29:02 +01:00