diff options
author | 2017-08-04 16:04:04 -0700 | |
---|---|---|
committer | 2017-08-18 10:13:22 -0700 | |
commit | 99a75cd2a5102e72b07a7614e84f8624d3c2ddd1 (patch) | |
tree | 37cf7ebfe1dcbc192d496a72833dd4fc27a9e0d4 /scripts/reverse_path_test.py | |
parent | fd697f425657d6f443def3f0b1862888b0095bac (diff) |
Obsolete bootstrap.bash and ./soong wrappers
We can call directly into the blueprint bootstrap.bash using values that
soong_ui has already calculated.
Instead of calling into blueprint.bash, build minibp with microfactory,
and directly run ninja. This allows us to get individual tracing data
from each component.
Test: m -j blueprint_tools
Test: m clean; m -j blueprint_tools
Change-Id: I2239943c9a8a3ad6e1a40fa0dc914421f4b5202c
Diffstat (limited to 'scripts/reverse_path_test.py')
-rwxr-xr-x | scripts/reverse_path_test.py | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/scripts/reverse_path_test.py b/scripts/reverse_path_test.py deleted file mode 100755 index 557769352..000000000 --- a/scripts/reverse_path_test.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env python - -from __future__ import print_function - -import os -import shutil -import tempfile -import unittest - -from reverse_path import reverse_path - -class TestReversePath(unittest.TestCase): - def setUp(self): - self.tmpdir = tempfile.mkdtemp() - os.chdir(self.tmpdir) - - def tearDown(self): - shutil.rmtree(self.tmpdir) - - def test_absolute(self): - self.assertEqual(self.tmpdir, reverse_path('/out')) - - def test_relative(self): - os.mkdir('a') - os.mkdir('b') - - self.assertEqual('..', reverse_path('a')) - - os.chdir('a') - self.assertEqual('a', reverse_path('..')) - self.assertEqual('.', reverse_path('../a')) - self.assertEqual('../a', reverse_path('../b')) - - def test_symlink(self): - os.mkdir('b') - os.symlink('b', 'a') - os.mkdir('b/d') - os.symlink('b/d', 'c') - - self.assertEqual('..', reverse_path('a')) - self.assertEqual('..', reverse_path('b')) - self.assertEqual(self.tmpdir, reverse_path('c')) - self.assertEqual('../..', reverse_path('b/d')) - - -if __name__ == '__main__': - unittest.main() |