Skip to content

Commit

Permalink
Merge pull request #92 from turol/linux-tests
Browse files Browse the repository at this point in the history
Fix test runner on Linux
  • Loading branch information
vlutas authored Jul 16, 2024
2 parents d9d60a8 + 3b620c2 commit a2d25ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bddisasm_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ The `test_all.py` script will iterate all the test folders, and it will run bddi
The result file will be compared with the output of the test run. If they are not the same, the test will fail.
Note that bddisasm will be run with the `-exi` option, in order to dump all possible information about the instructions.

NOTE: This test will assume `disasm` is in the path. Works on Windows only.
NOTE: This test will assume `disasm` is in the path.
6 changes: 3 additions & 3 deletions bddisasm_test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_dir(dir):
global total_tests
global failed_tests

for f in glob.glob('%s\\*.test' % dir):
for f in glob.glob('%s/*.test' % dir):
base, _ = os.path.splitext(f)

tst_file = f
Expand Down Expand Up @@ -107,7 +107,7 @@ def test_dir(dir):
os.remove(tmp_file)

def regenerate(dir):
for f in glob.glob('%s\\*.test' % dir):
for f in glob.glob('%s/*.test' % dir):
base, _ = os.path.splitext(f)

tst_file = f
Expand All @@ -128,7 +128,7 @@ def regenerate(dir):
os.system('disasm -exi %s -f %s >%s' % (mod, tst_file, res_file))

if __name__ == "__main__":
for dn in glob.glob("x86\\*"):
for dn in glob.glob("x86/*"):
if not os.path.isdir(dn):
continue
if "regenerate" in sys.argv:
Expand Down

0 comments on commit a2d25ff

Please sign in to comment.