File: test.sh

package info (click to toggle)
librcsb-core-wrapper 1.005-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,576 kB
  • sloc: xml: 122,915; cpp: 25,250; ansic: 3,736; makefile: 1,033; sh: 772; lex: 294; yacc: 235; perl: 213; python: 121; csh: 30
file content (37 lines) | stat: -rwxr-xr-x 687 bytes parent folder | download | duplicates (6)
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
37
#!/bin/sh

# Save test start time
START_TIME=$(date +%s)

# Execute all tests

echo
echo "Creating mmCIF/DDL object dictionary"

rm -f ./mmcif_std.odb

../bin/DictObjFileCreator -dictSdbFile ./mmcif_std.sdb \
  -o ./mmcif_std.odb 2>&1 | tee ./mmcif_std.log

chmod 644 ./mmcif_std.odb

echo
echo 'Running reading test 1'
../bin/DictObjFileReader mmcif_std.odb mmcif_std.dic > builder1.out

echo 'Running reading test 2'
../bin/DictObjFileSelectiveReader mmcif_std.odb mmcif_std.dic > builder2.out

# Save test end time
END_TIME=$(date +%s)

DIFF_TIME=$(( $END_TIME - $START_TIME ))

echo "Tests execution time is $DIFF_TIME seconds." > exectime.txt

echo
echo
cat exectime.txt
echo
echo