Skip to content

Commit

Permalink
attempt to fix app4 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Oct 21, 2021
1 parent 9abbf6f commit fa143c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Expand Up @@ -68,10 +68,11 @@ install:

script:
- npm test
- ls ./test/app4/lib/binding/node-v93-linux-x64 || true
- ls ./test/app4/lib/binding/node-v93-linux-x64/lib.target/ || true
- ldd ./test/app4/lib/binding/node-v93-linux-x64/app4.node || true
- ldd ./test/app4/lib/binding/node-v93-linux-x64/lib.target/mylib.so || true
- export MODULE_VER=$(node -e "console.log(process.versions.modules)")
- ls ./test/app4/lib/binding/node-v${MODULE_VER}-linux-x64 || true
- ls ./test/app4/lib/binding/node-v${MODULE_VER}-linux-x64/lib.target/ || true
- ldd ./test/app4/lib/binding/node-v${MODULE_VER}-linux-x64/app4.node || true
- ldd ./test/app4/lib/binding/node-v${MODULE_VER}-linux-x64/lib.target/mylib.so || true
- python -c "import ctypes;ctypes.CDLL('/home/travis/build/mapbox/node-pre-gyp/test/app4/lib/binding/node-v93-linux-x64/lib.target/mylib.dylib')" || true
- python -c "import ctypes;ctypes.CDLL('/home/travis/build/mapbox/node-pre-gyp/test/app4/lib/binding/node-v93-linux-x64/app4.node')" || true
- cd ./test/app4/
Expand Down
5 changes: 5 additions & 0 deletions test/app4/binding.gyp
Expand Up @@ -40,6 +40,11 @@
{
"files": [ "<(PRODUCT_DIR)/mylib<(SHARED_LIB_SUFFIX)" ],
"destination": "<(module_path)/lib.target/"
},
# gyp inside node v16 uses -rpath=$ORIGIN/ instead of -rpath=$ORIGIN/lib.target/
{
"files": [ "<(PRODUCT_DIR)/mylib<(SHARED_LIB_SUFFIX)" ],
"destination": "<(module_path)/"
}
]
}
Expand Down

0 comments on commit fa143c9

Please sign in to comment.