Ejemplo n.º 1
0
 def test_error_bad_paths(self):
     with self.assertRaises(Exception):
         with no_stderrout():
             paths = {}
             start_makelog(paths)
             write_to_makelog(paths, 'Hello, World!')
             end_makelog(paths)
Ejemplo n.º 2
0
 def test_makelog_space(self):
     with no_stderrout():
         paths = self.make_paths(makelog_path='test/log/make space.log')
         start_makelog(paths)
         write_to_makelog(paths, 'Hello, World!')
         end_makelog(paths)
         self.check_makelog(paths)
Ejemplo n.º 3
0
 def test_makelog_character(self):
     with no_stderrout():
         paths = self.make_paths(makelog_path='test/log/make_╬▓.log')
         start_makelog(paths)
         write_to_makelog(paths, 'Hello, World! ╬▓')
         end_makelog(paths)
         self.check_makelog(paths)
Ejemplo n.º 4
0
 def test_makelog(self):
     with no_stderrout():
         paths = self.make_paths()
         start_makelog(paths)
         write_to_makelog(paths, 'Hello, World!')
         end_makelog(paths)
         self.check_makelog(paths)
Ejemplo n.º 5
0
### LOAD CONFIG USER
PATHS = gs.update_external_paths(PATHS)
gs.update_executables(PATHS)

############
### MAKE ###
############

### START MAKE
gs.remove_dir(['input', 'external'])
gs.clear_dir(['output', 'log'])
gs.start_makelog(PATHS)

### MAKE LINKS TO INPUT AND EXTERNAL FILES
inputs = gs.link_inputs(PATHS, ['input.txt'])
externals = gs.link_externals(PATHS, ['external.txt'])
gs.write_source_logs(PATHS, inputs + externals)
gs.get_modified_sources(PATHS, inputs + externals)

### RUN SCRIPTS
gs.run_stata(PATHS, 'code/analyze_data.do')

### LOG OUTPUTS
gs.log_files_in_output(PATHS)

### CHECK FILE SIZES
gs.check_module_size(PATHS)

### END MAKE
gs.end_makelog(PATHS)