1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/Scripts
Jason W Kim ccbc75257a Fixing r116753 r116756 r116777
The failures in r116753 r116756 were caused by a python issue -
Python likes to append 'L' suffix to stringified numbers if the number
is larger than a machine int. Unfortunately, this causes a divergence of
behavior between 32 and 64 bit python versions.

I re-crafted elf-dump/common_dump to take care of these issues by:

1. always printing 0x (makes for easy sed/regex)
2. always print fixed length (exactly 2 + numBits/4 digits long)
   by mod ((2^numBits) - 1)
3. left-padded with '0'

There is a residual common routine that is also used by
macho-dump (dataToHex) , so I left the 'section_data' test values alone.

llvm-svn: 116823
2010-10-19 17:39:10 +00:00
..
coff-dump.py Fix Formatting. 2010-10-08 03:17:21 +00:00
coff-dump.py.bat test: Fix binary stdin issues with coff-dump on Windows. 2010-10-07 06:29:21 +00:00
common_dump.py Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
elf-dump Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
elf-dump.bat Add an elf-dumper utility. 2010-09-09 15:00:41 +00:00
ignore Revert r98892. BSD systems may not have bash installed at all. 2010-03-19 00:32:11 +00:00
macho-dump Change section_data dumping to print hex numbers instead of using 2010-09-11 15:25:58 +00:00
macho-dump.bat tests: Run macho-dump with binary unbuffered streams on Windows, I can't find a Python 2.6 way to change stdin to binary. 2010-06-12 17:05:28 +00:00
README.txt

This directory contains scripts which are used by the TestRunner style
tests, which allows them to be simpler and more direct.