Mercurial > hg > sonic-visualiser
comparison test/test-session-export.sh @ 2324:1dbc681aec21 time-frequency-boxes
Fix directory test
author | Chris Cannam |
---|---|
date | Fri, 20 Sep 2019 14:20:17 +0100 |
parents | d3e8e95b06f8 |
children |
comparison
equal
deleted
inserted
replaced
2323:4e4e4fa2d6e2 | 2324:1dbc681aec21 |
---|---|
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 |