source: XIOS3/trunk/xios_test_suite/generate_ref.sh @ 2411

Last change on this file since 2411 was 2281, checked in by jderouillat, 2 years ago

Add tracking of the memory consumption in the test suite

  • Property svn:executable set to *
File size: 516 bytes
Line 
1#!/bin/bash
2
3REF=reference
4REF_PREFIX=ref_
5W_DIR=RUN_TEST_SUITE
6NC_FILE=*.nc
7MEM_FILE=*.mem
8REF_TAR=reference.tar.gz
9
10mkdir -p ${REF}
11
12for test in $(cd ${W_DIR} ; ls -d test_*/)
13do
14  mkdir -p ${REF}/${REF_PREFIX}${test%%}
15  for test_config in $(cd ${W_DIR} ; ls -d ${test%%/}/CONFIG_*)
16  do
17    mkdir -p ${REF}/${REF_PREFIX}${test_config%%}
18    cp ${W_DIR}/${test_config%%}/${NC_FILE}  ${W_DIR}/${test_config%%}/${MEM_FILE} ${REF}/${REF_PREFIX}${test_config%%}
19  done
20done
21
22tar -zcvf ${REF_TAR} ${REF}
23rm -rf ${REF}
Note: See TracBrowser for help on using the repository browser.