aboutsummaryrefslogtreecommitdiff
path: root/cmake/RunUnittests.cmake
Commit message (Collapse)AuthorAge
* test: Replace vroom by lua/busted for functional testsThiago de Arruda2014-09-30
| | | | | | | | | | | | | | | | | | | | | The 'lupa' python package provides a simple way to seamless integrate lua and python code. This commit replaces vroom by a python script that exposes the 'neovim' package to a lua state, and invokes busted to run functional tests. This is a temporary solution that will enable writing functional tests using lua/bused while a lua client library is not available. The reason for dropping vroom is flexibility: Lua/busted has a nice DSL-style syntax while also providing the customization power of a full programming language. Another reason is to use a single framework for unit/functional tests. Two other changes were performed in this commit: - Instead of "gcc-unittest/gcc-ia32", the travis builds for gcc are now identified by "gcc/gcc-32". They will run unit/functional tests for both 64 and 32 bits. - Old integration tests(in src/nvim/testdir) are now ran by the 'oldtest' target
* Update busted to 2.0.rc3.Florian Walch2014-09-11
| | | | | Default to verbose output to show more information in case of errors. Fix #1031.
* Use default busted pattern for unittests #943Pavel Platto2014-07-14
| | | | | | - Unittest should contain substring '_spec' in filename. - This is the simplest way to use both lua and moonscript tests. - This prevents running of non-test scripts from test folder.
* Generate a lua module to help pass build-related settings.John Szakmeister2014-05-03
| | | | | | | This allows us to avoid hard-coding paths and using environment variables to communicate key information to unit tests, which fits with the overall goal of making sure that folks driving CMake directly can continue to do out-of-tree builds.
* Allow a single unittest file to be run.John Szakmeister2014-04-23
| | | | | | | | | | With this, you can now run a single unit test file using: TEST_FILE=/path/to/file make unittest For example, to just run the path unit tests, you can do: TEST_FILE=test/unit/path.moon make unittest
* Fix unit testsThiago de Arruda2014-04-14
| | | | | | Apparently busted 1.11.0 is broken(https://github.com/Olivine-Labs/busted/issues/236) in a way that is causing the unit tests to fail. This pins the version to 1.10.0 and also fixes a wrong variable set when msgpack was added as a dependency
* Fail RunUnittests if we get a non-zero exit code from busted.John Szakmeister2014-03-25
|
* Revamp the build system.John Szakmeister2014-03-21
This achieves several goals: * Less reliance on scripts so we have better portability to Windows (though we still have a ways to go for proper Windows support). Luajit, luarocks, moonscript, and busted are all installed via CMake now. * Trying to make use of pkg-config to get the correct libraries. The latest libuv is still broken in this regard, but we'll at least be in a position to use it. * Allow the use of Ninja or make. The former runs faster in many environments, and automatically makes use of parallel builds. This also allows for system installed dependencies--though not through the Makefile just yet--and adds support for FreeBSD. This also make us build libuv and luajit as static libraries only, since we're only concerned about having static libraries for our bundled dependencies.