Fix an issue where the pattern doesn't advance,
[quincer.git] / test / 02include.test
blob070c0812ae9de5e52dc5f48fb55712b0734d7fa8
1 #!/bin/sh
3 input1=$(mktemp)
4 input2=$(mktemp)
5 input3=$(mktemp)
6 input4="$(mktemp) longer"
7 output=$(mktemp)
9 die() {
10 rm -f $input1 $input2 $input3 $input4 $output
11 exit 1
14 cat >$input1 <<EOF
15 voice bass fluidsynth 14
16 include $input2
17 EOF
19 cat >$input2 <<EOF
20 include $input3
21 voice lead fluidsynth 15
22 include "$input4"
23 EOF
25 cat >$input3 <<EOF
26 voice keys fluidsynth 7
27 EOF
29 cat >$input4 <<EOF
30 voice kick fluidsynth 9
31 EOF
33 ./lexdump $input1 >$output
34 [ $? = 0 ] || die
36 grep bass $output || die
37 grep lead $output || die
38 grep keys $output || die
39 grep kick $output || die
41 rm -f $input1 $input2 $input3 $input4 $output