/[escript]/branches/4.0fordebian/SConstruct
ViewVC logotype

Diff of /branches/4.0fordebian/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4077 by caltinay, Tue Oct 30 04:43:25 2012 UTC revision 4078 by jfenwick, Fri Nov 16 07:50:49 2012 UTC
# Line 967  env.Alias('api_epydoc','install_all') Line 967  env.Alias('api_epydoc','install_all')
967  env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'user_pdf', 'install_pdf', 'cookbook_pdf', 'inversion_pdf'])  env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'user_pdf', 'install_pdf', 'cookbook_pdf', 'inversion_pdf'])
968  env.Alias('release_prep', ['docs', 'install_all'])  env.Alias('release_prep', ['docs', 'install_all'])
969    
970    
971    # The test scripts are always generated, this target allows us to
972    # generate the testscripts without doing a full build
973    env.Alias('testscripts',[])
974    
975  if not IS_WINDOWS:  if not IS_WINDOWS:
976      try:      try:
977          utest=open('utest.sh','w')          utest=open('utest.sh','w')
978          utest.write(GroupTest.makeHeader(env['PLATFORM'], prefix))          utest.write(GroupTest.makeHeader(env['PLATFORM'], prefix, False))
979          for tests in TestGroups:          for tests in TestGroups:
980              utest.write(tests.makeString())              utest.write(tests.makeString())
981          utest.close()          utest.close()
982          Execute(Chmod('utest.sh', 0o755))          Execute(Chmod('utest.sh', 0o755))
983          print("Generated utest.sh.")          print("Generated utest.sh.")
984            # This version contains only python tests - I want this to be usable
985            # From a binary only install if you have the test files
986            utest=open('itest.sh','w')
987            utest.write(GroupTest.makeHeader(env['PLATFORM'], prefix, True))
988            for tests in TestGroups:
989              if tests.exec_cmd=='$PYTHONRUNNER ':
990                utest.write(tests.makeString())
991            utest.close()
992            Execute(Chmod('itest.sh', 0o755))
993            print("Generated itest.sh.")        
994      except IOError:      except IOError:
995          print("Error attempting to write unittests file.")          print("Error attempting to write unittests file.")
996          Exit(1)          Exit(1)
997    
998      # delete utest.sh upon cleanup      # delete utest.sh upon cleanup
999      env.Clean('target_init', 'utest.sh')      env.Clean('target_init', 'utest.sh')
1000        env.Clean('target_init', 'itest.sh')
1001    
1002      # Make sure that the escript wrapper is in place      # Make sure that the escript wrapper is in place
1003      if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')):      if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')):

Legend:
Removed from v.4077  
changed lines
  Added in v.4078

  ViewVC Help
Powered by ViewVC 1.1.26