1# Copyright (c) 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import os
6import unittest
7import tempfile
8import shutil
9import sys
10
11tracing_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
12                                            '..', '..'))
13if tracing_path not in sys.path:
14  sys.path.append(tracing_path)
15
16from tracing.build import generate_about_tracing_contents
17
18
19class GenerateAboutTracingContentsUnittTest(unittest.TestCase):
20
21  def test_smokeTest(self):
22    try:
23      tmpdir = tempfile.mkdtemp()
24      res = generate_about_tracing_contents.main(['--outdir', tmpdir])
25      assert res == 0
26    finally:
27      shutil.rmtree(tmpdir)
28