el-get/test/issues
Noam Postavsky d79c395f22 enable ert tests in travis, reorganize test files
rename ert tests file test.el => el-get-tests.el
move el-get-issue-* files to separate dir
2015-11-13 23:39:27 -05:00
..
el-get-issue-176.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-200.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-284.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-289.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-303.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-310.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-400.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-407.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-418.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-432.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-446.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-513.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-535.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-541.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-548.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-559.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-579.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-581.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-583.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-586.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-589.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-592.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-594.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-596.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-613.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-615.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-619.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-628.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-632.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-640.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-642.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-650.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-652.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-656.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-659.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-672.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-683.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-730.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-772.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-809.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-810.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-835.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1006.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1028.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1189.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1348.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1389.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1454.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1472.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1562.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1615.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1752.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1920.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-1939.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-new-2.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
el-get-issue-new.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
foo.php enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
issue-741-elpa-install-error.el enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
README.md enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
run-all-tests.sh enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
run-test-interactive.sh enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00
run-test.sh enable ert tests in travis, reorganize test files 2015-11-13 23:39:27 -05:00

Old issue reproducers

This directory contains tests to replicate old issues that came up, but since they generally require network access to install packages they can't reliably be used for an automated test suite.

el-get manual tests

Tries to cover some known issues, example that will allow building a regression test suite some day.

Typical run (in bash):

mkdir -p /tmp/test/.emacs.d/el-get/
rm -rf /tmp/test/.emacs.d/el-get/*
HOME=/tmp/test /usr/bin/emacs-snapshot-gtk -Q -batch -L . -l el-get \
    -l test/el-get-issue-303.el

At the moment you need to run the el-get-issue scripts with some known working el-get version to know what to expect, and you probably need to have el-get installed at +~/dev/emacs/el-get/+ for this to work as-is.

Yet it might be useful.

el-get automated tests

Simple script-based automation

In the test directory, there is a simple bash script called +run-test.sh+ that attempts to automate the manual steps detailed above. The script creates a temporary home directory and runs emacs in batch mode, first loading el-get and then the specified test file. An invocation equivalent to the above would look like this (starting from the main el-get directory):

test/run-test.sh el-get-issue-303.el

or even just

test/run-test.sh 303

The script takes care of cleaning up the temporary directory after the test, so you can run tests one after the other without previous tests causing problems for later ones. The bahavior of the +run-test.sh+ script can be customized with a few environment variables:

  • TMPDIR and TEST_HOME, for controlling where the temporary home directory is created;
  • EL_GET_LIB_DIR, the directory where the el-get code resides;
  • EMACS, which can be used to override the copy of emacs found in your PATH, or to provide one if there is no emacs in your PATH or it is installed under a nonstandard name.

You can run multiple tests by simply providing multiple test files to run-test.sh:

test/run-test.sh 200 303 310

When running multiple tests, the script will wait 5 seconds between tests, since many tests involve downloading files from the same few servers (Github, emacswiki, marmalade, etc.), and it is impolite to download a large number of files in rapid succession just for testing. There is a script called +run-all-tests.sh+ that acts as a shortcut for running all the available tests.

Sometimes you may want to run a test in an interactive emacs session so that you can use Emacs' debugging facilities to investigate what went wrong. To do this, use run-test-interactive.sh instead of run-test.sh.

If simply want to test installation, updating, and removal of one or more recipes, you can use the test-recipe.sh script.