summaryrefslogtreecommitdiff
path: root/test/runtest.sh
blob: 4ac3302c2dcfeceaa514e5afd1acd6dbd85cb6f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh 

TEST_PATH=$1
TEST_OUT=${TEST_PATH}/ppm

mkdir -p ${TEST_OUT}

bmpdecode()
{
    OUTF=$(basename ${1} .bmp)
    ${TEST_PATH}/test_decode_bmp ${1} > ${TEST_OUT}/${OUTF}.ppm
}

icodecode()
{
    OUTF=$(basename ${1} .ico)
    ${TEST_PATH}/test_decode_ico ${1} > ${TEST_OUT}/${OUTF}.ppm
}

for BMP in $(ls test/bmpsuite/*.bmp);do
    bmpdecode ${BMP}
done

for ICO in $(ls test/icons/*.ico);do
    icodecode ${ICO}
done