File: run-unit-test

package info (click to toggle)
libsixel 1.8.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,632 kB
  • sloc: ansic: 23,497; sh: 8,443; cpp: 1,227; python: 526; makefile: 444; xml: 271; ruby: 31; perl: 26
file content (23 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

export LC_ALL=C.UTF-8

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
    AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
    trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cp -a images/* $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP

for testfile in *.png; do
    img2sixel $testfile -o ${testfile}.sixel
done

for testfile in *.jpg; do
    img2sixel $testfile -o ${testfile}.sixel
done

for testfile in *.six; do
    sixel2png -i $testfile -o ${testfile}.png
done