Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiddha committed Nov 9, 2024
1 parent 65d24d8 commit 33951c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
35 changes: 0 additions & 35 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
# $<TARGET_FILE:addon>
# ${PROJECT_SOURCE_DIR}/node/@fstrace/${ARCH}/${PROJECT_NAME}.${ARCH}.node
# )
# add_custom_command(
# TARGET addon POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy
# $<TARGET_FILE:fstrace>
# ${PROJECT_SOURCE_DIR}/node/@fstrace/${ARCH}/${PROJECT_NAME}.${ARCH}
# )
2 changes: 1 addition & 1 deletion tests/exit-code-passthrough.sh
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down

0 comments on commit 33951c7

Please sign in to comment.