/[escript]/trunk/doc/examples/SConscript
ViewVC logotype

Diff of /trunk/doc/examples/SConscript

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

revision 2507 by gross, Tue Jun 30 05:49:22 2009 UTC revision 2508 by jfenwick, Thu Jul 2 04:33:25 2009 UTC
# Line 36  Depends(cc, data_files) Line 36  Depends(cc, data_files)
36    
37  np=int(local_env['ENV']['ESCRIPT_NUM_NODES'])  np=int(local_env['ENV']['ESCRIPT_NUM_NODES'])
38  programs=[]  programs=[]
39    copies=[]
40  for i in example_files:  for i in example_files:
41    if i.endswith('.py') and (np==1 or not i in example_files_no_mpi):    if i.endswith('.py') and (np==1 or not i in example_files_no_mpi):
42      f_in=File(os.path.join(src_dir,i))      f_in=File(os.path.join(src_dir,i))
43      f_out=File(i, test_dir)      f_out=File(i, test_dir)
44      c=Command(f_out, f_in, Copy("$TARGET", "$SOURCE"))      c=Command(f_out, f_in, Copy("$TARGET", "$SOURCE"))
45        copies+=c
46      programs+=local_env.RunPyUnitTest(c)      programs+=local_env.RunPyUnitTest(c)
47    #env.Alias('build_py_tests', programs)
48    env.Alias('build_py_tests', data_files)
49    env.Alias('build_py_tests', copies)
50  env.Alias('py_tests', programs)  env.Alias('py_tests', programs)
51  Depends(programs, env['pyinstall'])  Depends(programs, env['pyinstall'])
52  Depends(programs, data_files)  Depends(programs, data_files)
# Line 59  for single_processor_only in [True, Fals Line 64  for single_processor_only in [True, Fals
64        runs=[]        runs=[]
65        for i in example_files:        for i in example_files:
66            if i.startswith(d) and i.endswith('.py') and (single_processor_only == (i in example_files_no_mpi)): runs.append(os.path.split(i)[1])            if i.startswith(d) and i.endswith('.py') and (single_processor_only == (i in example_files_no_mpi)): runs.append(os.path.split(i)[1])
67        TestGroups.append(GroupTest("$PYTHONRUNNER ",(),"",os.path.join("$BATCH_ROOT/doc/examples/test",d),runs, single_processor_only=single_processor_only))        TestGroups.append(GroupTest("$PYTHONRUNNER ",(),"",os.path.join("$BUILD_DIR/doc/examples/test",d),runs, single_processor_only=single_processor_only))

Legend:
Removed from v.2507  
changed lines
  Added in v.2508

  ViewVC Help
Powered by ViewVC 1.1.26