Commit Graph

292 Commits

Author SHA1 Message Date
Michael Drake
ac8458e3f2 Tests: NetSurf style for game of life test. 2020-05-23 13:33:15 +01:00
Daniel Silverstone
af158650d8
test/js: Game of Life
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-23 11:49:33 +01:00
Vincent Sanders
a912d4db4e fix corestring test 2020-05-23 09:31:52 +01:00
Daniel Silverstone
1223cf0786
test/js: Include mandelbrot example
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 19:53:23 +01:00
Daniel Silverstone
ee054db071
monkey: Excise sslcert and add loading blocking support
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 09:15:27 +01:00
Michael Drake
0ab6249a64 Tests: Update test data for improved nsoption colour rendering. 2020-04-07 21:32:27 +01:00
Vincent Sanders
fa1f1dcd11 fix start stop test to set launch options correctly 2020-03-23 17:41:05 +00:00
Vincent Sanders
e070f13093 integration test remove remaining windows when browser has been quit 2020-03-23 17:41:05 +00:00
Vincent Sanders
710818f346 fix integration test repeat "max" handling 2020-03-23 17:41:05 +00:00
Vincent Sanders
9cb7d0ab48 make conditionals optional in integration test sleep-ms action 2020-03-23 17:41:05 +00:00
Vincent Sanders
19dded8cfa add ability for monkey farmer to launch browser with environment variables set 2020-03-23 17:40:53 +00:00
Daniel Silverstone
921568166b
test: Add disc_cache_path to Choices-all test data
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 19:21:49 +00:00
Daniel Silverstone
c88106e02a
monkey_driver: Add launch-time option support
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 15:37:12 +00:00
Daniel Silverstone
5a028f61d3
test: Another corestring
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 09:20:14 +00:00
Michael Drake
3cceb8ff2b Test: libmalloc_fig.so needs "-ldl". 2020-02-24 08:22:53 +00:00
Daniel Silverstone
088917641f
utils: Add hashmap_count()
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-23 20:59:40 +00:00
Daniel Silverstone
54b1960d18
utils: Add iteration API to hashmap
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-23 20:59:39 +00:00
Daniel Silverstone
a653e1e86e
utils: Add a generic hashmap and tests for it
In order to be able to use a generic hashmap in things such
as the fs_backing_store we want one to exist.  Here it is,
along with some moderately comprehensive tests.

Current limits:

1. All keys and values are owned by the hashmap
2. The hashmap, while capable of different bucket counts
   only has a single fixed count for now

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-23 15:13:47 +00:00
Daniel Silverstone
e8e7485089
test: Increase window destroy timeout to 30s by default
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-22 17:51:07 +00:00
Daniel Silverstone
f9b80469e0
test: Extra info when windows don't destroy quickly
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-22 17:50:51 +00:00
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