Add support for checking copyright line against a regular expression.
[style_checker.git] / regtests / makefile
blob8ebb99f9b29007a6ffbba3e7d35dfb5416b3f670
2 .SILENT:
4 all: run_tests check_results
6 run_tests:
7 -../style_checker -H error1.txt demo.adb > out1.res 2>&1
8 -../style_checker -HLSBCT error1.txt demo.adb > out2.res 2>&1
9 -../style_checker -lang Ada -HS error1.txt demo.adb > out3.res 2>&1
10 -../style_checker -HL error1.txt azerty.adb > out4.res 2>&1
11 -../style_checker -HBCELT -lang Ada main.adb > out5.res 2>&1
12 -../style_checker -HBCELT -lang Ada -cy main.adb > out6.res 2>&1
13 -../style_checker -HBCELT -lang Ada -cp main.adb > out7.res 2>&1
14 -../style_checker -H endings.txt > out8.res 2>&1
15 -../style_checker -H noendings.txt > out9.res 2>&1
16 -../style_checker hello.e > out10.res 2>&1
17 -../style_checker -ign e hello.e >> out10.res 2>&1
18 -../style_checker -m 2 hello.e > out11.res 2>&1
19 -../style_checker header1.adb header2.adb header3.adb > out12.res 2>&1
20 -../style_checker -S -cY -H \
21 -cf'Copyright \(C\) 2\d\d\d-2\d\d\d, (Pascal Obry|Qwerty)' \
22 copyright.ads > out13.res 2>&1
24 check_results:
25 echo "### regressions follows"
26 -diff -wc out1.out out1.res
27 -diff -wc out2.out out2.res
28 -diff -wc out3.out out3.res
29 -diff -wc out4.out out4.res
30 -diff -wc out5.out out5.res
31 -diff -wc out5.out out6.res
32 -diff -wc out5.out out7.res
33 -diff -wc out8.out out8.res
34 -diff -wc out9.out out9.res
35 -diff -wc out10.out out10.res
36 -diff -wc out11.out out11.res
37 -diff -wc out12.out out12.res
38 -diff -wc out13.out out13.res
40 clean:
41 rm -f *.res *~