forked from ReactionMechanismGenerator/RMG-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck.sh
36 lines (24 loc) · 1.01 KB
/
check.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
target=$1
if [ -z ${TRAVIS_BUILD_DIR+x} ]; then TRAVIS_BUILD_DIR=$PWD; fi
echo 'Travis Build Dir: '$TRAVIS_BUILD_DIR
ORIGINAL=$TRAVIS_BUILD_DIR/testing/check/$target
SOURCE_FOLDER=$TRAVIS_BUILD_DIR/testing/$target
echo 'Source folder: '$SOURCE_FOLDER
# check generated models:
# core:
python $TRAVIS_BUILD_DIR/checkModels.py $target $SOURCE_FOLDER/chemkin/chem_annotated.inp $SOURCE_FOLDER/chemkin/species_dictionary.txt
echo core for $target:
if grep "checkModels" $target.log | cut -f2- -d'=' > $target.core ; then
cat $target.core
fi
# edge:
python $TRAVIS_BUILD_DIR/checkModels.py $target $SOURCE_FOLDER/chemkin/chem_edge_annotated.inp $SOURCE_FOLDER/chemkin/species_edge_dictionary.txt
echo edge for $target:
if grep "checkModels" $target.log | cut -f2- -d'=' > $target.edge ; then
cat $target.edge
fi
echo 'Execution time, Tested:'
grep "Execution time" $TRAVIS_BUILD_DIR/testing/$target/RMG.log | tail -1
echo 'Memory used, Tested:'
grep "Memory used" $TRAVIS_BUILD_DIR/testing/$target/RMG.log | tail -1