Skip to content

Commit

Permalink
made automatic testing ON
Browse files Browse the repository at this point in the history
  • Loading branch information
shashikant193 committed Apr 2, 2021
1 parent 0ad4a44 commit 4c9ff89
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
48 changes: 24 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,34 +63,34 @@ jobs:
script:
- travis_wait 40 python test.py autosys6 # already in src/ during install

- name: v7
os: linux
script:
- travis_wait 40 python tests.py autosys7 # already in src/ during install
# - name: v7
# os: linux
# script:
# - travis_wait 40 python test.py autosys7 # already in src/ during install

- name: v8
os: linux
script:
- travis_wait 40 python test.py autosys8 # already in src/ during install
# - name: v8
# os: linux
# script:
# - travis_wait 40 python test.py autosys8 # already in src/ during install

- name: v9
os: linux
script:
- travis_wait 40 python test.py autosys9 # already in src/ during install
# - name: v9
# os: linux
# script:
# - travis_wait 40 python test.py autosys9 # already in src/ during install

- name: v10
os: linux
script:
- travis_wait 40 python test.py autosys10 # already in src/ during install
# - name: v10
# os: linux
# script:
# - travis_wait 40 python test.py autosys10 # already in src/ during install

- name: v11
os: linux
script:
- travis_wait 40 python test.py autosys11 # already in src/ during install
# - name: v11
# os: linux
# script:
# - travis_wait 40 python test.py autosys11 # already in src/ during install

- name: v12
os: linux
script:
- travis_wait 40 python test.py autosys12 # already in src/ during install
# - name: v12
# os: linux
# script:
# - travis_wait 40 python test.py autosys12 # already in src/ during install


15 changes: 8 additions & 7 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2659,6 +2659,7 @@ def WriteReport(data_info, systems, isparallel, ifVHQ, isorient):
ismempbs =False
ifVHQ = False
isAuto = False
no_concurrency=6 # number of jobs running concurrently on github server
if len(args) == 1 and re.findall(r'autosys',args[0]) == ['autosys']:
indx_test_temp = re.findall(r'\d+',args[0])
indx_test = int(indx_test_temp[0])
Expand All @@ -2673,14 +2674,14 @@ def WriteReport(data_info, systems, isparallel, ifVHQ, isorient):
tols_sys = [ tols_sys[i] for i in range(len(systems)) if systems[i] not in ['Fe_spin','He16_NVTNH','He16_NVKG','MgO','Si8_kpt_valgrind','MoS2','Au_fcc211','SiH4','BaTiO3_valgrind']]
systems = [ systems[i] for i in range(len(systems)) if systems[i] not in ['Fe_spin','He16_NVTNH','He16_NVKG','MgO','Si8_kpt_valgrind','MoS2','Au_fcc211','SiH4','BaTiO3_valgrind']]
no_systems = len(systems)
if indx_test != 12:
systems = systems[(indx_test-1)*int(no_systems/12):(indx_test-1)*int(no_systems/12)+int(no_systems/12)]
tols_sys = tols_sys[(indx_test-1)*int(no_systems/12):(indx_test-1)*int(no_systems/12)+int(no_systems/12)]
tags_sys = tags_sys[(indx_test-1)*int(no_systems/12):(indx_test-1)*int(no_systems/12)+int(no_systems/12)]
if indx_test != no_concurrency:
systems = systems[(indx_test-1)*int(no_systems/no_concurrency):(indx_test-1)*int(no_systems/no_concurrency)+int(no_systems/no_concurrency)]
tols_sys = tols_sys[(indx_test-1)*int(no_systems/no_concurrency):(indx_test-1)*int(no_systems/no_concurrency)+int(no_systems/no_concurrency)]
tags_sys = tags_sys[(indx_test-1)*int(no_systems/no_concurrency):(indx_test-1)*int(no_systems/no_concurrency)+int(no_systems/no_concurrency)]
else:
systems = systems[(indx_test-1)*int(no_systems/12) : no_systems]
tols_sys = tols_sys[(indx_test-1)*int(no_systems/12) : no_systems]
tags_sys = tags_sys[(indx_test-1)*int(no_systems/12) : no_systems]
systems = systems[(indx_test-1)*int(no_systems/no_concurrency) : no_systems]
tols_sys = tols_sys[(indx_test-1)*int(no_systems/no_concurrency) : no_systems]
tags_sys = tags_sys[(indx_test-1)*int(no_systems/no_concurrency) : no_systems]
no_systems = len(systems)


Expand Down

0 comments on commit 4c9ff89

Please sign in to comment.