]> Sergey Matveev's repositories - public-inbox.git/commit
t/common: introduce run_script wrapper for t/cgi.t
authorEric Wong <e@80x24.org>
Fri, 15 Nov 2019 09:50:43 +0000 (09:50 +0000)
committerEric Wong <e@80x24.org>
Sat, 16 Nov 2019 11:05:23 +0000 (11:05 +0000)
commit181f477a67c1c1f2f91e03d02987bfc7cb67af43
tree8ec2fd34992094c8e037cd90a5eb0219910019da
parent2df8cfd320dc9efdf3c2764b2c60ec457c1b024f
t/common: introduce run_script wrapper for t/cgi.t

This will give us a consistent interface for running
test scripts in more performant ways while still giving
us a consistent interface to recreate real-world behavior
via spawn() (fork + execve), if needed.

The default run_mode (1) is faster and can run within the test
process with some minor adjustments to our code to avoid global
state.

This avoids the significante overhead of Perl code loading,
parsing and compilation phases.
t/cgi.t
t/common.perl