diff --git a/CMakeLists.txt b/CMakeLists.txt index 945c951..983a712 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,38 +40,3 @@ add_custom_command( include(CTest) add_test(NAME exit-code-passthrough COMMAND ${PROJECT_SOURCE_DIR}/tests/exit-code-passthrough.sh) add_test(NAME signal-passthrough COMMAND ${PROJECT_SOURCE_DIR}/tests/signal-passthrough.sh) - -# # Install -# install(TARGETS fstrace DESTINATION bin) - -# # Tests -# include(CTest) - -# add_executable(test_fstrace tests/test_fstrace.cc) -# add_test(NAME TestFsTrace COMMAND test_fstrace) -# target_include_directories(test_fstrace PUBLIC "${PROJECT_SOURCE_DIR}") - -# # Build addon -# execute_process( -# COMMAND node -p "require('path').resolve(process.execPath, '../../include/node')" -# OUTPUT_VARIABLE NODE_INC -# OUTPUT_STRIP_TRAILING_WHITESPACE -# ) - -# include_directories(${NODE_INC}) -# add_library(addon SHARED src/fstrace_addon.cc) -# set_target_properties(addon PROPERTIES PREFIX "" SUFFIX ".${ARCH}.node") - -# # Copy addon files to node package -# add_custom_command( -# TARGET addon POST_BUILD -# COMMAND ${CMAKE_COMMAND} -E copy -# $ -# ${PROJECT_SOURCE_DIR}/node/@fstrace/${ARCH}/${PROJECT_NAME}.${ARCH}.node -# ) -# add_custom_command( -# TARGET addon POST_BUILD -# COMMAND ${CMAKE_COMMAND} -E copy -# $ -# ${PROJECT_SOURCE_DIR}/node/@fstrace/${ARCH}/${PROJECT_NAME}.${ARCH} -# ) diff --git a/tests/exit-code-passthrough.sh b/tests/exit-code-passthrough.sh index 1a33061..e988453 100755 --- a/tests/exit-code-passthrough.sh +++ b/tests/exit-code-passthrough.sh @@ -1,6 +1,6 @@ #!/bin/bash -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) FSTRACE="$SCRIPT_DIR/../build/fstrace" function test_exit_code_passthrough() {