summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/run_tests.sh
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-tests: Shutdown local daemons if the tests exit abnormallyAmitay Isaacs2014-07-081-6/+24
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* ctdb/tests/scripts: Promote scripts/run_testsMartin Schwenke2013-12-051-6/+304
| | | | | | | The wrapper is not needed anymore. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb/tests/scripts: Simplify the top-level test scriptsMartin Schwenke2013-12-051-36/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | At the moment run_tests.sh has quite fragile argument processing. It needs that annoying "--" between options and tests. The random default (mktemp -d) for TEST_VAR_DIR is wrong and is worked around in various places. Instead: * Change the default behaviour to print a summary, add new option -N to turn off summary, and remove old -s option. * Change the default behaviour to run integration tests with local daemons, add new options -c to run on a cluster, remove old -l option. * Make $testdir/var the default if the tests are not installed, and $(mktemp -d ) the default if tests are installed. * Move the default tests for local/cluster into scripts/run_tests. run_tests.sh (and the run_cluster_tests.sh symlink) should behave as before but with slightly more reasonable defaults. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: When running local tests with run_tests.sh, use fixed TEST_VAR_DIRMartin Schwenke2013-10-221-0/+6
| | | | | | | | Otherwise we end up with lots of useless temporary directories. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 63924ff372b066cd878b79e71f06de4c24c814a2)
* run_tests.sh: fix a commentMichael Adam2012-07-031-1/+1
| | | | (This used to be ctdb commit 0e515115b3c21cb179fd7a6356164ac1b5d423e0)
* tests: Fix wrapper scripts to handle options and tests without breakageMartin Schwenke2012-05-141-11/+19
| | | | | | | | | | | | | | | | | | | | | If the -V option is given and no tests are supplied, the "cd" command in run_tests.sh cause scripts/run_tests to interpret the argument to -V incorrectly. Therefore, the wrapper scripts can't use "cd" because they don't know what the options are doing! Instead scripts/run_tests searches for each test relative to the current directory and, if not previously found, then searches relative to the top-level tests directory. This is a much better way of doing things. Given that run_tests.sh and run_cluster_tests.sh were starting to contain duplicate complex logic, remove run_cluster_tests.sh and replace it with a symlink to run_tests.sh. Run_tests.sh checks $0 to see what options/defaults to use. Update INSTALL to deal with this. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ed2db1f4e8d2b222d7f912a4a007ce48a23e83b0)
* tests: Allow run_tests.sh to take optionsMartin Schwenke2012-05-111-2/+16
| | | | | | | | However, options must be followed by "--". Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit db8cf8f5e644a0b21a6040287887fee40f38d4db)
* tests: Update top-level wrapper scriptsMartin Schwenke2012-04-271-1/+13
| | | | | | | | | * Add the unit tests to "make test" * Make scripts run from anywhere Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 95947123eee687ed83eebc567397a5bc9d55a945)
* tests: Fix wrapper scriptsAmitay Isaacs2012-04-271-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit eef162ceaac6853bf1ff622691901289280bc25f)
* Tests - let run_tests.sh take a list of tests to runMartin Schwenke2012-02-061-1/+1
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fa00bbf7d7378eecb5ba77684d01db90c9370bca)
* For now, make tests/run_tests.sh runs the new test suite. AddMartin Schwenke2009-01-121-5/+1
| | | | | | | | tests/TODO. Remove tests/start_daemons.sh - no longer used. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 5cdbef46b74e6a5ba2383ef025e69fe605fa4f6e)
* cleanup on SIGINTAndrew Tridgell2008-07-301-0/+2
| | | | (This used to be ctdb commit 008533d971aec9c28c6e4750ef4677dd943633ff)
* first step towards fixing "make test" with the new daemon systemAndrew Tridgell2007-06-021-1/+0
| | | | (This used to be ctdb commit f95f7e4c93dea482e6cf0614b5415229a7c9f3fb)
* added attach command in ctdb_controlAndrew Tridgell2007-04-301-1/+1
| | | | (This used to be ctdb commit 172ee33306be2ef5ce17a5b9d7fbcc1f265a1b0b)
* saner logfile codeAndrew Tridgell2007-04-291-0/+1
| | | | | | testing of ctdbd (This used to be ctdb commit 05789da5818f8b20f04779b0df5125914d9047f6)
* much simpler redirect logicAndrew Tridgell2007-04-281-2/+2
| | | | (This used to be ctdb commit 95db9afa7dd039e1700e2f3078782f6ac66e9f51)
* added make test and make valgrindtest targetsAndrew Tridgell2007-04-281-0/+8
(This used to be ctdb commit b69fb43643993ee5aaabf8711bb874f95d468f35)