-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
32 additions
and
60 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
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,4 +1,13 @@ | ||
add_custom_target(check | ||
COMMAND true # env PORCHBIN="${CMAKE_BINARY_DIR}/src/porch" PORCHLUA_PATH="${CMAKE_SOURCE_DIR}/lib" sh "${CMAKE_CURRENT_SOURCE_DIR}/basic_test.sh" | ||
COMMAND env PORCHLIB_PATH="${CMAKE_BINARY_DIR}/lib" PORCHLUA_PATH="${CMAKE_SOURCE_DIR}/lib" sh "${CMAKE_CURRENT_SOURCE_DIR}/lua_test.sh" | ||
add_custom_target(check-install | ||
COMMAND "${CMAKE_COMMAND}" --build . --target install) | ||
|
||
add_custom_target(check-cli | ||
COMMAND env PORCHBIN="${CMAKE_BINARY_DIR}/src/porch" PORCHLUA_PATH="${CMAKE_SOURCE_DIR}/lib" sh "${CMAKE_CURRENT_SOURCE_DIR}/basic_test.sh" | ||
DEPENDS porch) | ||
|
||
add_custom_target(check-lib | ||
COMMAND env PORCHLIB_PATH="${CMAKE_BINARY_DIR}/lib" PORCHLUA_PATH="${CMAKE_SOURCE_DIR}/lib" LUA_VERSION_MAJOR="${LUA_VERSION_MAJOR}" LUA_VERSION_MINOR="${LUA_VERSION_MINOR}" sh "${CMAKE_CURRENT_SOURCE_DIR}/lua_test.sh" | ||
DEPENDS libs check-install | ||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") | ||
|
||
add_custom_target(check DEPENDS check-cli check-lib) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
#!/bin/sh | ||
|
||
schemes="lua${LUA_VERSION_MAJOR}${LUA_VERSION_MINOR}" | ||
schemes="$schemes lua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}" | ||
|
||
for bin in $schemes; do | ||
if command -v $bin >/dev/null; then | ||
LUA="$bin" | ||
break | ||
fi | ||
done | ||
|
||
if [ -z "$LUA" ]; then | ||
1>&2 "Could not find suitable binary named any of: $schemes" | ||
exit 1 | ||
fi | ||
|
||
for x in test_*.lua; do #XXX WRONG | ||
lua54 "$x" #XXX WRONG | ||
command $LUA "$x" | ||
done |
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,5 +1,3 @@ | ||
local ltest = require('./libtest') | ||
|
||
local porch = require('porch') | ||
|
||
|
||
print(porch) |