summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* tests: Add a -V option to set new variable TEST_VAR_DIRMartin Schwenke2012-04-271-12/+21
| | | | | | | | | | | | | | | | | | | Part of preparation to be able to install the tests. The current var/ subdirectories will end up somewhere in /usr/local/ or /usr/ and we don't want to put temporary files there. This creates a temporary TEST_VAR_DIR by default. If -V is specified then the given directory will be used as TEST_VAR_DIR. This allows the current behaviour where individual integration tests can be run against already-running daemons 9with sockets and other stuff already created) to save time and trouble. Yes, there are plans for a clean-up option... ;-) Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 8e4ec9a40bb7d392d7474b067a74fa121c069007)
* tests/integration: Remove cabability for testcase optionMartin Schwenke2012-04-271-48/+0
| | | | | | | | | | This is unused and can't be used with the current test infrastructure. It may have been useful with ctdb_test_env but I don't think it was ever used. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4aa879466dd46cb4e8710edbbaac1276521e475b)
* tests/integration: Use absolute path for socket symlinkMartin Schwenke2012-04-271-1/+1
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 709cd5dfeb630096a1cd2062da666fee9ddca715)
* tests/simple: Replace "tdbdump" with "ctdb cattdb"Martin Schwenke2012-04-271-15/+15
| | | | | | | | tdbdump may not be installed and would be an unnecessary dependency. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fbabc05569d91bf033f474d89f51b49490943332)
* tests: Make run_tests -X more flexible - it now works with onnodeMartin Schwenke2012-04-274-12/+19
| | | | | | | | | Hardcoding "sh -x" is suboptimal because some scripts, like onnode, require bash. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 246809af64c03d26288abff5907ed46614e72b15)
* tests: Update README files and add new README files where missingMartin Schwenke2012-04-277-100/+113
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit bef03b32f8ec114a64c55b25951aeeb939d87b33)
* tests: Update top-level wrapper scriptsMartin Schwenke2012-04-272-4/+24
| | | | | | | | | * 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: run_tests should exit with failed test status if running with -HMartin Schwenke2012-04-271-1/+5
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6eb7fa572e7fc212332ddd68793e3f35161baf7c)
* tests: test_wrap can use $TEST_SCRIPTS_DIR for a little extra clarityMartin Schwenke2012-04-271-1/+4
| | | | | | | | Also add a comment to explain what is being added to $PATH. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 704a3e3b83aff63e8f7b0650c141776ed2c1f047)
* tests: test_wrap needs to set TEST_SCRIPTS_DIRAmitay Isaacs2012-04-271-0/+2
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 79e979d67e3a2a5a13ef8fd2ef8f56331ec51558)
* tests: CTDB_TEST_WRAPPER has to be an absolute path on a real clusterAmitay Isaacs2012-04-271-1/+2
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a0a7759d47ef5de4a8214273e39c50fb1f6e2e0c)
* tests: Fix wrapper scriptsAmitay Isaacs2012-04-272-4/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit eef162ceaac6853bf1ff622691901289280bc25f)
* tests: Fix trailing whitespace issues in integration.bashMartin Schwenke2012-04-271-9/+9
| | | | | | | | git complains... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d714cf7924674a7a0eb6d585eb74a6a4df26fc12)
* tests: Add new -H option for run_tests to avoid printing header/footerMartin Schwenke2012-04-271-3/+6
| | | | | | | | | This is useful for using run_tests to run one test at a time within an alternative test framework. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit dc71294a33e88baa4e85fa1fa66cab58a83c2607)
* tests: Add -e option to cause run_tests to exit on first test failureMartin Schwenke2012-04-271-1/+10
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f45295a3005474957852d0e7a5c3807e30ab519d)
* tests: Remove ctdb_test_envMartin Schwenke2012-04-273-33/+20
| | | | | | | | Move the contents to integration.bash and run_tests as appropriate. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6136ab02db261b26a2a58b526c913e37e8146841)
* tests: Programs run by tests should be found in $PATHMartin Schwenke2012-04-275-9/+10
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit b5308142d03332d6d4e0c3b77283c772462fbb23)
* tests: Move relative directory path hack from run_tests to common.shMartin Schwenke2012-04-272-5/+5
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 66a7fece867966528689d2784a284e32d687a0f5)
* tests: Local daemons are no longer the default, now require run_tests -lMartin Schwenke2012-04-276-37/+40
| | | | | | | | | | | | | | | | | | Testing with local daemons is the current default but this is not the most common use case. Therefore, we make local daemons optional by using the -l switch with run_tests or by setting TEST_LOCAL_DAEMONS to the number of daemons to be used (-l sets this to 3). TEST_LOCAL_DAEMONS replaces CTDB_TEST_NUM_DAEMONS and CTDB_TEST_REAL_CLUSTER is removed. Most relevant logic is moved from ctdb_test_env to integration.bash. ctdb_test_check_real_cluster() is moved from integration.bash to complex/scripts/local.bash. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 72ecae61c43b318ec94b527a12cbb0a382e8c3db)
* Eventscripts - Fix typo in 13.per_ip_routing support for __auto_link_local__Martin Schwenke2012-04-271-1/+1
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 9542e770a9780740b49122f1f52f08b32eca4b35)
* tests: Rationalise integration test infrastructureMartin Schwenke2012-04-274-137/+144
| | | | | | | | | | | | | * run_tests no longer includes common.sh, which is only to be included by test cases. Therefore, it defines its own die() function. * TEST_SUBDIR is now set in common.sh * Move complex-only functions to complex/scripts/local.bash Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit bfa1d6638d3e116640eb4e3bb71b21ba6ef8cae5)
* tests: Rename ctdb_test_functions.bash to integration.bashMartin Schwenke2012-04-2748-48/+48
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 79adb50b3ce3873c3baf9e6715c1d1c3f181ce43)
* Merge remote branch 'amitay/tdb-sync'Ronnie Sahlberg2012-04-2644-4858/+1547
|\ | | | | | | (This used to be ctdb commit 8052ee0a6bda3fa88501d77b2d53315be2b75ec1)
| * lib/tdb: Sync tdb from samba git treeAmitay Isaacs2012-04-1324-423/+1547
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0f40ea2386892ae10b30beeded0e00edf4c019c3)
| * lib/tdb: Remove the files required to build tdb as a libraryAmitay Isaacs2012-04-1320-4435/+0
| | | | | | | | | | | | | | | | | | Since tdb library will never be built from ctdb sources, we don't need the build related files. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a7aace3d165e6cb7d63950107e584edaee12a357)
* | Merge remote branch 'amitay/tevent-sync'Ronnie Sahlberg2012-04-26100-4751/+884
|\ \ | | | | | | | | | (This used to be ctdb commit 17ff3f240b0d72c72ed28d70fb9aeb3b20c80670)
| * | lib/tevent: Sync tevent from samba git treeAmitay Isaacs2012-04-1318-76/+885
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 483459c79884891b3639a8bb865d5e8318cde98c)
| * | lib/tevent: Remove the files required to build tevent as a libraryAmitay Isaacs2012-04-1323-4527/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since we are not going to build tevent library from ctdb source, remote build related files. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit efbb7e0b9dcde547b46efd8e3b26c571e4fcf893)
| * | lib/tevent: Remove local modifications to teventAmitay Isaacs2012-04-135-69/+0
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit d1bc4a97ea649f5a07802178591688e438313ff8)
| * | ctdb_test: Remove faked wrappers for tevent functions in stub testingAmitay Isaacs2012-04-132-17/+0
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 74539cc619b17ea187e34b5866869212896b0c1a)
| * | Remove explicit include of lib/tevent/tevent.h.Amitay Isaacs2012-04-1358-59/+0
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0681014ca5ed2a9b56f63fdace7f894beccf8a9a)
| * | includes: Move special tevent defines from tevent.h to includes.hAmitay Isaacs2012-04-132-11/+7
| |/ | | | | | | | | | | | | | | | | This allows to build against system tevent library. Also include tevent header along with other common headers. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 9ae4389c2c959c5dcd8395fdae2b25ed7e1e873a)
* | Merge remote branch 'amitay/talloc-sync'Ronnie Sahlberg2012-04-2619-5204/+813
|\ \ | | | | | | | | | (This used to be ctdb commit fdd5b9ac0a79f6bc7c8a05da2e2f11e002392bcd)
| * | lib/talloc: Sync talloc from samba git treeAmitay Isaacs2012-04-138-182/+813
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 670ebada4bafe79bd535c9bb5cc2d5d49d646af3)
| * | lib/talloc: Remove the files required to build talloc as a libraryAmitay Isaacs2012-04-1311-5022/+0
| |/ | | | | | | | | | | | | Since talloc library will never be built from ctdb sources, we don't need the build related files. (This used to be ctdb commit 2cd6a7ce648c1d2cc4d5580c3809858c100fa930)
* | Merge remote branch 'martins/master'Ronnie Sahlberg2012-04-18147-751/+722
|\ \ | | | | | | | | | (This used to be ctdb commit abe7ebe6c531f912efe4ebc1daade4d2af67574c)
| * | tests: More unit test factoring/rationalisation and bug fixesMartin Schwenke2012-04-188-266/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move some options from eventscripts/run_tests.sh to scripts/run_tests. Remove the former. Move some functions from eventscripts/scripts/local.sh to scripts/unit.sh. Both of these are modified during move so they are no longer eventscript-specific. Tweak */local.sh so that the new functions in unit.sh are used. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7ff485687891732074c9fc9998502ca197663d02)
| * | tests/eventscripts: Share directories must be absolute in eventscript testsMartin Schwenke2012-04-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes eventscripts/scripts/local.sh:setup_generic() so that directories listed in $FAKE_SHARES are absolute instead of potentially relative (and, therefore, ignored by the NFS share check). Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 8544162b7a4efa23c92bc0d2774df95bb7f0f463)
| * | tests/eventscripts: Tweak an error message in a policy routing testMartin Schwenke2012-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | It currently has my home directory pasted into it. That can't be right... ;-) Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 5d6e71cf6e1e0665ec96e7e4e2cfd31f40ebabae)
| * | tests - run_tests needs to expand directories like "." and "..".Martin Schwenke2012-04-161-0/+4
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fd08fc6c88cb80190ce87325867de0391cf1af51)
| * | tests/eventscripts - Restructure according to new conventionMartin Schwenke2012-04-1677-110/+86
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
| * | tests - run_tests ignores trailing '/' on directoriesMartin Schwenke2012-04-161-1/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit dbec696930327ff07b39282e3084eef4ded064c0)
| * | tests/takeover - Restructure according to new conventionMartin Schwenke2012-04-1631-62/+43
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f94897ef9504c144937409688fa7a646e0b0ceae)
| * | tests/onnode - Restructure according to new conventionMartin Schwenke2012-04-1616-66/+20
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4c87888b2a559c0d1f285919a42de450a537a02f)
| * | tests/tool - Restructure according to new conventionMartin Schwenke2012-04-1612-57/+13
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 89571585d87b391ff79647cd1f0f6ac193079e72)
| * | tests/tool: New nodestatus testAmitay Isaacs2012-04-161-0/+34
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit ca9e75eaea9c9b02bb44ca338e28fdae0c8d582c)
| * | tests/tool: Fix the nodestatus testAmitay Isaacs2012-04-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Although not obvious, when asking each node for nodestatus, it will report each node is the current node. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a65ba7211ec7f102b32060b173606a61fb5c20a9)
| * | tests - run_tests includes common.sh, uses die()Martin Schwenke2012-04-161-3/+3
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 21df43c74bfcff420fdaf9df5440c25529c543d2)
| * | tests - run_tests can take a directory as an argumentMartin Schwenke2012-04-161-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | This makes it run all tests in the specified directory. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 89719384a74161ffa0c03602ecdd9e758d521d75)
| * | tests - add -v option to set TEST_VERBOSE=trueMartin Schwenke2012-04-161-1/+4
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 43badc5418b9f533398cd579607d9f1fc0f8f417)