python-pycdlib/tests/simple/run_tests.sh
Brian C. Lane a31bbb3c5a gating: Add gating tests
This adds some simple gating tests using the installed library.

Resolves: rhbz#1972786
2021-06-17 15:30:31 -07:00

13 lines
460 B
Bash
Executable File

#!/bin/sh
set -eux
# Make a very simple iso with a volid
xorrisofs -o file.iso -V "test-pycdlib-volid" || exit 1
python3 ./test-pycdlib.py file.iso "test-pycdlib-volid" || exit 1
# Run a couple of the example scripts
python3 /usr/share/doc/python3-pycdlib/examples/create-bootable.py || exit 1
file eltorito.iso | grep bootable || exit 1
python3 /usr/share/doc/python3-pycdlib/examples/create-new.py || exit 1
file new.iso | grep "ISO 9660 CD-ROM" || exit 1