Tristan Van Berkom pushed to branch bst-1.2 at BuildStream / buildstream
Commits:
-
0bcfdfb9
by Sam Thursfield at 2018-08-22T11:36:29Z
-
b567666d
by Tristan Van Berkom at 2018-08-22T13:04:22Z
9 changed files:
- buildstream/data/projectconfig.yaml
- tests/cachekey/project/elements/build1.expected
- tests/cachekey/project/elements/build2.expected
- tests/cachekey/project/target.expected
- tests/examples/autotools.py
- tests/examples/flatpak-autotools.py
- tests/integration/autotools.py
- tests/integration/cmake.py
- tests/integration/compose.py
Changes:
... | ... | @@ -72,7 +72,7 @@ variables: |
72 | 72 |
# Generic implementation for stripping debugging symbols
|
73 | 73 |
strip-binaries: |
|
74 | 74 |
|
75 |
- find "%{install-root}" -type f \
|
|
75 |
+ cd "%{install-root}" && find -type f \
|
|
76 | 76 |
'(' -perm -111 -o -name '*.so*' \
|
77 | 77 |
-o -name '*.cmxs' -o -name '*.node' ')' \
|
78 | 78 |
-exec sh -ec \
|
... | ... | @@ -80,7 +80,7 @@ variables: |
80 | 80 |
if [ "$hdr" != "$(printf \\x7fELF)" ]; then
|
81 | 81 |
exit 0
|
82 | 82 |
fi
|
83 |
- debugfile="%{install-root}%{debugdir}/$(basename "$1")"
|
|
83 |
+ debugfile="%{install-root}%{debugdir}/$1"
|
|
84 | 84 |
mkdir -p "$(dirname "$debugfile")"
|
85 | 85 |
objcopy %{objcopy-extract-args} "$1" "$debugfile"
|
86 | 86 |
chmod 644 "$debugfile"
|
1 |
-e7de3dd12a1e5307e07859ddf2192443a0ccb1ff48e0adcc6c18f9edc2bd0d7d
|
|
\ No newline at end of file | ||
1 |
+afab4c1a67d1e06489083fa1559bda0b2c8df9b7bc239820ed7cdab30c988a4e
|
|
\ No newline at end of file |
1 |
-d74957e0f20a7664e9ceed6cc2ba6c140bd8d8d0712d02066feb442638e8e6ed
|
|
\ No newline at end of file | ||
1 |
+47395a4e6c86372b181ad1fd6443e11b1ab54c480b7be5e5fe816d84eec3b369
|
|
\ No newline at end of file |
1 |
-01f611e61e948f32035b659d33cdae662d863c99051d0e6746f9c5626138655f
|
|
\ No newline at end of file | ||
1 |
+46f48e5c0ff52370ff0cf2bb23bd2c79da23141e6c17b9aa720f7d97b7194340
|
|
\ No newline at end of file |
... | ... | @@ -28,7 +28,9 @@ def test_autotools_build(cli, tmpdir, datafiles): |
28 | 28 |
|
29 | 29 |
assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
|
30 | 30 |
'/usr/share', '/usr/lib/debug',
|
31 |
- '/usr/lib/debug/hello', '/usr/bin/hello',
|
|
31 |
+ '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
|
|
32 |
+ '/usr/lib/debug/usr/bin/hello',
|
|
33 |
+ '/usr/bin/hello',
|
|
32 | 34 |
'/usr/share/doc', '/usr/share/doc/amhello',
|
33 | 35 |
'/usr/share/doc/amhello/README'])
|
34 | 36 |
|
... | ... | @@ -47,8 +47,10 @@ def test_autotools_build(cli, tmpdir, datafiles): |
47 | 47 |
|
48 | 48 |
assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
|
49 | 49 |
'/usr/share', '/usr/lib/debug',
|
50 |
- '/usr/lib/debug/hello', '/usr/bin/hello',
|
|
51 |
- '/usr/share/doc', '/usr/share/doc/amhello',
|
|
50 |
+ '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
|
|
51 |
+ '/usr/lib/debug/usr/bin/hello',
|
|
52 |
+ '/usr/bin/hello', '/usr/share/doc',
|
|
53 |
+ '/usr/share/doc/amhello',
|
|
52 | 54 |
'/usr/share/doc/amhello/README'])
|
53 | 55 |
|
54 | 56 |
|
... | ... | @@ -31,8 +31,10 @@ def test_autotools_build(cli, tmpdir, datafiles): |
31 | 31 |
|
32 | 32 |
assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
|
33 | 33 |
'/usr/share', '/usr/lib/debug',
|
34 |
- '/usr/lib/debug/hello', '/usr/bin/hello',
|
|
35 |
- '/usr/share/doc', '/usr/share/doc/amhello',
|
|
34 |
+ '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
|
|
35 |
+ '/usr/lib/debug/usr/bin/hello',
|
|
36 |
+ '/usr/bin/hello', '/usr/share/doc',
|
|
37 |
+ '/usr/share/doc/amhello',
|
|
36 | 38 |
'/usr/share/doc/amhello/README'])
|
37 | 39 |
|
38 | 40 |
|
... | ... | @@ -27,7 +27,9 @@ def test_cmake_build(cli, tmpdir, datafiles): |
27 | 27 |
assert result.exit_code == 0
|
28 | 28 |
|
29 | 29 |
assert_contains(checkout, ['/usr', '/usr/bin', '/usr/bin/hello',
|
30 |
- '/usr/lib/debug', '/usr/lib/debug/hello'])
|
|
30 |
+ '/usr/lib/debug', '/usr/lib/debug/usr',
|
|
31 |
+ '/usr/lib/debug/usr/bin',
|
|
32 |
+ '/usr/lib/debug/usr/bin/hello'])
|
|
31 | 33 |
|
32 | 34 |
|
33 | 35 |
@pytest.mark.datafiles(DATA_DIR)
|
... | ... | @@ -39,7 +39,8 @@ def create_compose_element(name, path, config={}): |
39 | 39 |
# Test flat inclusion
|
40 | 40 |
([], [], ['/usr', '/usr/lib', '/usr/bin',
|
41 | 41 |
'/usr/share', '/usr/lib/debug',
|
42 |
- '/usr/lib/debug/hello', '/usr/bin/hello',
|
|
42 |
+ '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
|
|
43 |
+ '/usr/lib/debug/usr/bin/hello', '/usr/bin/hello',
|
|
43 | 44 |
'/usr/share/doc', '/usr/share/doc/amhello',
|
44 | 45 |
'/usr/share/doc/amhello/README',
|
45 | 46 |
'/tests', '/tests/test']),
|
... | ... | @@ -53,13 +54,17 @@ def create_compose_element(name, path, config={}): |
53 | 54 |
'/usr/share/doc/amhello/README']),
|
54 | 55 |
# Test with only runtime excluded
|
55 | 56 |
([], ['runtime'], ['/usr', '/usr/lib', '/usr/share',
|
56 |
- '/usr/lib/debug', '/usr/lib/debug/hello',
|
|
57 |
+ '/usr/lib/debug', '/usr/lib/debug/usr',
|
|
58 |
+ '/usr/lib/debug/usr/bin',
|
|
59 |
+ '/usr/lib/debug/usr/bin/hello',
|
|
57 | 60 |
'/usr/share/doc', '/usr/share/doc/amhello',
|
58 | 61 |
'/usr/share/doc/amhello/README',
|
59 | 62 |
'/tests', '/tests/test']),
|
60 | 63 |
# Test with runtime and doc excluded
|
61 | 64 |
([], ['runtime', 'doc'], ['/usr', '/usr/lib', '/usr/share',
|
62 |
- '/usr/lib/debug', '/usr/lib/debug/hello',
|
|
65 |
+ '/usr/lib/debug', '/usr/lib/debug/usr',
|
|
66 |
+ '/usr/lib/debug/usr/bin',
|
|
67 |
+ '/usr/lib/debug/usr/bin/hello',
|
|
63 | 68 |
'/tests', '/tests/test']),
|
64 | 69 |
# Test with runtime simultaneously in- and excluded
|
65 | 70 |
(['runtime'], ['runtime'], ['/usr', '/usr/lib', '/usr/share']),
|
... | ... | @@ -72,7 +77,8 @@ def create_compose_element(name, path, config={}): |
72 | 77 |
# Test excluding a custom 'test' domain
|
73 | 78 |
([], ['test'], ['/usr', '/usr/lib', '/usr/bin',
|
74 | 79 |
'/usr/share', '/usr/lib/debug',
|
75 |
- '/usr/lib/debug/hello', '/usr/bin/hello',
|
|
80 |
+ '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
|
|
81 |
+ '/usr/lib/debug/usr/bin/hello', '/usr/bin/hello',
|
|
76 | 82 |
'/usr/share/doc', '/usr/share/doc/amhello',
|
77 | 83 |
'/usr/share/doc/amhello/README'])
|
78 | 84 |
])
|