Giter Site home page Giter Site logo

android: enable fdsan? about libuv HOT 7 OPEN

bnoordhuis avatar bnoordhuis commented on September 27, 2024 1
android: enable fdsan?

from libuv.

Comments (7)

geeksilva97 avatar geeksilva97 commented on September 27, 2024 1

I'd be okay with just running uv_run_tests_a for now, that's already a step up from the status quo.

Failing tests: I'm not surprised. Best would be to investigate on a case-by-case basis whether to fix the test or to skip it; see the RETURN_SKIP macro.

Sounds good. Will check it.

from libuv.

geeksilva97 avatar geeksilva97 commented on September 27, 2024

Hey @bnoordhuis . I started studying libuv source code to understand more about IO in lower levels. Even though I'm still a newbie I'd like to try some issues in this nice project.

Would you have any advice for me to start working on this issue?

from libuv.

bnoordhuis avatar bnoordhuis commented on September 27, 2024

@geeksilva97 a good first step is to try to get the test suite to run (and pass) on android. The file you're looking for is .github/workflows/CI-unix.yml

from libuv.

geeksilva97 avatar geeksilva97 commented on September 27, 2024

Hello @bnoordhuis . I could get the emulator running but when I try to run execute tests I got a link error

CANNOT LINK EXECUTABLE "/data/local/tmp/build/uv_run_tests": library "libuv.so" not found

Here's what I did:

          adb push build /data/local/tmp

          adb shell ls -R /data/local/tmp # debugging purposes

          adb shell /data/local/tmp/build/uv_run_tests

Files are copied as expected. I can see the libuv.so in the build folder inside of the emulator. But it can't execute. Would you have a suggestion?

Is there a way - if feasible - we can statically build uv_run_tests for Android?

(I'm not that familiar with CMake yet)

from libuv.

geeksilva97 avatar geeksilva97 commented on September 27, 2024

Hello @bnoordhuis . I could get the emulator running but when I try to run execute tests I got a link error

CANNOT LINK EXECUTABLE "/data/local/tmp/build/uv_run_tests": library "libuv.so" not found

Here's what I did:

          adb push build /data/local/tmp

          adb shell ls -R /data/local/tmp # debugging purposes

          adb shell /data/local/tmp/build/uv_run_tests

Files are copied as expected. I can see the libuv.so in the build folder inside of the emulator. But it can't execute. Would you have a suggestion?

Is there a way - if feasible - we can statically build uv_run_tests for Android?

(I'm not that familiar with CMake yet)

Quick update. For uv_run_tests_a it executes tests - even though many of them fail.

image

from libuv.

bnoordhuis avatar bnoordhuis commented on September 27, 2024

I'd be okay with just running uv_run_tests_a for now, that's already a step up from the status quo.

Failing tests: I'm not surprised. Best would be to investigate on a case-by-case basis whether to fix the test or to skip it; see the RETURN_SKIP macro.

from libuv.

geeksilva97 avatar geeksilva97 commented on September 27, 2024

Good news, @bnoordhuis ! Most failures were due to the emulator be READ ONLY. I fixed it and now we have a few left.

The emfile test does not work. I wonder if we could skip it for Android as for __MVS__ and __AIX

image

A few TCP tests are failing due a timeout would you have any clue?

image

Here is the last build for reference: https://github.com/libuv/libuv/actions/runs/10582346314/job/29321801303?pr=4517

from libuv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.