iso-codes/tests/smoke/runtest.sh
Petr Šabata 6e41ddfdea RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/iso-codes#b366c8db406f5372e657f1fd8f9e08fe57cd51e2
2020-10-15 13:48:31 +02:00

21 lines
497 B
Bash

#!/bin/bash
# If one of the commands below returns non-zero then exit immediately
set -e
cd ../source
echo "Let's check the upstream data files timestamp"
ls data/iso*.json -l
echo "Validating json data files written with correct syntax"
python3 bin/validate_json_data.py
retval=$?
if [ $retval -ne 0 ]; then
echo "FAILED: Validation of data files"
else
echo "PASSED: Validation of data files"
fi
echo "Let's check timestamp of newly generated data files"
ls data/iso*.json -l