Home | History | Annotate | Download | only in bin
      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 
      7 var fs = require('fs');
      8 var path = require('path');
      9 
     10 var catapultPath = fs.realpathSync(path.join(__dirname, '..', '..'));
     11 var catapultBuildPath = path.join(catapultPath, 'catapult_build');
     12 
     13 var node_bootstrap = require(path.join(catapultBuildPath, 'node_bootstrap.js'));
     14 
     15 HTMLImportsLoader.addArrayToSourcePath(
     16     node_bootstrap.getSourcePathsForProject('tracing'));
     17 
     18 // Go!
     19 var headless_test_module_filenames =
     20     node_bootstrap.getHeadlessTestModuleFilenamesForProject('tracing');
     21 
     22 HTMLImportsLoader.loadHTML('/tracing/base/headless_tests.html');
     23 tr.b.unittest.loadAndRunTests(headless_test_module_filenames);