summaryrefslogtreecommitdiffstats
path: root/run-make-check.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* run-make-check: drop CMAKE_PYTHON_OPTS variableKefu Chai2018-08-021-5/+4
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* cmake,run-make-check: always enable WITH_GTEST_PARALLELKefu Chai2018-08-021-8/+3
| | | | | | | now that https://github.com/google/gtest-parallel/pull/63 has been merged, we can now use gtest-parallel with py2 and also py3. Signed-off-by: Kefu Chai <kchai@redhat.com>
* run-make-check: set WITH_SEASTAR with a non-empty stringKefu Chai2018-07-181-2/+2
| | | | | | | otherwise "test -n $WITH_SEASTAR" fails, and the dependencies won't be installed. Signed-off-by: Kefu Chai <kchai@redhat.com>
* run-make-check.sh: enable WITH_SEASTARKefu Chai2018-07-121-2/+3
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* run-make-check.sh: fill in missing DRY_RUN and add doc hintNathan Cutler2018-07-091-7/+13
| | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* run-make-check.sh: reset trap after sourcing install-deps.shNathan Cutler2018-07-091-0/+1
| | | | | | | Since we source install-deps.sh, it replaces our trap with its own, so we have to reinstate our trap after it finishes. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* cleanup: run-make-check.sh: no space between -D and name of cmake optionNathan Cutler2018-07-091-1/+1
| | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* run-make-check.sh: gtest-parallel only with Python 2Nathan Cutler2018-07-091-4/+6
| | | | | Fixes: http://tracker.ceph.com/issues/24817 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* run-make-check.sh: inform user of make -j settingNathan Cutler2018-07-091-0/+1
| | | | | | This can help the user figure out why the build is so slow. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* doc: cleanup: wordsmith a comment in run-make-check.shNathan Cutler2018-07-091-1/+1
| | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* run-make-check.sh: ccache goodness for everyoneNathan Cutler2018-07-091-28/+49
| | | | | | | | | | | | | | | | | | Since run-make-check.sh already ensures that ccache is installed, it makes sense to let everyone benefit from the ccache tweaks introduced by 4cb5a590537a9caaf61db42ce8ea123d2ab961f3 Note 1: The previous solution using "date" would cause build tools to reset their timestamps after 24 hours, on subsequent runs of run-make-check.sh. In order to maximize ccache effectiveness, this commit sets SOURCE_DATE_EPOCH to a fixed value: the number of seconds elapsed since the Unix epoch as at January 1, 2000 (chosen to commemorate Y2K armageddon). Note 2: this commit introduces "set -e". This was actually in effect before, via "source install-deps.sh". Better to make it explicit. Fixes: http://tracker.ceph.com/issues/24777 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* run-make-check.sh: drop workaround for undeclared jq build dependencyNathan Cutler2018-07-091-1/+1
| | | | | | jq build dependency is properly declared now. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* run-make-check.sh: Adding ccache tuning for the CIErwan Velu2018-07-041-1/+22
| | | | | | | | | | | | | | | When run-make-check is run by the CI, some tuning can be performed to speedup the build. This commit : - Detect jenkins by searching JENKINS_HOME env variable - Defines the SOURCE_DATE_EPOCH to enforce a stable date across builds - Ask cmake not to use the git versioning which adds useless entropy for a temporary build (ENABLE_GIT_VERSION=OFF) - Define the ccache slopiness to increase efficiency - Increase the ccache size to save multiple builds to maximise cache hit between PRs - Print ccache statistics to evaluate ccache efficiency Signed-off-by: Erwan Velu <erwan@redhat.com>
* run-make-check: enable WITH_GTEST_PARALLELKefu Chai2018-06-151-1/+1
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* build/ops: run-make-check.sh: handle Python 2 absenceNathan Cutler2018-04-231-1/+6
| | | | | | | Building Ceph without Python 2 requires passing certain options to cmake. Fixes: http://tracker.ceph.com/issues/23035 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* test: delete asok directories correctlyChang Liu2018-03-231-1/+1
| | | | Signed-off-by: Chang Liu <liuchang0812@gmail.com>
* Merge pull request #20535 from ifed01/wip-ifed-bring-fioKefu Chai2018-03-061-1/+1
|\ | | | | | | | | | | test/fio: enable objectstore FIO plugin building without the need to install and build FIO source code Reviewed-by: Casey Bodley <cbodley@redhat.com> Reviewed-by: Kefu Chai <kchai@redhat.com>
| * test/fio: enable objectstore FIO plugin building without the need to install ↵Igor Fedotov2018-03-051-1/+1
| | | | | | | | | | | | and build FIO source code Signed-off-by: Igor Fedotov <ifedotov@suse.com>
* | build/ops: run-make-check.sh: fix SUSE supportNathan Cutler2018-02-271-5/+6
|/ | | | | | | Get /usr/bin/which from the right RPM. Fixes: http://tracker.ceph.com/issues/22875 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* install-deps.sh: use DTS on centos if GCC is too oldKefu Chai2017-12-081-1/+1
| | | | | | | | please note, run-make-check.sh sources install-deps.sh here to import the $PATH and other environmental variables, which could be changed by the the DTS "enable" script. Signed-off-by: Kefu Chai <kchai@redhat.com>
* run-make-check.sh: run ulimit without sudoyang.wang2017-09-151-2/+7
| | | | | | | | | | | ulimit is a shell builtin like cd, not a separate program. sudo looks for a binary to run, but there is no ulimit binary, then you will get an error message like: "sudo: ulimit: command not found" ulimit can only be run with root if you want raise the ulimit -n Change-Id: I59ab09240cb15cabe5b0a7342c3f562cd50c75e9 Signed-off-by: yang.wang <yang.wang@easystack.cn>
* Merge pull request #16494 from asomers/bin_bashKefu Chai2017-08-271-1/+1
|\ | | | | | | | | | | misc: Fix bash path in shebangs Reviewed-by: Willem Jan Withagen <wjw@digiware.nl> Reviewed-by: Kefu Chai <kchai@redhat.com>
| * scripts: fix bash path in shebangsAlan Somers2017-07-271-1/+1
| | | | | | | | | | | | | | /bin/bash is a Linuxism. Other operating systems install bash to different paths. Use /usr/bin/env in shebangs to find bash. Signed-off-by: Alan Somers <asomers@gmail.com>
* | run-make-check.sh: set ulimit -n (because no one else does)Dan Mick2017-08-031-0/+2
|/ | | | Signed-off-by: Dan Mick <dan.mick@redhat.com>
* test: create asok files in a temp directory under $TMPDIRKefu Chai2017-07-211-1/+4
| | | | | | | | | | | to shorten the pathname of unix domain socket created for admin socket, so it does not exceed the limit of 107 on GNU/Linux: * ceph-helper.sh: the temp directory is named ${TMPDIR:-/tmp}/ceph-asok.$$ * vstart.sh: the temp directory is named `mktemp -u -d "${TMPDIR:-/tmp}/ceph-asok.XXXXXX"` Fixes: http://tracker.ceph.com/issues/16895 Signed-off-by: Kefu Chai <kchai@redhat.com>
* build/ops: make sure which is installed in run-make-check.shNathan Cutler2017-06-141-1/+4
| | | | | Fixes: http://tracker.ceph.com/issues/20127 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* Merge pull request #9853 from dx9/wip-alpine-dev-supportSage Weil2017-04-221-4/+6
|\ | | | | alpine: add alpine linux dev support
| * run-make-check.sh: Init defaults after deps are installed.John Coyle2016-12-211-4/+6
| | | | | | | | | | | | get_processors() depends on coreutils nproc. Alpine does not install coreutils by default. Signed-off-by: John Coyle <dx9err@gmail.com>
* | build/ops: add sanity checks to run-make-check.shNathan Cutler2016-12-271-0/+14
|/ | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* tests: check hostname --fqdn sanity before running make checkNathan Cutler2016-12-031-0/+8
| | | | | Fixes: http://tracker.ceph.com/issues/18134 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* run-make-check.sh: use cmake exclusivelySage Weil2016-10-031-35/+6
| | | | | | ..and drop the separate cmake script Signed-off-by: Sage Weil <sage@redhat.com>
* Merge pull request #11105 from badone/wip-dnf-enable-build-scriptsKefu Chai2016-09-191-2/+9
|\ | | | | | | | | build scripts: Enable dnf for Fedora >= 22 Reviewed-by: Kefu Chai <kchai@redhat.com>
| * build scripts: Enable dnf for Fedora >= 22Brad Hubbard2016-09-161-2/+9
| | | | | | | | | | | | | | The use of yum triggers a warning and reference to yum2dnf on Fedora >= 22. Use either yum or dnf based on the Fedora version. Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
* | Merge pull request #11092 from badone/wip-dry-run-run-make-checkSage Weil2016-09-151-1/+1
|\ \ | | | | | | run-make-check.sh: Make DRY_RUN actually do a dry run
| * | run-make-check.sh: Make DRY_RUN actually do a dry runBrad Hubbard2016-09-151-1/+1
| |/ | | | | | | | | | | | | The "cd build" command will cause an error during a dry run if the directory does not exist. Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
* / run-*make-check.sh: Make DRY_RUN actually mean a dry runBrad Hubbard2016-09-141-1/+1
|/ | | | | | | DRY_RUN does not currently do an actual dry run as it actually runs an install command. Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
* run-make-check.sh: pass args to do_cmake.shJohn Coyle2016-08-121-1/+1
| | | | Signed-off-by: John Coyle <dx9err@gmail.com>
* Revert "run-make-check.sh: run tests in two steps"Kefu Chai2016-07-191-2/+1
| | | | | | This reverts commit cd0dfc305d3861b9baf332a1cc13f1c716d8017b. Signed-off-by: Kefu Chai <kchai@redhat.com>
* run-make-check.sh: run tests in two stepsKefu Chai2016-07-161-1/+2
| | | | | | | | | | | | | | this is a workaround of the timeout found in jenkins. currently three tests are found timeout, and they are labeld with "Racing" and "LongRunning". so, to workaround this issue, we run the tests in two phases: 1. run the racing tests with -j1 2. run the non-racing tests with -jN if we all all tests with -j1, the total test time is 2683.57 sec Signed-off-by: Kefu Chai <kchai@redhat.com>
* cmake: add a "tests" target to build testsKefu Chai2016-07-161-2/+2
| | | | | | | | | | | | | | | please note "make test" is used by cmake to run tests, so we cannot just repurpose it to *build* them. * AddCephTest.cmake: depends on "tests" * CMakeLists.txt: let "check" depend on "tests" * src/CMakeLists.txt: update the run-tox tests * run-make-check.sh: use "make tests" and "ctest" instead of "make check" * ceph-detect-init/CMakeLists.txt: let "tests" depend on "ceph-detect-init" * ceph-disk/CMakeLists.txt: let "tests" depend on "ceph-disk" Signed-off-by: Kefu Chai <kchai@redhat.com>
* run-make-check.sh: use "make check" for running testsKefu Chai2016-07-071-2/+2
| | | | | | | | | | "make all" does not offer "ceph-disk" and "ceph-detect-init" for testing. as they are solely used for testing purpose. instead, these two python command line packages are installed by the "install" target. so we need to use "make check" to 1) prepare the test dependencies 2) launch ctest to perform the test. Signed-off-by: Kefu Chai <kchai@redhat.com>
* run-make-check.sh: run "make check" with a unique $TMPDIRKefu Chai2016-07-071-0/+2
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* run-make-check.sh: run make check with cmake if do_cmake.sh is availableSage Weil2016-07-061-6/+13
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* run-make-check.sh: modprobe won't work on containers; not neededDan Mick2016-06-291-1/+0
| | | | Signed-off-by: Dan Mick <dan.mick@redhat.com>
* tests: rm -fr /tmp/*virtualenv*Loic Dachary2016-05-201-0/+2
| | | | Signed-off-by: Loic Dachary <loic@dachary.org>
* tests: configure with rocksdb by defaultLoic Dachary2016-01-041-1/+1
| | | | | | | | Otherwise bluestore won't compile and run-make-check.sh will fail. http://tracker.ceph.com/issues/14220 Fixes: #14220 Signed-off-by: Loic Dachary <loic@dachary.org>
* make-check: support MAKEOPTS overrides.Robin H. Johnson2015-08-241-2/+10
| | | | | | | | It is useful in some cases to exercise more control over the parameters passed to make for make check. I am using it to passing a load limit parameter to make. Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
* tests: display the output of failed make check runsLoic Dachary2015-06-161-5/+0
| | | | | | | | | | | | | | | | After a make check fails, it shows a summary but not the output of the failed tests although they contain information to diagnose the problem. Set the VERBOSE=true automake variable which is documented to collect and display the failed script output at the end of a run (the content of the test-suite.log file (valid from automake-1.11 up). http://www.gnu.org/software/automake/manual/automake.html#index-VERBOSE Also remove the run-make-check.sh that did the same in a way that is not compatible with automake-1.11. Signed-off-by: Loic Dachary <ldachary@redhat.com>
* run-make-check.sh: stricter check for yum/apt-get/zypperTim Serong2015-04-301-1/+10
| | | | | | | | | Believe it or not, it's possible (although not necessarily likely) to have both yum and zypper installed on openSUSE. In this case the previous implementation using `which` would return a string containing both commands, which doesn't work. Signed-off-by: Tim Serong <tserong@suse.com>
* run-make-check.sh: use /sbin/modprobeTim Serong2015-04-301-1/+1
| | | | | | | Rationale: In some cases (e.g.: by default on openSUSE), `sudo` won't add /sbin to $PATH. Signed-off-by: Tim Serong <tserong@suse.com>