1cc1dc7a3Sopenharmony_ci#!/bin/bash
2cc1dc7a3Sopenharmony_ci
3cc1dc7a3Sopenharmony_ciif [ -z "$1" ]; then
4cc1dc7a3Sopenharmony_ci    echo "ERROR: Missing root; e.g. for ref-main-avx2 set 'main'"
5cc1dc7a3Sopenharmony_ci    exit 1
6cc1dc7a3Sopenharmony_cifi
7cc1dc7a3Sopenharmony_ci
8cc1dc7a3Sopenharmony_ciecho "Generating new ref-$1 results"
9cc1dc7a3Sopenharmony_ci
10cc1dc7a3Sopenharmony_ciif [ "$1" = "main" ]; then
11cc1dc7a3Sopenharmony_ci    echo "Using binary from ./bin/${1}/"
12cc1dc7a3Sopenharmony_cielse
13cc1dc7a3Sopenharmony_ci    echo "Using binary from ./Binaries/${1}/"
14cc1dc7a3Sopenharmony_cifi
15cc1dc7a3Sopenharmony_ci
16cc1dc7a3Sopenharmony_ciecho ""
17cc1dc7a3Sopenharmony_ci
18cc1dc7a3Sopenharmony_ciTARGET_ROOT=${1}
19cc1dc7a3Sopenharmony_ci
20cc1dc7a3Sopenharmony_cipython3 ./Test/astc_test_image.py --test-set all --block-size all --test-quality all --repeats 6 --encoder ref-$1-avx2
21cc1dc7a3Sopenharmony_ci#python3 ./Test/astc_test_image.py --test-set all --block-size all --test-quality all --repeats 6 --encoder ref-$1-sse4.1
22cc1dc7a3Sopenharmony_ci#python3 ./Test/astc_test_image.py --test-set all --block-size all --test-quality all --repeats 6 --encoder ref-$1-sse2
23