19 lines
397 B
Bash
Executable File
19 lines
397 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# exit immediately if any command returns non-zero exit code
|
|
set -e
|
|
|
|
# print commands as they are executed by the shell interpreter
|
|
set -x
|
|
|
|
# print versions of related pkgs
|
|
rpm -q {,lib}psl libidn2
|
|
psl --version
|
|
ldd /usr/bin/psl
|
|
|
|
# process the test input with (lib)psl
|
|
psl < psl-input.txt > psl-output.txt
|
|
|
|
# compare the output with expected output
|
|
diff -u psl-output{-expected,}.txt
|