Changeset c5074d2 in flex_extract.git for source/pythontest/TestInstall.py


Ignore:
Timestamp:
Oct 9, 2018, 8:42:16 PM (6 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
aa275fc
Parents:
0a06607
Message:

added making of namelist file and jobscript via genshi templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/pythontest/TestInstall.py

    r0aaeb04 rc5074d2  
    2525    #!    - un_tarball
    2626    #!    - mk_env_vars
    27     #    - mk_compilejob
    28     #    - mk_job_template
     27    #!    - mk_compilejob
     28    #!    - mk_job_template
    2929    #    - delete_convert_build
    3030    #    - make_convert_build
     
    155155        # delete test file
    156156        silent_remove(finalfile)
     157
     158    def test_mk_job_template(self):
     159        import filecmp
     160
     161        # comparison file
     162        testfile = os.path.join(_config.PATH_TEST_DIR,
     163                                'TestData',
     164                                'job.temp.test')
     165
     166        # create
     167        install.mk_job_template('testuser',
     168                                'testgroup',
     169                                'gateway.test.ac.at',
     170                                'dest@generic',
     171                                'fp_root_test_path')
     172
     173        finalfile = os.path.join(_config.PATH_TEMPLATES,
     174                                 _config.TEMPFILE_JOB)
     175        assert filecmp.cmp(testfile, finalfile, shallow=False)
     176
     177        # delete test file
     178        silent_remove(finalfile)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG