aboutsummaryrefslogtreecommitdiff
path: root/tests/data/acpi/disassemle-aml.py
blob: 0398fada63e36ebfe22aac102f2d44d68205dd8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python

import os, re
root = "tests/data/acpi"
for machine in os.listdir(root):
    machine_root = os.path.join(root, machine)
    if not os.path.isdir(machine_root):
        continue
    files = os.listdir(machine_root):
    for file in files:
        if file.endswith(".dsl"):
            continue
        extension_prefix = "^[^.]*\."
        if re.match(extension_prefix, file):
            variant = re.sub(extension_prefix, "", file)


for dirpath, dirnames, filenames in os.walk("tests/data/acpi"):
    for file in files:
        if file.endswith(".txt"):
             print(os.path.join(root, file))