/srv/irclogs.ubuntu.com/2014/08/11/#ubuntu-autopilot.txt

=== vrruiz_ is now known as rvr
balloonselopio, remember this old branch? https://code.launchpad.net/~dpm/ubuntu-filemanager-app/run-ap-from-out-of-source-build/+merge/217510 We've hit the problem again about the best way to run tests inside the build environment as a developer.19:00
balloonsI think I'm coming around to the mp's way of doing it..19:01
elopioballoons: I'm not sure what you mean, that's an english phrase I don't fully understand.19:03
elopiodo you mean you like the idea of searching for the build dir, or that you like the idea of passing it as a parameter ?19:03
balloonselopio, hehe.. sorry about that. I'm trying to say, I think what david originally suggested, using the cmakepluginparser, is the way to go19:03
elopioI still don't agree. I think that while developing things we should always call the cmake autopilot task to run the tests.19:05
elopiobut we always can do both.19:05
elopioif there's a BUILD_DIR environment variable, use it.19:06
elopioif there is not, then we can try to find it or run the installed one. Of that part I'm not really worried atm.19:06
elopioballoons: out of curiosity, what are the problems you are facing now?19:06
balloonselopio, well I'm running into the old hardcoded local source path issue.. It's a bit of the setup code we've copied about everywhere, but never really standardized beyond, you should build in tree and layout your project this way19:08
balloonsfolks are using make and building out of tree.. it fails in this case19:08
balloonselopio, is there a project that uses cmake autopilot successfully atm?19:10
elopioballoons: I've started following dobey's advice about CMake passing the build path on unity-click-scope19:10
elopioI like the way it works. But we still need some more fancy things, like being able to select which tests to run.19:11
balloonsmy concern with shoving it into cmake now is cmake build configs are reserved for mad scientists :-)19:11
balloonslol.. but seriously, I'll go check out what you did19:12
elopioballoons: it's really simple in this case, a lot more than querying the file.19:13
elopiohttp://bazaar.launchpad.net/~ubuntuone-control-tower/unity-scope-click/trunk/view/head:/autopilot/CMakeLists.txt#L1619:13
elopioBUILD_DIR=${CMAKE_BINARY_DIR}19:14
elopiothen the logic on the launch method is also simplified19:15
elopiohttp://bazaar.launchpad.net/~ubuntuone-control-tower/unity-scope-click/trunk/view/head:/autopilot/unityclickscope/test_click_scope.py#L13519:15
elopioif BUILD_DIR exists, use the binaries from that dir.19:15
elopioif it doesn't, just call the installed ones.19:15
elopiowell, I think it's simpler than dpm's solution. But that might be because I like it best and not being impartial.19:16
* balloons looks19:23
balloonselopio, hmm.. \19:24
balloonsI do like setting / reading a builddir env var19:25
balloonsok, I'll try this19:25
elopioballoons: I would prefer to pass arguments to autopilot instead of env vars, but this works for now for me.19:27
elopiowhat I would like to do is to standardize the way we launch apps. But it's a little hard if we are not able to stabilize the tests.19:28
elopionow that dialer app is going to be python3, that's going to be my sample app.19:28
elopioballoons: would you help me to set up autopkgtests for dialer-app?19:37
balloonselopio, yes should be REALLY simple to do so20:21
balloonsyes, we mentioned in david's original mp my preference for passing an arg to autopilot, but I digress20:21

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!