summaryrefslogtreecommitdiff
path: root/dev-libs/ls-qpack/files/ls-qpack-2.6.1-test.patch
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-04-07 08:19:21 +0200
committerMichał Górny <mgorny@gentoo.org>2025-04-07 08:21:38 +0200
commit5d02505051a54c848e3cc76cec05946e8113ae7a (patch)
treee0b06c2b1af295ef2e8093d87268164c823d1d48 /dev-libs/ls-qpack/files/ls-qpack-2.6.1-test.patch
parent79b6d9fdb228f9541900968be2a757a57b1c53f0 (diff)
downloadgentoo-5d02505051a54c848e3cc76cec05946e8113ae7a.tar.gz
gentoo-5d02505051a54c848e3cc76cec05946e8113ae7a.tar.bz2
gentoo-5d02505051a54c848e3cc76cec05946e8113ae7a.zip
dev-libs/ls-qpack: New package, 2.6.1
Import dev-libs/ls-qpack from ::guru, bump and clean it. It's meant to unvendor dev-python/pylsqpack. Thanks for the GURU maintainers for all their work! Closes: https://bugs.gentoo.org/950621 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs/ls-qpack/files/ls-qpack-2.6.1-test.patch')
-rw-r--r--dev-libs/ls-qpack/files/ls-qpack-2.6.1-test.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-libs/ls-qpack/files/ls-qpack-2.6.1-test.patch b/dev-libs/ls-qpack/files/ls-qpack-2.6.1-test.patch
new file mode 100644
index 000000000000..6d9baa717cba
--- /dev/null
+++ b/dev-libs/ls-qpack/files/ls-qpack-2.6.1-test.patch
@@ -0,0 +1,39 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index eacec4f..c0f063e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -118,7 +118,8 @@ if(LSQPACK_TESTS)
+ add_subdirectory(test)
+ endif()
+
+-if(LSQPACK_BIN)
++# The executables are used within the test suite as well.
++if(LSQPACK_BIN OR LSQPACK_TESTS)
+ add_subdirectory(bin)
+ endif()
+
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index f7002d3..e658e13 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -1,3 +1,5 @@
++add_compile_definitions("TEST_DATA=\"${CMAKE_CURRENT_SOURCE_DIR}/testdata\"")
++
+ function(lsqpack_add_test TARGET)
+ add_executable(test_${TARGET} "")
+ target_sources(test_${TARGET} PRIVATE test_${TARGET}.c)
+diff --git a/test/test_dyn_table_cap_mismatch.c b/test/test_dyn_table_cap_mismatch.c
+index 71975d8..73a8cee 100644
+--- a/test/test_dyn_table_cap_mismatch.c
++++ b/test/test_dyn_table_cap_mismatch.c
+@@ -36,8 +36,8 @@ int main(int argc, const char * argv[]) {
+ size_t size = 0;
+ if (!encoder_stream)
+ {
+- encoder_stream = fopen("../../test/testdata/encoder_stream", "r");
+- response = fopen("../../test/testdata/response", "r");
++ encoder_stream = fopen(TEST_DATA "/encoder_stream", "r");
++ response = fopen(TEST_DATA "/response", "r");
+ }
+ while ((size = fread(buffer, 1, sizeof(buffer), encoder_stream)) > 0) {
+ lsqpack_dec_enc_in(&qpackDecoder, buffer, size);