Mercurial > hg > sonic-visualiser
comparison test/test-session-export.sh @ 2334:a2162fd2e8eb
Merge from branch time-frequency-boxes
author | Chris Cannam |
---|---|
date | Wed, 25 Sep 2019 13:49:42 +0100 |
parents | 1dbc681aec21 |
children |
comparison
equal
deleted
inserted
replaced
2320:61295186a887 | 2334:a2162fd2e8eb |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Test that loading and re-saving a session does not change its contents | 3 # Test that loading and re-saving a session does not change its contents |
4 # Must be run from same directory as the SV binary | 4 # Must be run from directory that contains this script |
5 | 5 |
6 set -e | 6 set -e |
7 | 7 |
8 session="$1" | 8 session="$1" |
9 | 9 |
10 set -u | 10 set -u |
11 | 11 |
12 sv="../sonic-visualiser" | 12 sv="../sonic-visualiser" |
13 if [ ! -x "$sv" ]; then | 13 if [ ! -f "$sv" -o ! -x "$sv" ]; then |
14 echo "This script must be run from the sonic-visualiser/test directory" 1>&2 | 14 echo "This script must be run from the sonic-visualiser/test directory" 1>&2 |
15 exit 1 | 15 exit 1 |
16 fi | 16 fi |
17 | 17 |
18 if ! xmllint --version 2>/dev/null ; then | 18 if ! xmllint --version 2>/dev/null ; then |