#!/bin/sh

set -e -u

cd "$AUTOPKGTEST_TMP"

# write python test file
cat <<EOF > import-private-module.py

import sys
sys.path.insert(0, '/usr/share/nfoview')

import nfoview
print(nfoview)
EOF

# run test for all supported python3 versions
for py in $(py3versions -s); do
	echo "Loading module with $py:"
	xvfb-run -a $py import-private-module.py
done
