summaryrefslogtreecommitdiffstats
path: root/src/test/test_pslconv.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-12-12 22:18:22 +0100
committerDaniel Baumann <daniel@debian.org>2024-12-12 22:37:18 +0100
commitd7dba196f14971b34d3a5558ef64f9765aa6a9c4 (patch)
tree5cd92190c79ef2be590218b93c5206f8ca9b749e /src/test/test_pslconv.sh
parentInitial commit. (diff)
downloaddsc-d7dba196f14971b34d3a5558ef64f9765aa6a9c4.tar.xz
dsc-d7dba196f14971b34d3a5558ef64f9765aa6a9c4.zip
Adding upstream version 2.15.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'src/test/test_pslconv.sh')
-rwxr-xr-xsrc/test/test_pslconv.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/test_pslconv.sh b/src/test/test_pslconv.sh
new file mode 100755
index 0000000..6c8c047
--- /dev/null
+++ b/src/test/test_pslconv.sh
@@ -0,0 +1,15 @@
+#!/bin/sh -xe
+
+"$srcdir/../dsc-psl-convert" -h
+
+! "$srcdir/../dsc-psl-convert" --no-skip-idna-err "$srcdir/public_suffix_list.dat" > /dev/null
+
+"$srcdir/../dsc-psl-convert" "$srcdir/public_suffix_list.dat" > /dev/null
+
+"$srcdir/../dsc-psl-convert" --all "$srcdir/public_suffix_list.dat" > tld_list.dat
+
+diff -u tld_list.dat "$srcdir/tld_list.dat.gold"
+
+cat "$srcdir/public_suffix_list.dat" | "$srcdir/../dsc-psl-convert" - --all > tld_list.dat
+
+diff -u tld_list.dat "$srcdir/tld_list.dat.gold"