Debian Codegraph @

tests/yaml-log-compiler.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 ## This script sets the LOUIS_TABLEPATH variable based on the location
4 ## of the test file. Autotools can not handle this. For tests in the
5 ## braille-specs subdirectory, LOUIS_TABLEPATH is set to
6 ## ${abs_top_srcdir}/tables. For other tests it is set to
7 ## ${abs_top_srcdir} (this happens in Makefile.am). The braille-specs
8 ## tests require that LOUIS_TABLEPATH contains the tables under test
9 ## otherwise the tables can not be found via queries.
10
11 ## An alternative approach would be to invent a new environment
12 ## variable specially for lou_checkyaml to call lou_indexTables
13 ## explicitly instead of relying on liblouis to automatically index
14 ## LOUIS_TABLEPATH.
15
16 yaml_test=$1
17
18 case $yaml_test in
19 */braille-specs/*)
20 export LOUIS_TABLEPATH=${LOUIS_TABLEPATH}/tables
21 ;;
22 *)
23 ;;
24 esac
25 ${WINE} lou_checkyaml${EXEEXT} $yaml_test