update windows version history

This commit is contained in:
Axel Kohlmeyer
2022-05-29 02:01:21 -04:00
parent 4c36c79652
commit 90730f0d3c
2 changed files with 7 additions and 0 deletions

View File

@ -195,6 +195,8 @@ std::string platform::os_info()
if (build == "6002") {
buf = "Windows Vista";
} else if (build == "6003") {
buf = "Windows Server 2008";
} else if (build == "7601") {
buf = "Windows 7";
} else if (build == "9200") {
@ -227,8 +229,12 @@ std::string platform::os_info()
buf = "Windows 10 21H1";
} else if (build == "19044") {
buf = "Windows 10 21H2";
} else if (build == "20348") {
buf = "Windows Server 2022";
} else if (build == "22000") {
buf = "Windows 11 21H2";
} else if (build == "22621") {
buf = "Windows 11 22H2";
} else {
const char *entry = "ProductName";
RegGetValue(HKEY_LOCAL_MACHINE, subkey, entry, RRF_RT_REG_SZ, nullptr, &value,

View File

@ -38,6 +38,7 @@ class PythonCapabilities(unittest.TestCase):
system = platform.system()
osinfo = self.lmp.get_os_info()
print("System: %s LAMMPS OS Info: %s" % (system, osinfo))
self.assertEqual(osinfo.find(system),0)
def test_has_gzip_support(self):