Loading tools/compliance/cmd/dumpgraph/dumpgraph_test.go +3 −3 Original line number Diff line number Diff line Loading @@ -341,13 +341,13 @@ func Test_plaintext(t *testing.T) { roots: []string{"highest.apex.meta_lic"}, ctx: context{stripPrefix: []string{"testdata/restricted/"}, labelConditions: true}, expectedOut: []string{ "bin/bin1.meta_lic:notice lib/liba.so.meta_lic:restricted_allows_dynamic_linking static", "bin/bin1.meta_lic:notice lib/liba.so.meta_lic:restricted_if_statically_linked static", "bin/bin1.meta_lic:notice lib/libc.a.meta_lic:reciprocal static", "bin/bin2.meta_lic:notice lib/libb.so.meta_lic:restricted dynamic", "bin/bin2.meta_lic:notice lib/libd.so.meta_lic:notice dynamic", "highest.apex.meta_lic:notice bin/bin1.meta_lic:notice static", "highest.apex.meta_lic:notice bin/bin2.meta_lic:notice static", "highest.apex.meta_lic:notice lib/liba.so.meta_lic:restricted_allows_dynamic_linking static", "highest.apex.meta_lic:notice lib/liba.so.meta_lic:restricted_if_statically_linked static", "highest.apex.meta_lic:notice lib/libb.so.meta_lic:restricted static", }, }, Loading Loading @@ -1011,7 +1011,7 @@ func Test_graphviz(t *testing.T) { matchTarget("bin/bin1.meta_lic", "notice"), matchTarget("bin/bin2.meta_lic", "notice"), matchTarget("highest.apex.meta_lic", "notice"), matchTarget("lib/liba.so.meta_lic", "restricted_allows_dynamic_linking"), matchTarget("lib/liba.so.meta_lic", "restricted_if_statically_linked"), matchTarget("lib/libb.so.meta_lic", "restricted"), matchTarget("lib/libc.a.meta_lic", "reciprocal"), matchTarget("lib/libd.so.meta_lic", "notice"), Loading tools/compliance/cmd/dumpresolutions/dumpresolutions_test.go +107 −107 File changed.Preview size limit exceeded, changes collapsed. Show changes tools/compliance/cmd/listshare/listshare_test.go +11 −11 Original line number Diff line number Diff line Loading @@ -187,7 +187,7 @@ func Test(t *testing.T) { }, { project: "device/library", conditions: []string{"restricted_allows_dynamic_linking"}, conditions: []string{"restricted_if_statically_linked"}, }, { project: "dynamic/binary", Loading @@ -196,14 +196,14 @@ func Test(t *testing.T) { { project: "static/binary", conditions: []string{ "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "static/library", conditions: []string{ "reciprocal", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, }, Loading @@ -219,7 +219,7 @@ func Test(t *testing.T) { }, { project: "device/library", conditions: []string{"restricted_allows_dynamic_linking"}, conditions: []string{"restricted_if_statically_linked"}, }, { project: "dynamic/binary", Loading @@ -228,14 +228,14 @@ func Test(t *testing.T) { { project: "static/binary", conditions: []string{ "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "static/library", conditions: []string{ "reciprocal", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, }, Loading @@ -249,14 +249,14 @@ func Test(t *testing.T) { project: "device/library", conditions: []string{ "restricted", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "distributable/application", conditions: []string{ "restricted", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, }, Loading @@ -269,20 +269,20 @@ func Test(t *testing.T) { { project: "device/library", conditions: []string{ "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "static/binary", conditions: []string{ "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "static/library", conditions: []string{ "reciprocal", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, }, Loading tools/compliance/cmd/rtrace/rtrace_test.go +74 −74 Original line number Diff line number Diff line Loading @@ -168,7 +168,7 @@ func Test_plaintext(t *testing.T) { name: "apex", roots: []string{"highest.apex.meta_lic"}, expectedOut: []string{ "testdata/restricted/lib/liba.so.meta_lic restricted_allows_dynamic_linking", "testdata/restricted/lib/liba.so.meta_lic restricted_if_statically_linked", "testdata/restricted/lib/libb.so.meta_lic restricted", }, }, Loading @@ -180,7 +180,7 @@ func Test_plaintext(t *testing.T) { sources: []string{"testdata/restricted/bin/bin1.meta_lic"}, stripPrefix: []string{"testdata/restricted/"}, }, expectedOut: []string{"lib/liba.so.meta_lic restricted_allows_dynamic_linking"}, expectedOut: []string{"lib/liba.so.meta_lic restricted_if_statically_linked"}, }, { condition: "restricted", Loading @@ -197,7 +197,7 @@ func Test_plaintext(t *testing.T) { name: "container", roots: []string{"container.zip.meta_lic"}, expectedOut: []string{ "testdata/restricted/lib/liba.so.meta_lic restricted_allows_dynamic_linking", "testdata/restricted/lib/liba.so.meta_lic restricted_if_statically_linked", "testdata/restricted/lib/libb.so.meta_lic restricted", }, }, Loading @@ -205,13 +205,13 @@ func Test_plaintext(t *testing.T) { condition: "restricted", name: "application", roots: []string{"application.meta_lic"}, expectedOut: []string{"testdata/restricted/lib/liba.so.meta_lic restricted_allows_dynamic_linking"}, expectedOut: []string{"testdata/restricted/lib/liba.so.meta_lic restricted_if_statically_linked"}, }, { condition: "restricted", name: "binary", roots: []string{"bin/bin1.meta_lic"}, expectedOut: []string{"testdata/restricted/lib/liba.so.meta_lic restricted_allows_dynamic_linking"}, expectedOut: []string{"testdata/restricted/lib/liba.so.meta_lic restricted_if_statically_linked"}, }, { condition: "restricted", Loading tools/compliance/cmd/testdata/proprietary/bin/bin3.meta_lic +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ package_name: "Compiler" module_classes: "EXECUTABLES" projects: "standalone/binary" license_kinds: "SPDX-license-identifier-LGPL-2.0" license_conditions: "restricted_allows_dynamic_linking" license_conditions: "restricted_if_statically_linked" license_texts: "testdata/restricted/RESTRICTED_LICENSE" is_container: false built: "out/target/product/fictional/obj/EXECUTABLES/bin_intermediates/bin3" Loading Loading
tools/compliance/cmd/dumpgraph/dumpgraph_test.go +3 −3 Original line number Diff line number Diff line Loading @@ -341,13 +341,13 @@ func Test_plaintext(t *testing.T) { roots: []string{"highest.apex.meta_lic"}, ctx: context{stripPrefix: []string{"testdata/restricted/"}, labelConditions: true}, expectedOut: []string{ "bin/bin1.meta_lic:notice lib/liba.so.meta_lic:restricted_allows_dynamic_linking static", "bin/bin1.meta_lic:notice lib/liba.so.meta_lic:restricted_if_statically_linked static", "bin/bin1.meta_lic:notice lib/libc.a.meta_lic:reciprocal static", "bin/bin2.meta_lic:notice lib/libb.so.meta_lic:restricted dynamic", "bin/bin2.meta_lic:notice lib/libd.so.meta_lic:notice dynamic", "highest.apex.meta_lic:notice bin/bin1.meta_lic:notice static", "highest.apex.meta_lic:notice bin/bin2.meta_lic:notice static", "highest.apex.meta_lic:notice lib/liba.so.meta_lic:restricted_allows_dynamic_linking static", "highest.apex.meta_lic:notice lib/liba.so.meta_lic:restricted_if_statically_linked static", "highest.apex.meta_lic:notice lib/libb.so.meta_lic:restricted static", }, }, Loading Loading @@ -1011,7 +1011,7 @@ func Test_graphviz(t *testing.T) { matchTarget("bin/bin1.meta_lic", "notice"), matchTarget("bin/bin2.meta_lic", "notice"), matchTarget("highest.apex.meta_lic", "notice"), matchTarget("lib/liba.so.meta_lic", "restricted_allows_dynamic_linking"), matchTarget("lib/liba.so.meta_lic", "restricted_if_statically_linked"), matchTarget("lib/libb.so.meta_lic", "restricted"), matchTarget("lib/libc.a.meta_lic", "reciprocal"), matchTarget("lib/libd.so.meta_lic", "notice"), Loading
tools/compliance/cmd/dumpresolutions/dumpresolutions_test.go +107 −107 File changed.Preview size limit exceeded, changes collapsed. Show changes
tools/compliance/cmd/listshare/listshare_test.go +11 −11 Original line number Diff line number Diff line Loading @@ -187,7 +187,7 @@ func Test(t *testing.T) { }, { project: "device/library", conditions: []string{"restricted_allows_dynamic_linking"}, conditions: []string{"restricted_if_statically_linked"}, }, { project: "dynamic/binary", Loading @@ -196,14 +196,14 @@ func Test(t *testing.T) { { project: "static/binary", conditions: []string{ "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "static/library", conditions: []string{ "reciprocal", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, }, Loading @@ -219,7 +219,7 @@ func Test(t *testing.T) { }, { project: "device/library", conditions: []string{"restricted_allows_dynamic_linking"}, conditions: []string{"restricted_if_statically_linked"}, }, { project: "dynamic/binary", Loading @@ -228,14 +228,14 @@ func Test(t *testing.T) { { project: "static/binary", conditions: []string{ "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "static/library", conditions: []string{ "reciprocal", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, }, Loading @@ -249,14 +249,14 @@ func Test(t *testing.T) { project: "device/library", conditions: []string{ "restricted", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "distributable/application", conditions: []string{ "restricted", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, }, Loading @@ -269,20 +269,20 @@ func Test(t *testing.T) { { project: "device/library", conditions: []string{ "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "static/binary", conditions: []string{ "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, { project: "static/library", conditions: []string{ "reciprocal", "restricted_allows_dynamic_linking", "restricted_if_statically_linked", }, }, }, Loading
tools/compliance/cmd/rtrace/rtrace_test.go +74 −74 Original line number Diff line number Diff line Loading @@ -168,7 +168,7 @@ func Test_plaintext(t *testing.T) { name: "apex", roots: []string{"highest.apex.meta_lic"}, expectedOut: []string{ "testdata/restricted/lib/liba.so.meta_lic restricted_allows_dynamic_linking", "testdata/restricted/lib/liba.so.meta_lic restricted_if_statically_linked", "testdata/restricted/lib/libb.so.meta_lic restricted", }, }, Loading @@ -180,7 +180,7 @@ func Test_plaintext(t *testing.T) { sources: []string{"testdata/restricted/bin/bin1.meta_lic"}, stripPrefix: []string{"testdata/restricted/"}, }, expectedOut: []string{"lib/liba.so.meta_lic restricted_allows_dynamic_linking"}, expectedOut: []string{"lib/liba.so.meta_lic restricted_if_statically_linked"}, }, { condition: "restricted", Loading @@ -197,7 +197,7 @@ func Test_plaintext(t *testing.T) { name: "container", roots: []string{"container.zip.meta_lic"}, expectedOut: []string{ "testdata/restricted/lib/liba.so.meta_lic restricted_allows_dynamic_linking", "testdata/restricted/lib/liba.so.meta_lic restricted_if_statically_linked", "testdata/restricted/lib/libb.so.meta_lic restricted", }, }, Loading @@ -205,13 +205,13 @@ func Test_plaintext(t *testing.T) { condition: "restricted", name: "application", roots: []string{"application.meta_lic"}, expectedOut: []string{"testdata/restricted/lib/liba.so.meta_lic restricted_allows_dynamic_linking"}, expectedOut: []string{"testdata/restricted/lib/liba.so.meta_lic restricted_if_statically_linked"}, }, { condition: "restricted", name: "binary", roots: []string{"bin/bin1.meta_lic"}, expectedOut: []string{"testdata/restricted/lib/liba.so.meta_lic restricted_allows_dynamic_linking"}, expectedOut: []string{"testdata/restricted/lib/liba.so.meta_lic restricted_if_statically_linked"}, }, { condition: "restricted", Loading
tools/compliance/cmd/testdata/proprietary/bin/bin3.meta_lic +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ package_name: "Compiler" module_classes: "EXECUTABLES" projects: "standalone/binary" license_kinds: "SPDX-license-identifier-LGPL-2.0" license_conditions: "restricted_allows_dynamic_linking" license_conditions: "restricted_if_statically_linked" license_texts: "testdata/restricted/RESTRICTED_LICENSE" is_container: false built: "out/target/product/fictional/obj/EXECUTABLES/bin_intermediates/bin3" Loading