#!/bin/sh

rm -rf tests++/testdata
mkdir tests++/testdata && cp tests/testdata_dist/* tests++/testdata
curl -sSL https://speleotrove.com/decimal/dectest.zip | busybox unzip -o -d tests++/testdata/ -
make -C tests++ runtest_shared apitest_shared
(cd tests++ && ./runtest_shared official.topTest --thread)
(cd tests++ && ./runtest_shared additional.topTest --thread)
(cd tests++ && ./apitest_shared)
(cd tests++ && ./apitest_shared --thread)
