init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
This commit is contained in:
21
Telegram/ThirdParty/xxHash/tests/filename-escape.sh
vendored
Executable file
21
Telegram/ThirdParty/xxHash/tests/filename-escape.sh
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Exit immediately if any command fails.
|
||||
# https://stackoverflow.com/a/2871034
|
||||
set -euxo pipefail
|
||||
|
||||
echo filename-escape-test-string > $'filename-escape-foo\nbar'
|
||||
|
||||
./xxhsum $'filename-escape-foo\nbar' | tee filename-escape-xxh64.txt
|
||||
cat filename-escape-xxh64.txt
|
||||
./xxhsum -c filename-escape-xxh64.txt
|
||||
hexdump -C filename-escape-xxh64.txt
|
||||
|
||||
./xxhsum --tag $'filename-escape-foo\nbar' | tee filename-escape-xxh64-tag.txt
|
||||
cat filename-escape-xxh64-tag.txt
|
||||
./xxhsum -c filename-escape-xxh64-tag.txt
|
||||
hexdump -C filename-escape-xxh64-tag.txt
|
||||
|
||||
rm filename-escape-xxh64-tag.txt
|
||||
rm filename-escape-xxh64.txt
|
||||
rm $'filename-escape-foo\nbar'
|
||||
Reference in New Issue
Block a user