Fix check for copyright presence in multi-line comments.
[style_checker.git] / regtests / makefile
blobeae0af903aa1649474d36947395dc17c44c6c2c5
2 .SILENT:
4 YEAR=$(shell date +"%Y")
6 all: run_tests check_results
8 run_tests:
9 -../style_checker -H error1.txt demo.adb > out1.res 2>&1
10 -../style_checker -HLSBCT error1.txt demo.adb > out2.res 2>&1
11 -../style_checker -lang Ada -HS error1.txt demo.adb > out3.res 2>&1
12 -../style_checker -HL error1.txt azerty.adb > out4.res 2>&1
13 -../style_checker -HBCELT -lang Ada main.adb > out5.tmp 2>&1
14 -../style_checker -HBCELT -lang Ada -cy main.adb > out6.tmp 2>&1
15 -../style_checker -HBCELT -lang Ada -cp main.adb > out7.tmp 2>&1
16 sed "s,$(YEAR),2008,g" out5.tmp > out5.res
17 sed 's,$(YEAR),2008,g' out6.tmp > out6.res
18 sed 's,$(YEAR),2008,g' out7.tmp > out7.res
19 -../style_checker -H endings.txt > out8.res 2>&1
20 -../style_checker -H noendings.txt > out9.res 2>&1
21 -../style_checker -HA hello.e > out10.res 2>&1
22 -../style_checker -ign e hello.e >> out10.res 2>&1
23 -../style_checker -A -m 2 hello.e > out11.res 2>&1
24 -../style_checker header1.adb header2.adb header3.adb > out12.tmp 2>&1
25 sed 's,$(YEAR),2010,g' out12.tmp > out12.res
26 sed 's,2005,$(YEAR),g' copyright.ads > copyright2.ads
27 -../style_checker -S -cY -H \
28 -cf'Copyright \(C\) 2\d\d\d-2\d\d\d, (Pascal Obry|Qwerty)' \
29 copyright2.ads > out13.res 2>&1
30 -../style_checker -H script.sh > out14.res 2>&1
31 -../style_checker -d -cY pck.ads > out15.res 2>&1
32 -../style_checker -d -cY main.c > out16.res 2>&1
33 -../style_checker -d -cY code.c > out17.res 2>&1
34 -../style_checker -H withtab.adb > out18.res 2>&1
35 -echo a >> out18.res
36 -../style_checker -Ha withtab.adb >> out18.res 2>&1
37 -echo A >> out18.res
38 -../style_checker -HA withtab.adb >> out18.res 2>&1
39 -../style_checker -C makefile > out19.res 2>&1
40 -../style_checker -Ho operator.adb > out20.res 2>&1
41 -../style_checker -Hi thenlayout.adb > out21.res 2>&1
42 -../style_checker -Hw withuse1.adb > out22.res 2>&1
43 -../style_checker -Hw withuse2.adb > out23.res 2>&1
44 -../style_checker -Hw withuse3.adb > out24.res 2>&1
45 -../style_checker -Hw withuse4.adb > out25.res 2>&1
46 -../style_checker -Hw aspect.adb > out26.res 2>&1
47 -../style_checker -Hw -o andthennot.adb > out27.res 2>&1
48 -../style_checker -h6 -cp copyright.c > out28.res 2>&1
50 check_results:
51 echo "### regressions follows"
52 rm -f out_status.res
53 -diff -wc out1.out out1.res || echo $$? >> out_status.res
54 -diff -wc out2.out out2.res || echo $$? >> out_status.res
55 -diff -wc out3.out out3.res || echo $$? >> out_status.res
56 -diff -wc out4.out out4.res || echo $$? >> out_status.res
57 -diff -wc out5.out out5.res || echo $$? >> out_status.res
58 -diff -wc out5.out out6.res || echo $$? >> out_status.res
59 -diff -wc out5.out out7.res || echo $$? >> out_status.res
60 -diff -wc out8.out out8.res || echo $$? >> out_status.res
61 -diff -wc out9.out out9.res || echo $$? >> out_status.res
62 -diff -wc out10.out out10.res || echo $$? >> out_status.res
63 -diff -wc out11.out out11.res || echo $$? >> out_status.res
64 -diff -wc out12.out out12.res || echo $$? >> out_status.res
65 -diff -wc out13.out out13.res || echo $$? >> out_status.res
66 -diff -wc out14.out out14.res || echo $$? >> out_status.res
67 -diff -wc out15.out out15.res || echo $$? >> out_status.res
68 -diff -wc out16.out out16.res || echo $$? >> out_status.res
69 -diff -wc out17.out out17.res || echo $$? >> out_status.res
70 -diff -wc out18.out out18.res || echo $$? >> out_status.res
71 -diff -wc out19.out out19.res || echo $$? >> out_status.res
72 -diff -wc out20.out out20.res || echo $$? >> out_status.res
73 -diff -wc out21.out out21.res || echo $$? >> out_status.res
74 -diff -wc out22.out out22.res || echo $$? >> out_status.res
75 -diff -wc out23.out out23.res || echo $$? >> out_status.res
76 -diff -wc out24.out out24.res || echo $$? >> out_status.res
77 -diff -wc out25.out out25.res || echo $$? >> out_status.res
78 -diff -wc out26.out out26.res || echo $$? >> out_status.res
79 -diff -wc out27.out out27.res || echo $$? >> out_status.res
80 -diff -wc out28.out out28.res || echo $$? >> out_status.res
81 test ! -e out_status.res
83 clean:
84 rm -f *.res *~