Skip to content
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2c8b98e
Comment out all failed tests
HarDToBelieve Feb 14, 2019
d626613
test travis
HarDToBelieve Feb 14, 2019
6fa07e4
Update .travis.yml
HarDToBelieve Feb 14, 2019
6acb679
Update .travis.yml
HarDToBelieve Feb 14, 2019
5f514b2
Update .travis.yml
HarDToBelieve Feb 14, 2019
2e63c32
Update .travis.yml
HarDToBelieve Feb 14, 2019
22b3fcc
Update .travis.yml
HarDToBelieve Feb 14, 2019
69396e8
Update .travis.yml
HarDToBelieve Feb 14, 2019
fcfe6b2
remove duplicate comments
HarDToBelieve Feb 14, 2019
dc33e15
Merge branch 'master' of https://github.com/HarDToBelieve/capstone
HarDToBelieve Feb 14, 2019
912ae41
update travis
HarDToBelieve Feb 14, 2019
7f1b936
update travis
HarDToBelieve Feb 14, 2019
0ad622a
update travis
HarDToBelieve Feb 14, 2019
2b77be9
fix Makefile
HarDToBelieve Feb 14, 2019
e4a18a6
fix travis
HarDToBelieve Feb 14, 2019
69a47f5
fix travis
HarDToBelieve Feb 14, 2019
a681622
fix travis
HarDToBelieve Feb 14, 2019
7e7c8bd
test failed issue
HarDToBelieve Feb 14, 2019
afa2c79
Merge remote-tracking branch 'upstream/master'
HarDToBelieve Feb 14, 2019
9f9875c
fix mode f in report
HarDToBelieve Feb 14, 2019
b72b1b4
test travis
HarDToBelieve Feb 14, 2019
9a96f80
testing travis
HarDToBelieve Feb 14, 2019
3f3a2bc
fix build_cstest.sh
HarDToBelieve Feb 14, 2019
2b8e254
comment debug
HarDToBelieve Feb 14, 2019
220c40d
Update .travis.yml
aquynh Feb 14, 2019
3a8f258
Update build_cstest.sh
aquynh Feb 14, 2019
d9213ef
cstest: fix build_cstest.sh
aquynh Feb 14, 2019
7c6d044
cstest: install cmocka into /usr/local for MacOS
aquynh Feb 14, 2019
a24b599
cstest: fix install path for MacOS
aquynh Feb 14, 2019
7f7b85a
cstest: try to fail MC X86
aquynh Feb 14, 2019
4ba06f9
cstest: correct issues.cs
aquynh Feb 14, 2019
deab0ae
cstest: correct MC X86 test
aquynh Feb 14, 2019
e807497
add author's name to head of files
HarDToBelieve Feb 14, 2019
a0644c1
coding style
HarDToBelieve Feb 14, 2019
9bd8de0
shorten issue
HarDToBelieve Feb 14, 2019
275f309
remove space
HarDToBelieve Feb 14, 2019
de9d8c9
Merge branch 'master' into master
HarDToBelieve Feb 14, 2019
60049e8
fix conflict
HarDToBelieve Feb 14, 2019
c529e3c
erge branch 'master' of https://github.com/HarDToBelieve/capstone
HarDToBelieve Feb 14, 2019
162d93a
fix corner case
HarDToBelieve Feb 14, 2019
5c9b996
Merge remote-tracking branch 'upstream/master'
HarDToBelieve Feb 26, 2019
5223634
fix mode "c" in report_cstest
HarDToBelieve Feb 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions suite/cstest/cstest_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,18 @@ def get_report_file(toolpath, filepath, getDetails, cmt_out):
print '[-] Detailed report for {}:\n'.format(filepath)
for c, f, d in details:
print '\t[+] {}: {}\n\t\t{}\n'.format(f, c, d)
print '\n'
return 0
elif len(details) > 0:
for c, f, d in details:
if len(f) > 0 and cmt_out is True:
tmp_cmd = ['sed', '-E', '-i.bak', 's/({})(.*)/\/\/ \\1\\2/g'.format(c), filepath]
sed_proc = Popen(tmp_cmd, stdout=PIPE, stderr=PIPE)
sed_proc.communicate()
tmp_cmd2 = ['rm', '-f', filepath + '.bak']
rm_proc = Popen(tmp_cmd2, stdout=PIPE, stderr=PIPE)
rm_proc.communicate()
print '\n'
return 0
elif len(details) > 0:

return 0;
return 1

Expand Down