
DATADER=`pwd`

do_test() {
    ARCH="$1"
    CPUINFO="$DATADER/$2"
    mkdir "build-$ARCH"
    cd "build-$ARCH"
    cmake ../.. -DOVRARCH=$ARCH -DOVRCPUINFO=\"$CPUINFO\"
    make -j
    cd ..
}

#do_test x86 data/x86_pent_cpuinfo
#do_test x86 data/x86_amdr7_cpuinfo
#do_test x86 data/x86_pentf00f_cpuinfo
#do_test x86 data/x86_cyrix6x86coma_cpuinfo
#do_test ppc data/ppc_g5_cpuinfo
#do_test ppc data/power8_cpuinfo
#do_test arm data/arm_rpi3_aarch64_cpuinfo
#do_test arm data/arm_jetsontx2_cpuinfo
#do_test sparc data/sparc_m7_cpuinfo
#do_test mips data/mips_loongson_cpuinfo
#do_test alpha data/alpha_as_cpuinfo
#do_test parisc data/parisc_hppa_fortex4_cpuinfo
#do_test ia64 data/ia64_x2_cpuinfo
#do_test m68k data/m68k_sun3_cpuinfo
#do_test sh data/sh_dreamcast_cpuinfo
#do_test sh data/sh_sh3_cpuinfo
#do_test sh data/sh_sh64_cpuinfo
#do_test s390 data/s390_hurcules_cpuinfo
#do_test riscv data/riscv_sim_cpuinfo
#do_test riscv data/riscv_fake_cpuinfo
#do_test e2k data/e2k_elbrus_4x_e4c_cpuinfo
#do_test e2k data/e2k_elbrus_e1c+_cpuinfo
#do_test e2k data/e2k_elbrus_e2c+_cpuinfo
#do_test e2k data/e2k_elbrus_e8c_cpuinfo
do_test e2k data/e2k_elbrus_801_pc_e8c_cpuinfo
#do_test e2k data/e2k_elbrus_4x_e8c_cpuinfo
#do_test e2k data/e2k_elbrus_e8c2_cpuinfo
#do_test e2k data/e2k_elbrus_e16c_cpuinfo
#do_test e2k data/e2k_elbrus_e2c3_cpuinfo
