| 1 | #!/bin/sh |
| 2 | |
| 3 | set -eu |
| 4 | |
| 5 | # Qt burfs some warnings to stderr when in Gnome-wayland session |
| 6 | unset XDG_SESSION_TYPE |
| 7 | |
| 8 | # Qt outputs some warnings to stderr if XDG_RUNTIME_DIR is not set |
| 9 | export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:=/tmp/runtime-debci} |
| 10 | echo "#### XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR}" |
| 11 | |
| 12 | # input file was taken from EPUB 3 Samples |
| 13 | # https://github.com/IDPF/epub3-samples/releases/download/20230704/wasteland-woff-obf.epub |
| 14 | # https://idpf.github.io/epub3-samples/30/samples.html |
| 15 | # https://github.com/IDPF/epub3-samples/ |
| 16 | input_file=debian/tests/data/wasteland-woff-obf.epub |
| 17 | output_file=${AUTOPKGTEST_ARTIFACTS}/wasteland-woff-obf.txt |
| 18 | |
| 19 | ebook-convert ${input_file} ${output_file} |