1#!/usr/bin/env node
2// Copyright (c) 2016 The Chromium Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5'use strict';
6
7var fs = require('fs');
8var path = require('path');
9
10var catapultPath = fs.realpathSync(path.join(__dirname, '..', '..'));
11var catapultBuildPath = path.join(catapultPath, 'catapult_build');
12
13var node_bootstrap = require(path.join(catapultBuildPath, 'node_bootstrap.js'));
14
15HTMLImportsLoader.addArrayToSourcePath(
16    node_bootstrap.getSourcePathsForProject('tracing'));
17
18// Go!
19var headless_test_module_filenames =
20    node_bootstrap.getHeadlessTestModuleFilenamesForProject('tracing');
21
22HTMLImportsLoader.loadHTML('/tracing/base/headless_tests.html');
23tr.b.unittest.loadAndRunTests(headless_test_module_filenames);