From c2c6ce93b1feecbcc79b4d52cf68823f14e88410 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 16 Apr 2021 13:39:03 +0200 Subject: #915 Add large HTTP response test This commit adds a test for HTTP responses that are too large to fit in ogServer response buffer. It also moves the basic sql data used for the other tests to its own file, easing its reuse in several files. --- tests/run-tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/run-tests.py') diff --git a/tests/run-tests.py b/tests/run-tests.py index 90a0b2d..f252331 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -14,7 +14,8 @@ def start_mysql(): stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) subprocess.run(['mysqladmin', 'create', 'test-db']) subprocess.run('mysql --default-character-set=utf8 test-db < ../cfg/ogAdmBD.sql', shell=True) - subprocess.run(['mysql', '-D', 'test-db', '-e', sql_data]) + subprocess.run('mysql --default-character-set=utf8 test-db ' + '< config/basic_data.sql', shell=True) subprocess.run(['mysql', '-D', 'test-db', '-e', sql_create_user]) def stop_mysql(): -- cgit v1.2.3-18-g5258