rlib/rvmprof/test/test_file.py::test_same_file
def test_same_file():
shared = RVMPROF.join('src', 'shared')
files = get_list_of_files(shared)
assert files, 'cannot find any C file, probably the directory is wrong?'
no_matches = []
print
for file in files:
path = file.relto(shared)
url = github_raw_file("vmprof/vmprof-python", "src/%s" % path)
source = urllib2.urlopen(url).read()
dest = file.read()
shortname = file.relto(RVMPROF)
if source == dest:
print '%s matches' % shortname
else:
print '%s does NOT match' % shortname
no_matches.append(file)
#
if no_matches:
print
print 'The following file did NOT match'
for f in no_matches:
print ' ', f.relto(RVMPROF)
> raise AssertionError("some files were updated on github, "
"but were not copied here")
E AssertionError: some files were updated on github, but were not copied here
rlib/rvmprof/test/test_file.py:47: AssertionError
---------- Captured stdout call ----------
src/shared/libbacktrace/internal.h matches
src/shared/libbacktrace/print.c matches
src/shared/libbacktrace/btest.c matches
src/shared/libbacktrace/posix.c matches
src/shared/libbacktrace/backtrace.h matches
src/shared/libbacktrace/mmap.c matches
src/shared/libbacktrace/state.c matches
src/shared/libbacktrace/sort.c matches
src/shared/libbacktrace/atomic.c matches
src/shared/libbacktrace/ansidecl.h matches
src/shared/libbacktrace/alloc.c matches
src/shared/libbacktrace/read.c matches
src/shared/libbacktrace/backtrace-supported.h matches
src/shared/libbacktrace/unknown.c matches
src/shared/libbacktrace/backtrace.c matches
src/shared/libbacktrace/nounwind.c matches
src/shared/libbacktrace/fileline.c matches
src/shared/libbacktrace/hashtab.h matches
src/shared/libbacktrace/filenames.h matches
src/shared/libbacktrace/simple.c matches
src/shared/libbacktrace/dwarf.c matches
src/shared/libbacktrace/dwarf2.h matches
src/shared/libbacktrace/elf.c matches
src/shared/libbacktrace/mmapio.c matches
src/shared/libbacktrace/stest.c matches
src/shared/libbacktrace/pecoff.c matches
src/shared/unwind/vmprof_unwind.h matches
src/shared/msiinttypes/inttypes.h matches
src/shared/msiinttypes/stdint.h matches
src/shared/compat.c matches
src/shared/_vmprof.c matches
src/shared/vmprof_get_custom_offset.h matches
src/shared/machine.h matches
src/shared/vmprof_mt.c matches
src/shared/vmprof_getpc.h matches
src/shared/vmprof_config.h matches
src/shared/vmprof_memory.c matches
src/shared/trampoline.h matches
src/shared/vmprof_win.c does NOT match
src/shared/vmprof_unix.c matches
src/shared/vmprof_common.c matches
src/shared/symboltable.h matches
src/shared/vmp_stack.c matches
src/shared/khash.h matches
src/shared/machine.c matches
src/shared/vmprof_mt.h matches
src/shared/compat.h matches
src/shared/_vmprof.h matches
src/shared/trampoline.c matches
src/shared/vmprof_win.h matches
src/shared/vmprof_memory.h matches
src/shared/vmprof.h matches
src/shared/symboltable.c matches
src/shared/vmprof_common.h matches
src/shared/vmp_stack.h matches
src/shared/vmprof_unix.h matches
The following file did NOT match
src/shared/vmprof_win.c
(somefailed=True in rlib/rvmprof/test/test_file.py)
builder: rpython-macos-x86-64 build #850*
test: rlib/rvmprof/test/test_file.py::test_same_file