Ignore:
Timestamp:
Nov 1, 2007, 2:05:53 PM (17 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
9f9f63f
Parents:
afb3576
Message:

list_missing_tests: add examples tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/list_missing_tests

    rafb3576 rb660fbc  
    3131  return status
    3232
     33def check_two_ways(src_dir, src_ext, tst_dir, tst_ext, verbose = False, tst_prefix = ''):
     34  print "%20s    " % (" FILES IN " + src_dir) + "|" + "    FILES IN " + tst_dir
     35  status  = check_tst_against_src(src_dir, src_ext, tst_dir, verbose = verbose, tst_prefix = tst_prefix)
     36  status += check_src_against_tst(tst_dir, tst_ext, src_dir, verbose = verbose, tst_prefix = tst_prefix)
     37  return status
     38
    3339if __name__ == '__main__':
    3440
     
    3642  else: verbose = False
    3743
    38   src_dir = join(dirname(sys.argv[0]),'..','src')
     44  base_directory = dirname(sys.argv[0])
     45
     46  status = 0
     47
     48  src_dir = join(base_directory,'..','src')
    3949  src_ext = '.c'
     50  tst_dir = join(base_directory,'python')
     51  tst_ext = '.py'
     52  status += check_two_ways(src_dir, src_ext, tst_dir, tst_ext, verbose = verbose)
    4053
    41   tst_dir = join(dirname(sys.argv[0]),'python')
     54  tst_dir = join(base_directory,'src')
     55  tst_ext = '.c'
     56  status += check_two_ways(src_dir, src_ext, tst_dir, tst_ext, verbose = verbose, tst_prefix = 'test-')
     57
     58  src_dir = join(base_directory,'..','examples')
     59  src_ext = '.c'
     60  tst_dir = join(base_directory,'python','examples')
    4261  tst_ext = '.py'
    43   print "%20s    " % (" FILES IN " + src_dir) + "|" + "    FILES IN " + tst_dir
    44   status  = check_tst_against_src(src_dir, src_ext, tst_dir, verbose=verbose)
    45   status += check_src_against_tst(tst_dir, tst_ext, src_dir, verbose=verbose)
    46 
    47   tst_dir = join(dirname(sys.argv[0]),'src')
    48   tst_ext = '.c'
    49   print "%20s    " % (" FILES IN " + src_dir) + "|" + "    FILES IN " + tst_dir
    50   status += check_tst_against_src(src_dir, src_ext, tst_dir, verbose=verbose, tst_prefix = 'test-')
    51   status += check_src_against_tst(tst_dir, tst_ext, src_dir, verbose=verbose, tst_prefix = 'test-')
     62  status += check_two_ways(src_dir, src_ext, tst_dir, tst_ext, verbose = verbose)
    5263
    5364  sys.exit(status)
Note: See TracChangeset for help on using the changeset viewer.