Commit Graph

199 Commits

Author SHA1 Message Date
Ryan C. Thompson
cb787b2a7a Always print with "print-level" and "print-length" nil
This prevents Emacs from inserting "..." in place of very deep or long
data structures, which could corrupt the status file in some cases.
This is done by defining a wrapper function "el-get-print-to-string",
which el-get should use for all "critical" stringification tasks.

As noted in #689.
2012-03-29 14:52:43 -07:00
Ryan C. Thompson
426cf23718 Add additional assertions to test #407.
Ensures that all el-get features are unloaded before attempting to
install from scratch.
2012-03-29 13:00:09 -07:00
Ryan C. Thompson
d258447245 Add test for #683. 2012-03-24 15:44:51 -07:00
Ryan C. Thompson
1fdcc0f72a Fix typo in test-setup.el 2012-03-18 15:21:27 -07:00
Ryan C. Thompson
647bba5a25 Highlight test failures in run-all-tests.sh
This uses the ack program. If ack is not available, then it falls back
to cat, which obviously does no highlighting.
2012-03-18 14:52:45 -07:00
Ryan C. Thompson
5670983354 Merge branch 'save-only-installed-recipes' into dimitri-master 2012-03-18 14:12:47 -07:00
Ryan C. Thompson
e0660e0568 Merge branch 'setq-in-tests' into dimitri-master 2012-03-18 14:08:17 -07:00
Ryan C. Thompson
048970a76e Prevent notification errors in test for #407.
This is necessary because the stable version of el-get (which gets
installed during this test) may be too old to support
`el-get-notify-type'.
2012-03-18 13:36:49 -07:00
Ryan C. Thompson
4a73ded92d Set "el-get-notify-type" to 'message in tests
This prevents tests from hitting errors due to notification issues.
2012-03-18 13:30:38 -07:00
Ryan C. Thompson
6d75c14cc5 Add test for #672 2012-03-18 12:56:50 -07:00
Ryan C. Thompson
1fb104010c Use setq instead of let in tests
This makes it easier to run tests interactively and inspect the
results afterward, because the variables such as "el-get-sources" that
were set for the tests are still bound to the values they had during
the test.
2012-03-18 12:33:04 -07:00
Ryan C. Thompson
141b2e594e Add test-setup.el and use it in test scripts
Among other things, it ensures that the full backtrace of any error is printed in batch mode.
2012-03-15 10:01:13 -07:00
Ryan C. Thompson
5f07d5631d Only sleep between tests (not after last one) 2012-03-12 16:29:40 -07:00
Ryan C. Thompson
06a5994363 Add test for issue #656. 2012-03-09 14:27:45 -08:00
Ryan C. Thompson
ac6c72c2dd Fix test #592
Conflicts:

	test/el-get-issue-592.el
2012-03-09 13:03:23 -08:00
Ryan Thompson
5481256566 Merge pull request #651 from DarwinAwardWinner/remove-from-status-dynamic
Use dynamic binding to force usage of status recipes
2012-03-08 14:54:59 -08:00
Ryan C. Thompson
c29d32843b Extend test for #650 to cover reload and checksum 2012-03-08 13:03:03 -08:00
Ryan C. Thompson
38064a6a05 Add test for #652. 2012-03-08 11:58:39 -08:00
Ryan C. Thompson
7887696bb2 Add (currently-failing) test for issue #560 2012-03-07 18:07:44 -08:00
Ryan C. Thompson
f4a4deeab7 Rename caching speedtest to exclude it from run-all-tests.sh 2012-03-07 12:41:10 -08:00
Ryan C. Thompson
6084d91cb3 Add status caching benchmark script.
Run it with the usual run-test.sh
2012-03-07 12:38:08 -08:00
Ryan Thompson
6309740388 Merge pull request #643 from DarwinAwardWinner/reinstall-on-type-change
Reinstall on type change
2012-03-07 08:09:09 -08:00
Ryan C. Thompson
f69fbb1ac0 Add failing test for issue #640. 2012-03-06 11:56:50 -08:00
Ryan C. Thompson
14a7b02ac1 Add test for #642 2012-03-06 10:07:43 -08:00
Ryan C. Thompson
6575ff8170 Fix run-test-interactive filename guessing 2012-03-06 01:24:02 -08:00
Takafumi Arakaki
b6f5dcf1b2 el-get-hg-compute-checksum returns full 40-digit hex now 2012-03-05 19:21:55 +01:00
Ryan C. Thompson
676fa8f71f Merge branch 'prevent-notify-error' 2012-03-05 08:47:00 -08:00
Ryan C. Thompson
b997bce927 Merge branch 'load-path-nil' 2012-03-05 08:42:58 -08:00
Ryan C. Thompson
3ab59b16d0 Grammar fix in assertion comment 2012-03-05 08:42:38 -08:00
Ryan C. Thompson
4ce49b073d Add information about test-recipe.sh 2012-03-04 12:40:16 -08:00
Ryan C. Thompson
80de27bfeb Minor fix for test-all-recipes.sh
It had "exec" at the beginning of the command that it tolde the user
to run, which would replace the user's running shell. This is now
removed.
2012-03-04 12:39:59 -08:00
Ryan C. Thompson
4480375f12 Add information about run-test.sh to test/README 2012-03-04 12:35:46 -08:00
Ryan C. Thompson
5db03e885b More intelligent test file guessing.
Now you can say "test/run-test.sh 303" to run the test
"test/el-get-issue-303.el"

Also, give an explicit error message when a test file does not exist.
2012-03-04 12:35:46 -08:00
Ryan C. Thompson
d564974ca2 Remove extra load-path from test 310
It was harmless but unnecessary.
2012-03-04 12:14:22 -08:00
Ryan C. Thompson
70990726c4 Enable debug on error in interactive tests 2012-03-04 12:14:22 -08:00
Takafumi Arakaki
24bc27930f Add Add test for issue #632 2012-03-04 00:16:19 +01:00
Ryan C. Thompson
b2a12748e9 Add test for #628 2012-03-02 15:46:53 -08:00
Ryan C. Thompson
da74bc2565 Fix test for #613 2012-03-02 15:38:40 -08:00
Ryan C. Thompson
0a3c869bad Merge branch 'autoload-pre-init'
Conflicts:
	recipes/wrap-region.rcp
2012-03-02 15:22:04 -08:00
Ryan Thompson
b80409eedc Merge pull request #617 from DarwinAwardWinner/method-guess-website
Method guess website
2012-03-02 15:20:32 -08:00
Ryan C. Thompson
c3964826f7 Add test for hg checksum functionality 2012-02-29 14:19:51 -08:00
Ryan C. Thompson
b0ba0acebb Merge branch 'cvs-proxy' 2012-02-28 18:23:01 -08:00
Ryan C. Thompson
04f7c866a1 Add test for website guessing (#615) 2012-02-28 17:57:55 -08:00
Ryan C. Thompson
ad6c3d8606 Add test for issue #613 2012-02-28 16:39:08 -08:00
Ryan C. Thompson
9fa5267740 Remove "(require 'el-get)" from test files 2012-02-27 11:47:42 -08:00
Ryan C. Thompson
5e31f0a235 Test #407 now unloads el-get before running
This ensures that it will always try to install el-get during the
test.
2012-02-27 11:47:42 -08:00
Ryan C. Thompson
97eb450391 Require el-get.el before running each test interactively 2012-02-27 11:47:42 -08:00
Ryan C. Thompson
1ca737e4ad Require el-get.el before running each test 2012-02-27 11:47:42 -08:00
Ryan Thompson
c99db81dc3 Merge pull request #603 from DarwinAwardWinner/test-rate-limit
Sleep 5 seconds between tests
2012-02-27 10:46:49 -08:00
Ryan C. Thompson
d676e99e7d Sleep 5 seconds between tests
This avoids accidentally DoSing the servers that host many packages,
such as GitHub or the ELPA servers.
2012-02-26 23:44:57 -08:00
Ryan C. Thompson
14e1d86200 Add test for installing package.rcp 2012-02-26 15:14:18 -08:00
Ryan C. Thompson
b2e7cb386f Add test for #592.
The test currently fails due to an unrelated bug.
2012-02-26 14:02:54 -08:00
Ryan C. Thompson
13ac53ac7c Fix comments in test 594 2012-02-26 14:01:08 -08:00
Ryan C. Thompson
38aac32c26 Add test for installing pymacs with empty PYTHONPATH 2012-02-26 02:51:42 -08:00
Ryan C. Thompson
a419103e06 Add test for installation via cvs
CVS proxy support can be tested by running this with the HTTP_PROXY
environment variable set.
2012-02-23 16:03:51 -08:00
Ryan C. Thompson
112a6c2e38 Merge branch 'lazy-fix' into recipe-auto-lambda
Conflicts:
	el-get.el
	recipes/clevercss.rcp
	recipes/coffee-mode.rcp
	recipes/full-ack.rcp
	recipes/mustache-mode.rcp
	recipes/n3-mode.rcp
	recipes/pylookup.rcp
	recipes/rhtml-mode.rcp
	recipes/sauron.rcp
	recipes/yaml-mode.rcp
2012-02-23 15:05:49 -08:00
Ryan C. Thompson
95968f5d47 Add test for prepare function 2012-02-23 14:40:32 -08:00
Ryan C. Thompson
ae8453db85 Add test for issue 589 2012-02-23 14:35:11 -08:00
Ryan C. Thompson
2b8c7ec8e3 Put real recipes last in test, since they take much longer 2012-02-22 14:58:48 -08:00
Ryan C. Thompson
3b9428297c Rewrite test function for db2d218 2012-02-22 14:46:22 -08:00
Ryan C. Thompson
99c06b66a0 Add some real recipes to the test case for issue 579 2012-02-22 14:46:22 -08:00
Ryan C. Thompson
cbaa97711d Add test for issue #579 2012-02-22 14:05:33 -08:00
Ryan C. Thompson
ee1bb6b542 Add test for github archive methods 2012-02-21 15:21:06 -08:00
Ryan C. Thompson
7429e0bb91 Test to make sure a broken recipe raises an error 2012-02-21 15:03:03 -08:00
Ryan C. Thompson
478cc65469 Add test for github and emacsmirror install methods 2012-02-21 15:02:26 -08:00
Dimitri Fontaine
3bebbeb519 Merge pull request #577 from DarwinAwardWinner/dep-fix
Fix for installing packages with already-installed dependencies
2012-02-21 13:02:49 -08:00
Ryan C. Thompson
7a05ba0b13 Add test for issue 586 2012-02-20 19:11:01 -08:00
Ryan C. Thompson
e25db9551f Add test for install-remove-reinstall pattern
This pattern seems to trigger the bug.
2012-02-20 12:48:40 -08:00
Ryan C. Thompson
f1b374d869 Improve recipe testing scripts
Set el-get-default-process-sync to t, and activate the full
install-update-remove-reinstall cycle.
2012-02-20 12:41:57 -08:00
Ryan C. Thompson
9cae4734ce Convert conditional error to an assertion 2012-02-20 02:37:44 -08:00
Ryan C. Thompson
4a7b8f3b4c Add script to test all recipes
There is a "safety" to prevent it from being run accidentally. Whe
running it, it simply prints out the command that will test all the
recipes. The user must then paste that command back into the shell to
actually run the tests.
2012-02-20 02:24:10 -08:00
Ryan C. Thompson
885fdc8a53 Add interactive version of recipe tester 2012-02-20 02:13:24 -08:00
Ryan C. Thompson
f0663ba17f Add script for testing recipes 2012-02-20 02:12:33 -08:00
Ryan C. Thompson
83fbdaaedb Fix ipython recipe and add test for it 2012-02-20 01:10:15 -08:00
Ryan C. Thompson
5f9f87e9ac Add script for running test in interactive emacs
This allows you to do a post-mortem, inspecting the backtrace
interactively and so forth.
2012-02-20 00:23:35 -08:00
Ryan Thompson
eb275263b1 Merge pull request #541 from DarwinAwardWinner/bytecomp-load-path
Pass load-path to byte-compiling child process
2012-02-15 12:42:56 -08:00
Ryan C. Thompson
aaa0976756 Add test for issue 548 2012-02-13 21:31:16 -08:00
Ryan C. Thompson
3ab3ab7d9d Add test for byte-compilation 2012-02-13 17:04:58 -08:00
Ryan C. Thompson
6f0c9d93d2 Add support for ":shallow" property in git method 2012-02-12 12:49:14 -08:00
Ryan C. Thompson
e3940b3ed6 Add a some simple bash scripts for easily running tests 2012-02-12 01:23:09 -08:00
Dimitri Fontaine
bed23e1be6 Update test/test.el to match current el-get expectations. 3 test passes. 2011-10-25 21:11:25 +02:00
Dimitri Fontaine
9b810aa9a4 Use ert in test/test.el, thanks to Ted Zlatanov. 2011-10-25 21:02:06 +02:00
Dimitri Fontaine
ce8a7e3899 Fix el-get-byte-compile in recent Emacs snapshot.
byte-compile-file behaviour changed yet again, so stop trying to guess if we
can rely on it and just define our own behaviour.
2011-10-11 20:40:57 +02:00
Dimitri Fontaine
6edce206c7 Fix loading of autoloads at init time, I broke that in the refactoring. 2011-10-11 18:02:20 +02:00
Dimitri Fontaine
e6f7a35c41 Fix el-get-install handling of already installed dependencies, per #432. 2011-10-08 21:27:55 +02:00
Dimitri Fontaine
3d2f4c5e63 Fix el-get-install-or-init-info, per #418. 2011-10-03 22:06:40 +02:00
Dimitri Fontaine
6eb1318545 use url-retrieve-synchronously in init file, per #407 2011-09-30 20:53:56 +02:00
Dimitri Fontaine
afbf931456 Have php-mode.rcp eagerly load the feature to fix #400 2011-09-23 23:35:19 +02:00
Dimitri Fontaine
c4ff249c0d Add a test for issue #400.
That's not the same as actually fixing it, but I'm at a loss about how
exactly to do that.
2011-09-23 14:08:31 +02:00
Dimitri Fontaine
2f0170612e Have the tests depend on -L for the load-path, for portability. 2011-09-23 11:33:30 +02:00
Dimitri Fontaine
2dc060fd58 M-x delete-trailing-whitespace test/test.el. 2011-09-22 21:48:31 +02:00
Dimitri Fontaine
8db0c4d49b Fix the refactoring so that it actually works.
This includes teaching methods that they now work with a symbolp PACKAGE,
some more cleaning up, and some load-path adjustments now that a part of the
code is in a subdirectory (methods).

Also include some of the tests used to convince oneself that the refactoring
didn't break any and all use cases for el-get, with some rough documentation
about how to use them.
2011-09-22 21:48:11 +02:00
Dave Abrahams
6db7fc41d8 Make sure we can check for el-get being compiled even before it's been loaded. Catch errors during our wait for completion. Reorder waiting to make sure the process gets kicked off. 2011-03-02 16:49:02 -05:00
Dave Abrahams
504fd44943 Use run-at-time for repeating events, etc. 2011-03-01 22:01:05 -05:00
Dave Abrahams
dfd49b7763 Try to get more information from a test that times out 2011-03-01 19:47:40 -05:00
Dave Abrahams
e592c0eeac Only let the test succeed if el-get byte-compiles 2011-03-01 17:04:30 -05:00
Dave Abrahams
9158b9ded2 Try to force failures in installation to drop into the debuggger 2011-03-01 16:58:41 -05:00
Dave Abrahams
1d418ab4bf Let's make sure there's some record of having dropped into the
debugger, even if we're in a sentinel
2011-03-01 16:56:01 -05:00
Dave Abrahams
33bb2a3f92 Added the first test 2011-03-01 13:27:12 -05:00