mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
* working on re-organizing js code for ortweb * remove dup files * move folder * fix common references * fix common es5 * add webpack to common * split interfact/impl * use cjs for node * add npmignore for common * update sourcemap config for common * update node * adjust folder/path in CI and build * update folder * nit: readme * add bundle for dev * correct nodejs paths * enable ORT_API_MANUAL_INIT * set name for umd library * correct name for commonjs export * add priority into registerBackend() * fix npm ci pwd * update eslintrc * revise code * revert package-lock lockfileVersion 2->1 * update prebuild * resolve comments * update document * revise eslint config * update eslint for typescript rules * revert changes by mistake in backend.ts * add env * resolve comments
25 lines
718 B
TypeScript
25 lines
718 B
TypeScript
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
import {NODE_TESTS_ROOT, warmup} from './test-utils';
|
|
|
|
// warmup
|
|
//
|
|
// for unknown reason, the first call to native InferenceSession::Run() is very slow.
|
|
// we need this warmup call so that coming test cases will not fail because of timeout.
|
|
warmup();
|
|
|
|
// unittests
|
|
require('./unittests/lib/index');
|
|
require('./unittests/lib/inference-session');
|
|
require('./unittests/lib/tensor');
|
|
|
|
// E2E tests
|
|
require('./e2e/simple-e2e-tests');
|
|
require('./e2e/inference-session-run');
|
|
|
|
// Test ONNX spec tests
|
|
import {run as runTestRunner} from './test-runner';
|
|
describe('ONNX spec tests', () => {
|
|
runTestRunner(NODE_TESTS_ROOT);
|
|
});
|