[tor-bugs] #32172 [Core Tor/Tor]: port test suite to Android to run in emulator

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Oct 21 07:54:30 UTC 2019


#32172: port test suite to Android to run in emulator
---------------------------------+------------------------------
 Reporter:  eighthave            |          Owner:  (none)
     Type:  task                 |         Status:  new
 Priority:  Medium               |      Component:  Core Tor/Tor
  Version:                       |       Severity:  Normal
 Keywords:  Android, tbb-mobile  |  Actual Points:
Parent ID:                       |         Points:
 Reviewer:                       |        Sponsor:
---------------------------------+------------------------------
 Attached is the first stab at getting something from the test suite
 running in Android.

 * there is no /tmp on Android, there is /data/local/tmp for root and the
 shell user
 * no use in testing the user ID stuff, Android apps cannot ever change
 users


 To get the full suite running, there will need to be larger changes:
 * either switch Python code to plain ''sh'' or hack to get Python running
 in Android emulator
 * port ''sh'' scripts to Android, it is not a full UNIX environment, so
 things like ''printf'' and others are not always there.
 * the shebang will need to be settable to `#!/system/bin/sh` or the tests
 need to be executed using `sh test_keygen.sh`

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32172>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list