summaryrefslogtreecommitdiffstats
path: root/qa/run-standalone.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* src,qa: install python bindings into lib/cython_modules/lib.3Kefu Chai2019-12-191-10/+2
| | | | | | instead of checking for the WITH_PYTHON* options, just hardwire to lib.3 Signed-off-by: Kefu Chai <kchai@redhat.com>
* test: run-standalone.sh: Only run execs in the subdirectories of qa/standaloneDavid Zafman2019-12-061-5/+1
| | | | | | | | | This will ignore scripts placed at the qa/standalone level, though I'm not sure if we should be putting any tests there. It does allow support scripts present like ceph-helper.sh without modifying run-standalone.sh to ignore it. Signed-off-by: David Zafman <dzafman@redhat.com>
* qa/run-standalone.sh: fix python pathSage Weil2019-08-191-1/+2
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* qa/run-standalone.sh: s/Makefile/CMakeCache.txt/Kefu Chai2019-05-301-1/+1
| | | | | | as we could use a generator other than Make, for instance ninja. Signed-off-by: Kefu Chai <kchai@redhat.com>
* test: Output elapse time for each script for informationDavid Zafman2019-04-101-1/+1
| | | | Signed-off-by: David Zafman <dzafman@redhat.com>
* run-standalone.sh: Need double-quotes to handle | in core_patternDavid Zafman2019-02-151-2/+2
| | | | | | | | | | | on all distributions OpenSUSE does not automatically add the | back when setting the corepattern. I tested this on openSUSE Leap 15.0. Fixes: http://tracker.ceph.com/issues/38325 Signed-off-by: David Zafman <dzafman@redhat.com>
* Revert "qa/standalone: discard pipe in sysctl kernel.core_pattern"David Zafman2019-02-151-5/+0
| | | | | | | | | This reverts commit 5ba6286834386e5af7ac43440e8c3fb0f234646c. Signed-off-by: David Zafman <dzafman@redhat.com> Conflicts: qa/run-standalone.sh (reseting core_pattern moved to function)
* test: run-standalone.sh set local library location so mgr can find librados.soDavid Zafman2019-02-121-0/+2
| | | | | | | | | This caused qa/standalone/misc/test-ceph-helpers.sh to fail "MGR_MODULE_DEPENDENCY 8 mgr modules have failed dependencies" Fixes: http://tracker.ceph.com/issues/38262 Signed-off-by: David Zafman <dzafman@redhat.com>
* test: Allow directory specified to run-standalone.shDavid Zafman2018-09-101-2/+2
| | | | | | | | | | Fixes: http://tracker.ceph.com/issues/35912 Example: cd build ../qa/run-standalone.sh scrub Signed-off-by: David Zafman <dzafman@redhat.com>
* qa/standalone/ceph-helpers.sh: fix mgr module pathNoah Watkins2018-08-181-3/+1
| | | | | | | | | | callers of get_python_path were not passing in a $1 parameter, so ceph_lib was an empty string resulting in an invalid path to the built cython modules. assume this is called from the `lib` parent directory. pass path to the manager modules when starting ceph-mgr. Signed-off-by: Noah Watkins <nwatkins@redhat.com>
* Merge PR #22343 into masterSage Weil2018-06-191-6/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/pull/22343/head: qa/standalone remove ceph-disk from activate_osd helper cmake: remove subman.sh tests test remove ceph-disk directory debian: remove ceph_detect_init python files from base qa/standalone remove virtualenv paths for ceph-disk and ceph-detect-init debian: remove ceph-disk ceph-detect-init python files rpm: remove ceph-disk ceph-detect-init python files alpine: remove ceph-disk ceph-detect-init python files alpine: remove ceph-osd and parttypeuuid udev rules debian: remove ceph-osd and parttypeuuid udev rules rpm: remove ceph-osd and parttypeuuid udev rules ceph-helpers.sh: remove ceph-disk, set up osds directly CMakeLists.txt: add back CEPH_BUILD_VIRTUALENV alpine: remove ceph-disk, add ceph-volume in APKBUILD.in upstart: remove ceph-disk activation call doc/install add anchor for manual osd deployment in freebsd guide doc/dev remove ceph-disk from freebsd guide, link to manual reference doc/dev/config-key remove ceph-disk references doc/dev remove ceph-disk.rst doc/dev: change ceph-disk suite examples for ceph-deploy doc/man_index: remove ceph-disk, ceph-detect-init refs doc/install: remove ceph-disk from freebsd examples doc/rados remove ceph-disk from man references doc/man remove ceph-disk ref from ceph-volume-systemd doc/man: update reference from ceph-disk to ceph-volume doc/man: remove ceph-disk, ceph-detect-init from cmake doc/man/ceph-volume remove doc reference to ceph-disk doc/man: remove ceph-disk, ceph-detect-init qa/suites: remove ceph-disk qa/run-standalone.sh: remove requirement for ceph-detect-init virtualenv qa/workunits: remove ceph-detect-init from rbdmapfile test qa/workunits: remove ceph-detect-init from ceph-helpers-root.sh qa/workunits: remove ceph-disk build: remove ceph-disk from freebsd script cmake: remove ceph-disk, ceph-detect-init tox tests init-ceph: remove ceph-disk cmake: remove top-level entries for ceph-disk, ceph-detect-init debian: remove ceph-detect-init references debian: remove ceph-disk references src: remove ceph-detect-init tool rpm: remove ceph-disk, ceph-detect-init from spec file test: remove subman script script: remove subman script udev: remove parttypeuuid rules for ceph-disk tool remove ceph-disk from ps-ceph.pl upstart: remove ceph-disk conf file systemd: remove ceph-disk from CMakeLists systemd: remove ceph-disk service udev: remove ceph-disk rules src: remove ceph-disk tool
| * qa/run-standalone.sh: remove requirement for ceph-detect-init virtualenvAlfredo Deza2018-06-131-6/+0
| | | | | | | | Signed-off-by: Alfredo Deza <adeza@redhat.com>
* | test: run-standalone move aside cores found before testing startsDavid Zafman2018-06-181-0/+9
|/ | | | Signed-off-by: David Zafman <dzafman@redhat.com>
* qa/standalone: change PATH to allow finding sysctlJoao Eduardo Luis2018-04-061-0/+4
| | | | | | | If, by default, a user's PATH does not contain /sbin and /usr/sbin, we may have a hard time finding sysctl to adjust the kernel core pattern. Signed-off-by: Joao Eduardo Luis <joao@suse.de>
* qa/standalone: deduplicate cleanup codeJoao Eduardo Luis2018-04-061-4/+6
| | | | Signed-off-by: Joao Eduardo Luis <joao@suse.de>
* qa/standalone: discard pipe in sysctl kernel.core_patternJoao Eduardo Luis2018-04-061-1/+6
| | | | | | | | | | | | | | | | At least verified in openSUSE tumbleweed and ubuntu 16.04, `sysctl -n kernel.core_pattern` returns a pipe at the start of the value. We reset core_pattern to its original form once the script is about to end, but if we do not discard the pipe the new value will contain an extra pipe (apparently, the pipe is added automatically at some point, possibly simply on read). We are simply stripping it on read, as to prevent this behavior. Additionally, we are also enclosing the reset of kernel.core_pattern in quotes, so as to make sure patterns that include spaces (e.g., ubuntu's apport, or tumbleweed's systemd-coredump) are properly reset. Signed-off-by: Joao Eduardo Luis <joao@suse.de>
* qa/run-standalone.sh: set PYTHONPATH for FreeBSD alsoKefu Chai2018-02-281-5/+4
| | | | | | | do not set PYTHONPATH=/usr/lib/python2.7/dist-packages anymore, it will be overridden later on anyway. Signed-off-by: Kefu Chai <kchai@redhat.com>
* qa/run-standalone.sh: pass PYTHONPATH env var to testKefu Chai2018-02-261-0/+20
| | | | | | | otherwise ceph-mgr will refuse to start if the required python binding, a.k.a mgr_module is not available in default sys.path. Signed-off-by: Kefu Chai <kchai@redhat.com>
* qa: respect $TEMPDIRKefu Chai2017-09-151-1/+2
| | | | | | ceph-disk and ceph-detect-init are build in $TEMPDIR if it's defined. Signed-off-by: Kefu Chai <kchai@redhat.com>
* tests: run-standalone.sh skip core_pattern if already setDavid Zafman2017-08-181-2/+9
| | | | | | | If sudo requires a password it is nice to be able to avoid sudo sysctl by setting core_pattern ahead of time. Signed-off-by: David Zafman <dzafman@redhat.com>
* Merge pull request #17093 from dzafman/wip-runs-messageAlfredo Deza2017-08-181-1/+1
|\ | | | | | | | | tests: run-standalone.sh improve error message Reviewed-by: Alfredo Deza <adeza@redhat.com>
| * tests: run-standalone.sh improve error messageDavid Zafman2017-08-181-1/+1
| | | | | | | | Signed-off-by: David Zafman <dzafman@redhat.com>
* | tests: qa/standalone: Add trap for signals to resetore the kernel core patternDavid Zafman2017-08-151-0/+9
|/ | | | Signed-off-by: David Zafman <dzafman@redhat.com>
* qa: Add support for core dumpsDavid Zafman2017-08-101-0/+9
| | | | | | | Save core dumps when running tests locally Dump logs to output whenever cores seen Signed-off-by: David Zafman <dzafman@redhat.com>
* qa: Add support for specifying sub-tests with run-standalone.shDavid Zafman2017-08-101-4/+11
| | | | | | Fix test-ceph-helpers.sh to pass additional arguments on Signed-off-by: David Zafman <dzafman@redhat.com>
* qa: Skip ceph-helpers.sh which is tested through test-ceph-helpers.shDavid Zafman2017-08-101-0/+4
| | | | Signed-off-by: David Zafman <dzafman@redhat.com>
* qa: Add special test_failure.sh script (not run by default)David Zafman2017-08-041-0/+5
| | | | Signed-off-by: David Zafman <dzafman@redhat.com>
* qa: run-standalone.sh improvementsDavid Zafman2017-08-041-8/+65
| | | | Signed-off-by: David Zafman <dzafman@redhat.com>
* qa/run-standalone.sh: fix the find option to be compatible with GNU findKefu Chai2017-07-281-3/+6
| | | | | | also re-indent to be consistent with other part of this script Signed-off-by: Kefu Chai <kchai@redhat.com>
* qa: make run-standalone work on FreeBSDWillem Jan Withagen2017-07-261-1/+6
| | | | Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
* qa/run-standalone.sh: helper to run all standalone testsSage Weil2017-07-251-0/+17
Nothing fancy, but documents how these are run. Signed-off-by: Sage Weil <sage@redhat.com>