File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565fi
6666
6767# Compare output with Makefile reference
68- CMAKE_BIN=$( find " $BUILD_DIR " -name ' abpoa' -type f -perm +111 | head -1)
68+ CMAKE_BIN=$( find " $BUILD_DIR " -name ' abpoa' -type f -exec test -x {} \; -print | head -1)
6969if [ -z " $CMAKE_BIN " ]; then
7070 echo " FAIL: abpoa binary not found in CMake build"
7171 ERRORS=$(( ERRORS + 1 ))
Original file line number Diff line number Diff line change 3232fi
3333
3434# Binary must NOT exist
35- if find " $BUILD_DIR " -name ' abpoa' -type f -perm +111 | grep -q . ; then
35+ if find " $BUILD_DIR " -name ' abpoa' -type f -exec test -x {} \; -print | grep -q . ; then
3636 echo " FAIL: abpoa binary found in lib-only build (should be disabled)"
3737 ERRORS=$(( ERRORS + 1 ))
3838fi
@@ -50,7 +50,7 @@ if ! cmake --build "$BUILD_DIR2" -j$(sysctl -n hw.logicalcpu 2>/dev/null || npro
5050 exit 1
5151fi
5252
53- if ! find " $BUILD_DIR2 " -name ' abpoa' -type f -perm +111 | grep -q . ; then
53+ if ! find " $BUILD_DIR2 " -name ' abpoa' -type f -exec test -x {} \; -print | grep -q . ; then
5454 echo " FAIL: abpoa binary not found in default build (should be built)"
5555 ERRORS=$(( ERRORS + 1 ))
5656fi
You can’t perform that action at this time.
0 commit comments