REGTESTS: add a test for the threaded Lua code
authorWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 15:44:34 +0000 (16:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 20:53:16 +0000 (21:53 +0100)
commitcc794b91f6dbff22ae63d6609b11f376965151b4
treed905c4bba42c080c6258e24db1b303cb441ba7af
parent46278ff8286cde41e0f267c1d385661d6d20dff5
REGTESTS: add a test for the threaded Lua code

This is simply txn_get_priv.vtc with the loading made using
lua-load-per-thread, allowing all threads to run independently.
There's nothing global nor thread-specific in this test, which makes
an excellent example of something that should work out of the box.
Four concurrent clients are initialized with 4 loops each so as to
give a little chance to various threads to run concurrently.
reg-tests/lua/txn_get_priv-thread.vtc [new file with mode: 0644]