summaryrefslogtreecommitdiff
path: root/libnm/tests
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-02-23 14:52:05 +0100
committerLubomir Rintel <lkundrak@v3.sk>2018-02-23 19:47:19 +0100
commitf7805ab602df78b5828ef361988d1c4559dd5de2 (patch)
treea6f0869ffbc405f87ef3b46c5d879319e67fed0a /libnm/tests
parent280d095fdffd569c64bc7516cce1a2ea8751f5f9 (diff)
downloadNetworkManager-f7805ab602df78b5828ef361988d1c4559dd5de2.tar.gz
libnm/utils: deal with the square brackets on producr/vendor fixup
If there's a [<string>] that survived the substitution, then the string is supposed to be a short form that is generally preferrable. That's great in theory, but actually it's rather often pure garbage for product names. Let's prefer it just for vendors and provide an option to drop it (will be useful for fixing up product names).
Diffstat (limited to 'libnm/tests')
-rw-r--r--libnm/tests/test-general.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnm/tests/test-general.c b/libnm/tests/test-general.c
index 7a82845ad3..2483579bed 100644
--- a/libnm/tests/test-general.c
+++ b/libnm/tests/test-general.c
@@ -69,6 +69,7 @@ test_fixup_vendor_string (void)
T (nm_utils_fixup_vendor_string, "ADMtek", "ADMtek");
T (nm_utils_fixup_vendor_string, "ADMtek, Inc.", "ADMtek");
T (nm_utils_fixup_vendor_string, "ADS Technologies, Inc.", "ADS");
+ T (nm_utils_fixup_vendor_string, "Advanced Micro Devices, Inc. [AMD]", "AMD");
T (nm_utils_fixup_vendor_string, "Advance Multimedia Internet Technology Inc. (AMIT)", "Advance");
T (nm_utils_fixup_vendor_string, "AEI", "AEI");
T (nm_utils_fixup_vendor_string, "Airprime, Incorporated", "Airprime");
@@ -198,6 +199,7 @@ test_fixup_vendor_string (void)
T (nm_utils_fixup_vendor_string, "Logitec Corp.", "Logitec");
T (nm_utils_fixup_vendor_string, "Logitech, Inc.", "Logitech");
T (nm_utils_fixup_vendor_string, "LSI Corporation", "LSI");
+ T (nm_utils_fixup_vendor_string, "Macronix, Inc. [MXIC]", "MXIC");
T (nm_utils_fixup_vendor_string, "Marvell Semiconductor, Inc.", "Marvell");
T (nm_utils_fixup_vendor_string, "Marvell Technology Group Ltd.", "Marvell");
T (nm_utils_fixup_vendor_string, "MediaTek Inc.", "MediaTek");
@@ -208,6 +210,7 @@ test_fixup_vendor_string (void)
T (nm_utils_fixup_vendor_string, "Microcomputer Systems (M) Son", "Microcomputer");
T (nm_utils_fixup_vendor_string, "Microsoft Corp.", "Microsoft");
T (nm_utils_fixup_vendor_string, "Microsoft Corporation", "Microsoft");
+ T (nm_utils_fixup_vendor_string, "Micro-Star International Co., Ltd. [MSI]", "MSI");
T (nm_utils_fixup_vendor_string, "Micro Star International", "Micro Star");
T (nm_utils_fixup_vendor_string, "Mobility", "Mobility");
T (nm_utils_fixup_vendor_string, "MosChip Semiconductor", "MosChip");
@@ -282,6 +285,7 @@ test_fixup_vendor_string (void)
T (nm_utils_fixup_vendor_string, "Sierra Wireless, Inc.", "Sierra Wireless");
T (nm_utils_fixup_vendor_string, "Silicom", "Silicom");
T (nm_utils_fixup_vendor_string, "Silicon Graphics Intl. Corp.", "Silicon Graphics");
+ T (nm_utils_fixup_vendor_string, "Silicon Integrated Systems [SiS]", "SiS");
T (nm_utils_fixup_vendor_string, "Sitecom Europe B.V.", "Sitecom");
T (nm_utils_fixup_vendor_string, "Sitecom", "Sitecom");
T (nm_utils_fixup_vendor_string, "smartBridges, Inc.", "smartBridges");
@@ -290,6 +294,7 @@ test_fixup_vendor_string (void)
T (nm_utils_fixup_vendor_string, "Sony Corp.", "Sony");
T (nm_utils_fixup_vendor_string, "SpeedStream", "SpeedStream");
T (nm_utils_fixup_vendor_string, "Sphairon Access Systems GmbH", "Sphairon");
+ T (nm_utils_fixup_vendor_string, "Standard Microsystems Corp [SMC]", "SMC");
T (nm_utils_fixup_vendor_string, "Standard Microsystems Corp.", "Standard");
T (nm_utils_fixup_vendor_string, "STMicroelectronics", "STMicroelectronics");
T (nm_utils_fixup_vendor_string, "Surecom Technology Corp.", "Surecom");