test/Makefile

Sun, 11 Jun 2023 14:05:28 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 11 Jun 2023 14:05:28 +0200
changeset 69
ff56b28e2cdd
permissions
-rw-r--r--

add separate Makefile for test

universe@69 1 #
universe@69 2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@69 3 #
universe@69 4 # Copyright 2016 Mike Becker. All rights reserved.
universe@69 5 #
universe@69 6 # Redistribution and use in source and binary forms, with or without
universe@69 7 # modification, are permitted provided that the following conditions are met:
universe@69 8 #
universe@69 9 # 1. Redistributions of source code must retain the above copyright
universe@69 10 # notice, this list of conditions and the following disclaimer.
universe@69 11 #
universe@69 12 # 2. Redistributions in binary form must reproduce the above copyright
universe@69 13 # notice, this list of conditions and the following disclaimer in the
universe@69 14 # documentation and/or other materials provided with the distribution.
universe@69 15 #
universe@69 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@69 17 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@69 18 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
universe@69 19 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
universe@69 20 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
universe@69 21 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
universe@69 22 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
universe@69 23 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
universe@69 24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
universe@69 25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
universe@69 26 # POSSIBILITY OF SUCH DAMAGE.
universe@69 27 #
universe@69 28
universe@69 29 BUILDDIR=../build
universe@69 30
universe@69 31 all:
universe@69 32 $(BUILDDIR)/c2html ctest.c -o $(BUILDDIR)/ctest.html \
universe@69 33 -H header.html -F footer.html
universe@69 34 $(BUILDDIR)/c2html -j javatest.java -o $(BUILDDIR)/javatest.html \
universe@69 35 -H jheader.html -F footer.html
universe@69 36 $(BUILDDIR)/c2html bigtest.c -o $(BUILDDIR)/bigtest.html \
universe@69 37 -H header.html -F footer.html
universe@69 38 $(BUILDDIR)/c2html -p plain.txt -o $(BUILDDIR)/plain.html \
universe@69 39 -H header.html -F footer.html
universe@69 40 diff $(BUILDDIR)/ctest.html gs/ctest.html && \
universe@69 41 diff $(BUILDDIR)/javatest.html gs/javatest.html && \
universe@69 42 diff $(BUILDDIR)/bigtest.html gs/bigtest.html && \
universe@69 43 diff $(BUILDDIR)/plain.html gs/plain.html
universe@69 44 @echo "Tests successful."

mercurial