From 20f04f162c388b93c698bde27e5eec75f3ed9390 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Jun 2023 10:12:30 +0000 Subject: switch unit/test_response.rb to Perl 5 integration test http_response_write may benefit from API changes for Rack 3 support. Since there's no benefit I can see from using a unit test, switch to an integration test to avoid having to maintain the unit test if our internal http_response_write method changes. Of course, I can't trust tests written in Ruby since I've had to put up with a constant stream of incompatibilities over the past two decades :< Perl is more widely installed than socat[1], and nearly all the Perl I wrote 20 years ago still works unmodified today. [1] the rarest dependency of the Bourne shell integration tests --- GNUmakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 0e08ef0..5cca189 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -86,7 +86,7 @@ $(tmp_bin)/%: bin/% | $(tmp_bin) bins: $(tmp_bins) t_log := $(T_log) $(T_n_log) -test: $(T) $(T_n) +test: $(T) $(T_n) test-prove @cat $(t_log) | $(MRI) test/aggregate.rb @$(RM) $(t_log) @@ -141,6 +141,9 @@ t/random_blob: test-integration: $(T_sh) +test-prove: + prove -vw + check: test-require test test-integration test-all: check -- cgit v1.2.3-24-ge0c7