autotrace/tests/smoke/runtest.sh
Parag Nemade 331c09e67f
Resolves:rhbz#1961993 - Add gating tests
Signed-off-by: Parag Nemade <pnemade@fedoraproject.org>
2021-05-21 12:04:16 +05:30

18 lines
550 B
Bash

#!/bin/bash
# If one of the commands below returns non-zero then exit immediately
set -e
echo "Testing `autotrace --version`"
old_size=`stat -c "%s" logo.svg`
# Funny that jpg format working fine on Fedora 32 system but let's use upstream
# recommended format ppm
autotrace --output-format svg --output-file logo_new.svg --color-count 4 logo.ppm
new_size=`stat -c "%s" logo_new.svg`
if [ $old_size -ne $new_size ]; then
echo "FAILED: autotrace generated different svg file"
else
echo "PASSED: autotrace generated same svg file"
fi