Fri, 22 Sep 2023 23:26:23 +0200
replace autoconf with uwproj
universe@56 | 1 | #!/bin/sh |
universe@56 | 2 | # |
universe@56 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@56 | 4 | # |
universe@56 | 5 | # Copyright 2018 Mike Becker. All rights reserved. |
universe@56 | 6 | # |
universe@56 | 7 | # Redistribution and use in source and binary forms, with or without |
universe@56 | 8 | # modification, are permitted provided that the following conditions are met: |
universe@56 | 9 | # |
universe@56 | 10 | # 1. Redistributions of source code must retain the above copyright |
universe@56 | 11 | # notice, this list of conditions and the following disclaimer. |
universe@56 | 12 | # |
universe@56 | 13 | # 2. Redistributions in binary form must reproduce the above copyright |
universe@56 | 14 | # notice, this list of conditions and the following disclaimer in the |
universe@56 | 15 | # documentation and/or other materials provided with the distribution. |
universe@56 | 16 | # |
universe@56 | 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
universe@56 | 18 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
universe@56 | 19 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
universe@56 | 20 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
universe@56 | 21 | # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
universe@56 | 22 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
universe@56 | 23 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
universe@56 | 24 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
universe@56 | 25 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
universe@56 | 26 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
universe@56 | 27 | # POSSIBILITY OF SUCH DAMAGE. |
universe@56 | 28 | # |
universe@56 | 29 | |
universe@66 | 30 | echo -n "Verifying correctness of code only character count: " |
universe@56 | 31 | |
universe@68 | 32 | count=`../build/cline -Vcs testfile.c --exclude-cstyle-comments` |
universe@66 | 33 | expected=50 |
universe@57 | 34 | |
universe@57 | 35 | if [ "$count" -eq "$expected" ]; then |
universe@57 | 36 | echo "OK." |
universe@68 | 37 | exit 0 |
universe@57 | 38 | else |
universe@57 | 39 | echo "FAIL! $count is not $expected" |
universe@68 | 40 | exit 1 |
universe@57 | 41 | fi |