Commit Graph

131 Commits

Author SHA1 Message Date
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
Dimitri Fontaine
446e80e2e1 Merge pull request #772 from diasjorge/git-svn
Added checkout support for git svn
2012-06-18 09:08:54 -07:00
Jorge Dias
a1820a27fd Added test for git-svn checkout support 2012-06-13 17:15:59 +02:00
Ryan C. Thompson
bdc2cb2aa6 Fix #303 after merging #660 2012-06-03 07:53:55 -07:00
Ryan C. Thompson
349ea82c5c Fix confusion in test files between TEMP_HOME and TEST_HOME 2012-06-03 07:52:22 -07:00
Ryan Thompson
bcce1646bf Merge pull request #660 from DarwinAwardWinner/update-status-recipes
Auto-update status recipes when el-get-sources has changed
2012-06-02 20:51:08 -07:00
Ryan C. Thompson
ca85d4fc30 Merge branch 'emacs-version-check'
This adds the ability for recipes to specify a required minimum emacs
version. Attempting to install such a recipe in a lower version of
emacs will result in an error.
2012-05-28 13:52:46 -07:00
Ryan C. Thompson
f42c023e10 Allow version to be specified as number, string, or list.
See "el-get-version-to-list" for details.
2012-05-28 13:50:46 -07:00
Ryan C. Thompson
2fbf696f93 Rename version requirement to :minimum-emacs-version 2012-05-28 13:16:20 -07:00
Ryan C. Thompson
d826ef1b30 Add ability to skip cleaning test dir between tests.
This is useful if you are testing the installation of a package with
lots of dependencies, since without cleaning the dependencies will not
need to be reinstalled at the beginning of each test run.
2012-05-27 11:39:25 -07:00
Ryan C. Thompson
b13dd5ded7 Add test case for #741.
Currently failing
2012-05-13 11:59:06 -07:00
Ryan C. Thompson
16fff7ee03 Minor fixes in test 2012-05-06 01:51:19 -07:00
Ryan C. Thompson
66ac07520f Small but tricky fixes 2012-05-06 01:51:18 -07:00
Ryan C. Thompson
d4892a1e64 Refactoring 2012-05-06 01:48:05 -07:00
Ryan C. Thompson
d5cb0d47db Add test for new functionality 2012-05-06 01:48:04 -07:00
Ryan C. Thompson
426c6d2625 Added "el-get-merge-updatable-properties" with test
This is the first step on the way to fixing #659.
2012-05-06 01:48:04 -07:00
Ryan C. Thompson
221e462182 Add test for #730.
It currently passes.
2012-05-06 01:06:57 -07:00
Ryan C. Thompson
4b86f11adc Add script for starting a vanilla emacs with el-get loaded
Unlike the other test scripts, this doesn't run a test or install a
recipe or anything. It just opens up emacs with el-get ready to go so
you can do manual testing.
2012-05-06 00:24:06 -07:00
Ryan C. Thompson
3b7777b6e6 Clean up temp files created during tests 2012-05-06 00:24:06 -07:00
Ryan C. Thompson
c7e53f5695 Wrap some lines in test/README 2012-04-07 12:26:34 -07:00
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