File: run_test.sh

package info (click to toggle)
libpsml 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,048 kB
  • sloc: f90: 3,888; makefile: 211; pascal: 166; sh: 76
file content (32 lines) | stat: -rwxr-xr-x 831 bytes parent folder | download
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
#!/bin/sh
#
#  Run 'show_psml' on a file in 'plot' mode to generate
#  a log file and data files in a 'test_output' directory.
#  Its contents can be compared with those of 'reference_output'
#  to check the installation.
#
#  This script must be run in the (Building Directory)/examples directory,
#  after compilation of the example programs (see the installation
#  instructions):
#
#            sh run_test.sh
#
echo
echo "Running installation test..."
echo
#
if [ -d test_output ]
then
    echo "Directory 'test_output' must be removed"
    exit
fi

mkdir -p test_output
cd test_output
../show_psml -p ../Ba.sc-ionic-siesta-vnl.psml > Ba.sc-ionic-siesta-vnl.show
cd ..
#
echo "Test output in 'test_output'"
echo "Compare to contents of 'reference_output'"
echo "You might want to use 'diff -rq test_output reference_output'"