File: psl-test

package info (click to toggle)
libpsl 0.21.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,848 kB
  • sloc: ansic: 2,450; python: 515; sh: 309; makefile: 262
file content (10 lines) | stat: -rwxr-xr-x 302 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

set -e
set +o pipefail

testpsl=/usr/share/doc/publicsuffix/examples/test_psl.txt

diff -u --ignore-case \
  <(awk -F\' '/^checkPublicSuffix\('\''/{ print $2 ": " $4 }' < $testpsl) \
  <(psl --print-reg-domain $(awk -F\' '/^checkPublicSuffix/{ print $2 }' < $testpsl) | sed 's/(null)$//')