source: XIOS/trunk/xios_test_suite/TEST_SUITE/run_test_jeanzay @ 1893

Last change on this file since 1893 was 1893, checked in by yushan, 4 years ago

trunk : update on Jeanzay

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1#!/bin/bash
2module load subversion
3module load python/3.7.3
4
5export arch=X64_JEANZAY
6export mode=prod
7export build_dir=xios_test_suite/RUN_TEST_SUITE/build_${arch}_${mode}
8export svnR=$(svn info --show-item revision ../../)
9export ref_location=/gpfswork/rech/psl/rpsl954/cron_xios
10export ref_file=reference.tar.gz
11
12echo "Start Building XIOS ... "
13bash -c "cd ../.. && ./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 4"
14
15export build_status=$?
16if [[ ${build_status} == 0 ]]
17then
18  echo "XIOS Build Finished. Start Unit Tests"
19  bash ./my_prod.sh
20  rundir=${xios_test_suite_repository}/RUN
21  mkdir -p $rundir ; CHMOD  $rundir
22  mkdir -p ${rundir}/test_${xios_machine_name} ; CHMOD ${rundir}/test_${xios_machine_name}
23
24  cp report_${svnR}_${arch}_${mode}.txt ${rundir}/test_${xios_machine_name}/test_${svnR}_${xios_machine_name}_${arch}_${mode}.txt
25
26  CHMOD ${rundir}/test_${xios_machine_name}/test_${svnR}_${xios_machine_name}_${arch}_${mode}.txt
27
28  mkdir -p ${rundir}/def_files ;  CHMOD ${rundir}/def_files
29  mkdir -p ${rundir}/def_files/${svnR} ;  CHMOD ${rundir}/def_files/${svnR}
30
31  for i in $(ls -d test_*/)
32  do
33    mkdir -p ${rundir}/def_files/${svnR}/${i%%}
34    cp ${i%%}/user_param.json ${rundir}/def_files/${svnR}/${i%%}
35    for j in $(ls -d ${i%%/}/CONFIG_*)
36    do
37      mkdir -p ${rundir}/def_files/${svnR}/${j%%}
38      cp ${j%%}/all_param.def ${rundir}/def_files/${svnR}/${j%%}
39    done
40    CHMOD ${rundir}/def_files
41  done
42
43
44else
45  echo "XIOS Build Failed. Skip Unit Tests"
46fi
47
48
49#sbatch --wait job_jeanzay.sh
50
51#bash -c "python generate_test.py"
52#mv _test_${xios_machine_name}_info.js test_${xios_machine_name}_info.js
53#copy_to_forge  test_${xios_machine_name}_info.js
54#mv test_${xios_machine_name}_info.js _test_${xios_machine_name}_info.js
Note: See TracBrowser for help on using the repository browser.