Lines Matching +full:debian +full:- +full:release
2 # SPDX-License-Identifier: GPL-2.0
8 # - Correct fragmentation of large messages
9 # - Proper reassembly of fragments at the receiver
10 # - Preservation of userdata across fragments
11 # - Behavior with and without kernel release version appending
13 # Author: Breno Leitao <leitao@debian.org>
15 set -euo pipefail
17 SCRIPTDIR=$(dirname "$(readlink -e "${BASH_SOURCE[0]}")")
27 # set userdata to a long value. In this case, it is "1-2-3-4...50-"
28 USERDATA_VALUE=$(printf -- '%.2s-' {1..60})
32 # A header looks like "13,468,514729715,-,ncfrag=0/1135;". If
33 # release is appended, you might find something like:L
34 # "6.13.0-04048-g4f561a87745a,13,468,514729715,-,ncfrag=0/1135;"
38 REGEX=$(echo "${HEADER}" | cut -d'=' -f1)
39 echo "${REGEX}=[0-9]*\/[0-9]*;"
48 HEADER=$(sed -n '1p' "${MSGFILE}" | cut -d';' -f1)
60 # 13,468,514729715,-,ncfrag=0/1135;<message>
61 # key=<part of key>-13,468,514729715,-,ncfrag=967/1135;<rest of the key>
67 if ! echo "${RCVMSG}" | grep -q "${MSG}"; then
74 if ! echo "${RCVMSG}" | grep -q "${USERDATA_VALUE}"; then
98 MSG=$(printf -- 'MSG%.3s=' {1..150})
107 busywait "${BUSYWAIT_TIMEOUT}" test -s "${OUTPUT_FILE}"
111 # TEST 2: Test with smaller message, and without release appended
113 MSG=$(printf -- 'FOOBAR%.3s=' {1..100})
114 # Let's disable release and test again.
120 busywait "${BUSYWAIT_TIMEOUT}" test -s "${OUTPUT_FILE}"