test: Add first EKF test

main
Sean McBride 4 years ago
parent 9eef778eda
commit 770eaee239

@ -123,3 +123,11 @@ jobs:
- name: OCR by DPI
run: |
./test.sh ocr_by_dpi
- name: Cache EKF
uses: actions/cache@v2
with:
path: ./runtime/bin/ekf_wasm.so
key: ${{ runner.os }}-gocr2-${{ hashFiles('./runtime/tests/TinyEKF') }}
- name: EKF by Iteration
run: |
./test.sh ekf_by_iteration

@ -96,15 +96,20 @@ ocr_by_dpi() {
# EKF Tests
ekf_by_iteration() {
if [[ ! -f "$base_dir/runtime/bin/ekf_wasm.so" ]]; then
make tinyekf -C "$base_dir/runtime/tests" || exit 1
fi
make tinyekf -C "$base_dir/runtime/tests" || exit 1
pushd "$base_dir/runtime/experiments/applications/ekf/by_iteration" || exit 1
./run.sh || failed_tests+=("ocr_by_dpi")
./run.sh || failed_tests+=("ekf_by_iteration")
popd || exit 1
return 0
}
ekf_one_iteration() {
make tinyekf -C "$base_dir/runtime/tests" || exit 1
if [[ ! -f "$base_dir/runtime/bin/ekf_wasm.so" ]]; then
make tinyekf -C "$base_dir/runtime/tests" || exit 1
fi
pushd "$base_dir/runtime/experiments/applications/ekf/one_iteration" || exit 1
./run.sh || failed_tests+=("ekf_one_iteration")
popd || exit 1

Loading…
Cancel
Save