source: XIOS/trunk/xios_test_suite/TEST_SUITE/generate_new_reference.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: 940 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
23cp -r ../ENV ./
24cp ../load_env ./
25source ./load_env
26#echo "xios_reference_dir" ${xios_reference_dir}
27
28mkdir -p ${xios_reference_dir}/xios_reference_archive
29mkdir -p ${xios_reference_dir}/xios_reference_archive/$(( ${revision}-1 ))
30mv ${xios_reference_dir}/xios_reference.tar.gz ${xios_reference_dir}/xios_reference_archive/$(( ${revision}-1 ))/
31
32tar -zcvf ${xios_reference_dir}/xios_reference.tar.gz xios_reference/
33rm -rf xios_reference
34
35rm -rf ENV
36rm -f load_env
Note: See TracBrowser for help on using the repository browser.