Commit Graph

168 Commits

Author SHA1 Message Date
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
Takafumi Arakaki
049d1b3607 Load el-get at top level in test.el 2012-11-25 02:26:42 +01:00
Takafumi Arakaki
5d34a7afb8 Remove el-get-installation-test 2012-11-25 02:25:01 +01:00
Takafumi Arakaki
91dab8b1e6 Add test/run-ert-interactive.sh 2012-11-25 02:24:48 +01:00
Takafumi Arakaki
dfaa556ca6 Add test/run-ert.sh 2012-11-25 02:01:21 +01:00
Takafumi Arakaki
294704bf58 Add test/test-utils.sh 2012-11-25 01:56:49 +01:00
Rafael Laboissiere
0269893d61 Fix spelling of word "package" 2012-11-02 15:32:19 +01:00
Ryan C. Thompson
bd27632966 Disable redundant bandwidth-heavy test #200.
Test #176 tests the same thing and uses less bandwidth.
2012-10-07 03:50:41 -07:00
Ryan C. Thompson
1e67cf28ae Fix test for #659 again 2012-10-07 02:27:37 -07:00
Ryan C. Thompson
0dc9179614 Fixes for test scripts
* test-recipe.sh no longer fails due to missing el-get test directory
* test-recipe.sh and run-test.sh now do better jobs of cleaning up
* All test scripts now specify /bin/bash as interpreter
2012-10-06 19:16:18 -07:00
Ryan C. Thompson
54466581ee Merge remote-tracking branch 'refs/remotes/tkf/fix-835' 2012-10-06 18:46:46 -07:00
Ryan C. Thompson
43ee5daff7 In test #772, assert that recipe is suitable for test
Now the test issues an appropriate error if the specified recipe is
the wrong type.
2012-10-06 18:24:42 -07:00
Ryan C. Thompson
9386ddb5ec Switch test #772 to new recipe
The old recipe is no longer of type "hg".
2012-10-06 18:23:58 -07:00
Ryan C. Thompson
4ebed7d383 Fix test #659 now that :post-init is an updatable property 2012-10-06 18:17:30 -07:00
Ryan C. Thompson
4b74707964 Update emacsmirror method for github method cleanup
Now it add a :pkgname property instead of just adding ":username
emacsmirror".

Also update the tests for the Github method
2012-10-06 18:13:32 -07:00
Takafumi Arakaki
9ceb60817b Show Emacs executable path and version 2012-09-13 01:55:19 +02:00
Takafumi Arakaki
78d5162a33 Add run-travis-ci.sh to get correct exit code 2012-09-13 01:55:18 +02:00
Takafumi Arakaki
919ca842d3 Exit with code 1 when test fails in run-test.sh 2012-09-13 01:55:14 +02:00
Takafumi Arakaki
d8a3b685c8 Better (and now failing) test for issue #835 2012-09-01 15:01:01 +02:00
Takafumi Arakaki
d5b6d874bd Add failing tests for issue #835 2012-08-31 23:41:13 +02:00
Takafumi Arakaki
2cc1490b1b Fix run-test.sh and run-test-interactive.sh
Otherwise, run-test.sh fails with the error:
(file-error "Opening output file" "no such file or directory"
"/tmp/el-get-test-home/.emacs.d/el-get/.status.el.old")
2012-08-12 13:42:09 +02:00
Dimitri Fontaine
4b85baa9a1 Remove el-get 'wait that's been broken for a long time already, fixes #758.
The use case for el-get 'wait is very thin (setup file only), and fixing it
would be hard enough that we're not going to work on it. If you want to wait
until the packages are installed, just use 'sync.

One reason why fixing that situation is not easy is that some error cases
that happen at install time are not catched by El-Get code, so there's no
place where to set the package status as "failed" or something equivalent.
We wouls still have some "required" packages left, and if we don't count
them in the progress information we hang up completely.

This commit also refresh the test/README content to cope with the recent
status.old backup file, and in passing reformat the file as Markdown.
2012-07-30 19:22:30 +02:00