Closed Bug 1006599 Opened 10 years ago Closed 10 years ago

Unit tests are not working for apps in dev_apps

Categories

(Firefox OS Graveyard :: Gaia::TestAgent, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1006357

People

(Reporter: kgrandon, Unassigned)

Details

For some reason when I run make test-agent-test APP=______ this does not work for a test in the dev_apps folder. It simply times out.
looks _very_ related to bug 1006357 ?
Kevin,

May we know the APP name and if it is listed in build/config/phone/apps-engineering.list?

We had found a similar problem, bug 1006357, which tries to run test which is not listed in phone but listed in tv.
Flags: needinfo?(kgrandon)
Hey John - I was trying with the 'sharedtest' app and moving it to dev_apps. Does the app need to be listed in the *.list file for it to work?
Flags: needinfo?(kgrandon)
(In reply to Kevin Grandon :kgrandon from comment #3)
> Hey John - I was trying with the 'sharedtest' app and moving it to dev_apps.
> Does the app need to be listed in the *.list file for it to work?

If you want to use 'make test-agent-test APP=sharedtest', you need to add it. That's the issue I found at bug 1006357.
But currently, we use bug 1006357 to fix the always timeout issue in travis. We will make all tests run at travis. And we filed another bug 1006962 to tell the error message of this case.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
FTR I could definitely run the tests for the test-agent itself, and it's in dev_apps, so maybe I miss something.

Or maybe I have the test-agent files in build_stage because I built a DEBUG profile?
Yeah I think so.

When we built by "make DEBUG=1", build system utilize [1] as config to setup apps in build_stage. Not only setup build_stage, but also tell httpd.js where apps in [1] need to handle its routing rules.

For instance, in apps-engineering.list we build:

dev_apps/test-agent
dev_apps/test-container
dev_apps/test-otasp

So, httpd can let us access:

test-agent.gaiamobile.org
test-container.gaiamobile.org
test-otasp.gaiamobile.org

test agent will access file path in apps/ and dev_apps regardless of build_stage.

[1] https://github.com/mozilla-b2g/gaia/blob/6603f081a1097c93a785237b12a72a512842ef43/build/config/phone/apps-engineering.list
You need to log in before you can comment on or make changes to this bug.