Commit Graph

16 Commits

Author SHA1 Message Date
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
a66ed00b8b refactor run_test into test-utils.sh 2014-04-22 22:17:59 -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
Takafumi Arakaki
294704bf58 Add test/test-utils.sh 2012-11-25 01:56:49 +01: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
Takafumi Arakaki
9ceb60817b Show Emacs executable path and version 2012-09-13 01:55:19 +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
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
Ryan C. Thompson
349ea82c5c Fix confusion in test files between TEMP_HOME and TEST_HOME 2012-06-03 07:52:22 -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
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
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
1ca737e4ad Require el-get.el before running each test 2012-02-27 11:47:42 -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
e3940b3ed6 Add a some simple bash scripts for easily running tests 2012-02-12 01:23:09 -08:00