source: XIOS/trunk/xios_test_suite/TEST_SUITE/generate_new_reference_irene_local.sh @ 1842

Last change on this file since 1842 was 1842, checked in by yushan, 2 years ago

XIOS test suite : hierarchical input tested on jeanzay. new reference generated.

File size: 772 bytes
Line 
1#!/bin/bash
2revision=$(svn info --show-item revision ../ 2>&1)
3mkdir -p xios_reference
4for i in $(ls -d test_*)
5do
6  echo ${i%%}
7  mkdir -p xios_reference/${i%%}
8  for j in $(ls -d ${i%%}/config_*)
9  do
10    echo ${j%%}
11    mkdir -p xios_reference/${j%%}
12    DIR=${j%%}/tmp_reference
13    if [ -d "$DIR" ]; then
14      mv ${j%%}/tmp_reference ${j%%}/reference 
15    fi
16
17    cp -r ${j%%}/reference xios_reference/${j%%}
18    cp -r ${j%%}/setup xios_reference/${j%%}
19  done
20
21done
22
23
24mkdir -p ${CCCWORKDIR}/xios_reference_archive
25mkdir -p ${CCCWORKDIR}/xios_reference_archive/$(( ${revision}-1 ))
26mv ${CCCWORKDIR}/xios_reference.tar.gz ${CCCWORKDIR}/xios_reference_archive/$(( ${revision}-1 ))/
27
28tar -zcvf ${CCCWORKDIR}/xios_reference.tar.gz xios_reference/
29rm -rf xios_reference
Note: See TracBrowser for help on using the repository browser.