Commit Graph

272 Commits

Author SHA1 Message Date
Daniel Silverstone
310247ef82
test: Bring corestring test count up to date
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-21 16:19:35 +00:00
Michael Drake
9a98f19611 Core: Remove unused minimum GIF delay option. 2020-02-21 11:45:20 +00:00
Vincent Sanders
826f4e161c improve monkey-see-monkey-do backtrace output to include function name 2020-01-12 23:57:32 +00:00
Daniel Silverstone
ed6c326b1c
monkey-see-monkey-do: Don't use personal address decoder
Fix what looks like a typo but was in fact a use of a personal
wrapper around addr2line, to simply use addr2line.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-01-10 22:24:13 +00:00
Daniel Silverstone
d63de35033
monkey-see-monkey-do: Decode backtraces
To improve debugging, decode backtraces discovered during
runs with monkey-see-monkey-do

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-01-10 22:21:21 +00:00
Daniel Silverstone
a29ed7c083
monkeyfarmer.py: Ensure that we capture and repeat stderr
In order that we can process stderr in monkey-see-monkey-do
we need to capture it in the farmer and re-echo it through
Python's stderr object

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-01-10 22:21:17 +00:00
Vincent Sanders
5632c9c8c0 stop bad unicode data from crashing teh test harness
instead of exploding if monkey returns a bad unicode string instead
 a warning will be reported and the unicode decode performed with
 character replacemnt instead
2019-12-31 19:42:33 +00:00
Vincent Sanders
3fdbef0566 remove unused render_resample option from beos, gtk and monkey frontends 2019-12-21 20:52:22 +00:00
Vincent Sanders
bacd8d229c make RISC OS specific window_screen_ options limited to that frontend 2019-12-20 12:59:28 +00:00
Vincent Sanders
918b1d0fed remove long unused plugin option from gtk and monkey 2019-12-17 22:09:41 +00:00
Daniel Silverstone
09f6c50980
monkey: Support testing page info state
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-12-01 18:24:34 +00:00
Daniel Silverstone
7d0fe9ecbc use faster loader for yaml in test parsing 2019-11-30 15:41:20 +00:00
Vincent Sanders
d39155bba6 add abiliy for test runner to filter by group 2019-11-30 15:41:20 +00:00
Vincent Sanders
e39afa3c97 allow setting division pararameter on test plan fetch 2019-11-28 22:45:34 +00:00
Vincent Sanders
4eb06ad2cf move the fallback text for about handler into messages handler 2019-10-30 21:33:27 +00:00
Vincent Sanders
e01c24cef7 improve human_friendly_bytesize to cope with sizes up to 16 exibytes 2019-10-19 18:20:00 +01:00
Vincent Sanders
4230366818 fix toolbar visibility checkboxes initial state 2019-10-03 00:39:08 +01:00
Vincent Sanders
40aa44e4f5 make options test use build directory for temporary files rather than /tmp 2019-09-21 13:25:45 +01:00
Vincent Sanders
737a09d53e make the temporary file names unique so other tests do not overwrite them 2019-09-21 13:12:31 +01:00
Vincent Sanders
d5490be98a fix options test 2019-09-21 13:11:53 +01:00
Daniel Silverstone
2d87e7ebea monkey_driver: Make window-close take timeout=5
In the parallel test we run, it can sometimes take more than
a second for the JS compartment of a window to close down.  Since
that's part of the shutdown of a window, the driver can end up
timing out.  Default the timeout to 5s for window-close but make
it possible to specify in the yaml too.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-09-07 14:53:18 +01:00
Daniel Silverstone
84a9c5accf monkey_driver: Fix sleep-ms
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-03 17:28:35 +01:00
Daniel Silverstone
6826e5d612 monkeyfarmer: Make polling even more robust
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-03 13:15:28 +01:00
Daniel Silverstone
41ecb495d0 monkeyfarmer, driver: Add support for clicking on things
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-03 12:31:43 +01:00
Daniel Silverstone
45097c7f39 monkeyfarmer: Probably make handling of monkey more robust
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-03 12:31:22 +01:00
Daniel Silverstone
ad67eeff4b monkeyfarmer: Be a little more verbose when exiting
In an effort to try and determine why we sometimes get unexpected
exits, print the line queue during the handling of process exit.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 17:40:15 +01:00
Daniel Silverstone
5c9d54d05b Monkey: Properly support reload in farmer and driver
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 12:24:14 +01:00
Vincent Sanders
f46b77160a ensure monkey farmer copes with recv returnint EAGAIN 2019-07-06 10:08:10 +01:00
Vincent Sanders
ccf336bb4a make monkey driver and farmer python files pylint and pep8 clean 2019-07-04 22:44:58 +01:00
Vincent Sanders
e01bbee405 fix monkey testing setting of options to add necessary prefix 2019-07-02 11:29:54 +01:00
Vincent Sanders
4368c4c042 attempt to make monkeyfarmer process exit detection more reliable 2019-06-27 13:16:51 +01:00
Daniel Silverstone
e14a6598be monkey_driver.py: Allow for no wrapper to be passed
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-06-15 21:24:35 +01:00
Daniel Silverstone
1d5a024a68 Sleepy JS test, handy to alt+f4 during load to check shutdown
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-06-15 21:09:49 +01:00
Daniel Silverstone
5c0eee43e2 Monkey: Support a -w argument to the monkey_driver.py
In order to better support valgrind and friends, add -w to
the monkey driver.  You can use it as:

monkey_driver.py ...normalargs... -w 'valgrind -v --track-origins=yes'

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-06-15 20:01:08 +01:00
Vincent Sanders
1951c0f809 allow repeat loops to specify values and navigation to use them 2019-06-12 23:55:54 +01:00
Vincent Sanders
c90bd806a6 make the timer-start and timer-restart action name the timer in the same way 2019-06-12 22:59:40 +01:00
Vincent Sanders
c74c8332ac allow monkey tests to stop navigation 2019-06-06 17:17:27 +01:00
Vincent Sanders
4be18fcf47 detect monkey exit rather than waiting forever for a defunct process 2019-06-06 17:17:27 +01:00
Vincent Sanders
f2000ae60e improve stdout print formatting 2019-06-06 17:17:27 +01:00
Vincent Sanders
27ee92c872 extend the monkey test tooling to cope with ssl certificate windows 2019-06-05 20:58:40 +01:00
Daniel Silverstone
41608a73c0 monkey-see-monkey-do: Also restore stdout/stderr when success
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-06-04 21:50:43 +01:00
Vincent Sanders
19de453ad5 Fix dump choices test data to align with altered logging levels 2019-05-31 18:56:14 +01:00
Vincent Sanders
295617b451 Fix test target use of logging config defines 2019-05-31 18:44:04 +01:00
Vincent Sanders
12bba5a1cc fix block conditional checks to be orred instead of anded 2019-05-20 10:07:53 +01:00
Vincent Sanders
ea9bc4e2be allow block to use elapsed timer as a condition 2019-05-18 23:45:52 +01:00
Vincent Sanders
5bd54f4c0c allow render checks to be empty 2019-05-18 22:39:15 +01:00
Daniel Silverstone
1736bdcfee Add js-exec to monkey_driver, add a test, etc.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 19:20:18 +01:00
Daniel Silverstone
183f9ed8bc Example script console log test, needs genericising on path
Currently this has to have a full-path to the inserted-script test

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 11:02:36 +01:00
Daniel Silverstone
4db81370f3 Support logging in monkey_driver.py
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 11:02:36 +01:00
Daniel Silverstone
6bbb672c57 Monkeyfarmer: Support logging
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 11:02:36 +01:00