-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile.test
19 lines (16 loc) · 1.02 KB
/
Makefile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- mode: makefile -*-
SHELL=/bin/bash
test:
echo WithStaff 1 - 0 - | python3 jianpu-ly.py | grep r2 >/dev/null # check collapsing regexes still work
echo WithStaff 1 - 0 - | python2.7 jianpu-ly.py | grep r2 >/dev/null
echo 'WithStaff 1 \p - - -' | python3 jianpu-ly.py |grep "c'1 \\\\p" >/dev/null
echo 'WithStaff 1 \p - - -' | python2.7 jianpu-ly.py |grep "c'1 \\\\p" >/dev/null
echo 'WithStaff 3/4 135 \p - -' | python3 jianpu-ly.py | grep "c' e' g' >2. "'\\p' >/dev/null
echo 'WithStaff 3/4 135 \p - -' | python2.7 jianpu-ly.py | grep "c' e' g' >2. "'\\p' >/dev/null
echo 'KeepOctave 2/4 <<1 - >1 - >1 - >1 - >1 -' | python3 jianpu-ly.py | grep "c'''2" >/dev/null
echo 'KeepOctave 2/4 <<1 - >1 - >1 - >1 - >1 -' | python2.7 jianpu-ly.py | grep "c'''2" >/dev/null
python3 jianpu-ly.py <(echo WithStaff 1 - 0 -) </dev/null | grep r2 >/dev/null # check read from non-stdin still works
python2.7 jianpu-ly.py <(echo WithStaff 1 - 0 -) </dev/null | grep r2 >/dev/null
python3 test-import.py
python2.7 test-import.py
.PHONY: test