A bunch of work/changes to get "make distcheck" to work correctly (run all the
[geda-gaf/whiteaudio.git] / gnetlist / tests / drc2 / Makefile.am
blobda9081039953666eb07073bed3c0011ec109dd2d
1 ## Process this file with automake to produce Makefile.in
3 EXTRA_DIST = duplicated-refdes.sch duplicated-refdes.drc2 \
4              duplicated_slot.sch duplicated_slot.drc2 \
5              gnd-with-nc-directive.sch gnd-with-nc-directive.drc2 \
6              gnd-without-nc-directive.sch gnd-without-nc-directive.drc2 \
7              net-not-driven.sch net-not-driven.drc2 \
8              net-not-driven-with-dont-check-if-driven-directive.sch \
9              net-not-driven-with-dont-check-if-driven-directive.drc2 \
10              net-not-driven-with-nc-directive.sch \
11              net-not-driven-with-nc-directive.drc2 \
12              net-with-only-one-connection.sch \
13              net-with-only-one-connection.drc2 \
14              numslots-is-not-an-integer.sch \
15              numslots-is-not-an-integer.drc2 \
16              numslots-not-defined.sch \
17              numslots-not-defined.drc2 \
18              output-connected-to-output.sch \
19              output-connected-to-output.drc2 \
20              pin-without-pintype-attrib.sch \
21              pin-without-pintype-attrib.drc2 \
22              refdes-not-numbered.sch \
23              refdes-not-numbered.drc2 \
24              slot-is-not-an-integer.sch \
25              slot-is-not-an-integer.drc2 \
26              slot-not-defined.sch \
27              slot-not-defined.drc2 \
28              slot_out_of_range.sch \
29              slot_out_of_range.drc2 \
30              unconnected-pin.sch \
31              unconnected-pin.drc2 \
32              unconnected-pin-with-drc-directive.sch \
33              unconnected-pin-with-drc-directive.drc2 \
34              unused-slot.sch \
35              unused-slot.drc2
38 # Temporarily disabled make check, since this is interfering with 
39 # make distcheck
40 check_SCRIPTS = tests
42 BUILDDIR=$(top_builddir)/tests/drc2
43 SRCDIR=$(srcdir)
45 tests:
46 # cleanup
47         rm -f $(BUILDDIR)/new_*
49 # make the tests
50         for file in $(SRCDIR)/*.sch; do \
51           file_basename=`basename $$file .sch`; \
52           echo Checking test in $(SRCDIR)/$$file_basename.sch; \
53           ( export TESTDIR=$(SRCDIR) ; \
54             gnetlist -g drc2 -o $(BUILDDIR)/new_$$file_basename.drc2 \
55             $$file ); \
56           diff $(SRCDIR)/$$file_basename.drc2 \
57                  $(BUILDDIR)/new_$$file_basename.drc2; \
58           if [ $$? -ne 0 ]; then \
59              echo "Test in $(SRCDIR)/$$file_basename.sch FAILED!!"; \
60              exit 1; \
61           else \
62              echo "Test in $(SRCDIR)/$$file_basename.sch PASSED."; \
63           fi; \
64         done
66 MOSTLYCLEANFILES = new_* core *.log FILE *.ps *~
67 CLEANFILES = new_* core *.log FILE *.ps *~
68 DISTCLEANFILES = *.log core FILE *~ prototype.bak
69 MAINTAINERCLEANFILES = new_* core *.log FILE *.ps *~ Makefile.in configure