-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It keeps all necessary functionality working: * The module from the repository (strictly speaking, from the build directory) is preferred over one installed into a system or to .rocks. * The test does not spoil the working directory with *.snap and *.xlog files. * `make test` works as for in-source as well as for out-of-source build. See details in PR #14. @Totktonada: Added comments, rewrote the commit message, adjusted .gitignore. The idea and actual changes are from @rosik.
- Loading branch information
1 parent
45bd8db
commit 7dc758d
Showing
4 changed files
with
29 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,3 @@ extra/txt2c | |
|
||
# Vim Swap files | ||
.*.sw[a-z] | ||
|
||
# Default test working directory | ||
test/var/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
add_test( | ||
NAME tuple_keydef.test.lua | ||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/runtest.sh tuple_keydef.test.lua) | ||
|
||
# Add LUA_CPATH that points to the location, where the built | ||
# module (tuple/keydef.{so,dylib}) is placed. It is different | ||
# from the source directory, when out-of-source build is used | ||
# (`cmake /path/to/sources`, not just `cmake .`). | ||
# | ||
# Double semicolons (';;') are replaced with default paths. | ||
set(TEST_ENV | ||
"LUA_CPATH=${CMAKE_CURRENT_BINARY_DIR}/../?${CMAKE_SHARED_LIBRARY_SUFFIX}\\\;\\\;") | ||
set_tests_properties(tuple_keydef.test.lua PROPERTIES ENVIRONMENT ${TEST_ENV}) | ||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tuple_keydef.test.lua | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters