mes/build-aux/check-mescc.sh

287 lines
8.1 KiB
Bash
Raw Normal View History

#! /bin/sh
# GNU Mes --- Maxwell Equations of Software
# Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
#
# This file is part of GNU Mes.
#
# GNU Mes is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# GNU Mes is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
set -e
. ./config.status
. ${srcdest}build-aux/config.sh
. ${srcdest}build-aux/trace.sh
mescc: x86_64 support: Refactor to abstracted assembly, add x86_64. * module/mescc/as.scm: Support abstracted assembly. * module/mescc/i386/as.scm: Rewrite. * module/mescc/x86_64/as.scm: Implement. * module/mescc/compile.scm: Refactor to abstracted assembly. * module/mescc/M1.scm: Update for partial 64 bit support. * module/mescc/bytevectors.scm (bytevector-u64-native-set!): New procedure. * module/mescc/i386/info.scm (i386:type-alist): Use 4 byte type length also for faking double, long long, long double. * module/mescc/info.scm:modified: * module/mescc/x86_64/info.scm (x86_64:registers): New variable. * lib/x86-mes/x86.M1: Update for new register scheme. * lib/x86_64-mes/x86_64.M1: Implement. * lib/x86-mes/setjmp.c: Implement. * lib/x86_64-mes-gcc/setjmp.c: Implement. * build-aux/build-cc.sh: Update for x86_64. * build-aux/build-cc32.sh: Likewise. * build-aux/build-mes.sh: Likewise. * build-aux/build-x86_64-mes.sh: Likewise. * build-aux/check-mescc.sh: Likewise. * build-aux/test64.sh: Likewise. * include/libmes.h: Likewise. * include/setjmp.h: Likewise. * include/signal.h: Likewise. * include/stdarg.h: Likewise. * include/sys/stat.h: Likewise. * include/sys/types.h: Likewise. * include/sys/wait.h: Likewise. * include/unistd.h: Likewise. * lib/libc+gnu.c: Likewise. * lib/libc+tcc.c: Likewise. * lib/linux/gnu.c: Likewise. * lib/linux/libc-mini.c: Likewise. * lib/linux/libc.c: Likewise. * lib/linux/tcc.c: Likewise. * lib/linux/x86_64-mes-gcc/mes.c: Likewise. * lib/linux/x86_64-mes/crt1.c: Likewise. * lib/mes/abtol.c: Likewise. * lib/posix/mktemp.c: Likewise. * lib/posix/wait.c: Likewise. * lib/stdio/fopen.c: Likewise. * lib/stdio/fputc.c: Likewise. * lib/stdio/fseek.c: Likewise. * lib/stdio/printf.c: Likewise. * lib/stdio/sprintf.c: Likewise. * lib/stdio/vfprintf.c: Likewise. * lib/stdio/vsprintf.c: Likewise. * lib/stdio/vsscanf.c: Likewise. * lib/stdlib/qsort.c: Likewise. * lib/x86-mes-gcc/setjmp.c: Likewise. * scaffold/tests/11-if-1.c: Likewise. * scaffold/tests/15-if-!f.c: Likewise. * scaffold/tests/16-if-t.c: Likewise. * scaffold/tests/21-char[].c: Likewise. * scaffold/tests/23-pointer.c: Likewise. * scaffold/tests/32-compare.c: Likewise. * scaffold/tests/33-and-or.c: Likewise. * scaffold/tests/34-pre-post.c: Likewise. * scaffold/tests/35-compare-char.c: Likewise. * scaffold/tests/36-compare-arithmetic.c: Likewise. * scaffold/tests/37-compare-assign.c: Likewise. * scaffold/tests/38-compare-call.c: Likewise. * scaffold/tests/40-if-else.c: Likewise. * scaffold/tests/41-?.c: Likewise. * scaffold/tests/42-goto-label.c: Likewise. * scaffold/tests/43-for-do-while.c: Likewise. * scaffold/tests/44-switch.c: Likewise. * scaffold/tests/45-void-call.c: Likewise. * scaffold/tests/46-function-static.c: Likewise. * scaffold/tests/51-strcmp.c: Likewise. * scaffold/tests/51-strncmp.c: Likewise. * scaffold/tests/53-strcpy.c: Likewise. * scaffold/tests/54-argv.c: Likewise. * scaffold/tests/60-math.c: Likewise. * scaffold/tests/61-array.c: Likewise. * scaffold/tests/63-struct-cell.c: Likewise. * scaffold/tests/64-make-cell.c: Likewise. * scaffold/tests/65-read.c: Likewise. * scaffold/tests/70-printf.c: Likewise. * scaffold/tests/71-struct-array.c: Likewise. * scaffold/tests/72-typedef-struct-def.c: Likewise. * scaffold/tests/74-multi-line-string.c: Likewise. * scaffold/tests/76-pointer-arithmetic.c: Likewise. * scaffold/tests/79-int-array.c: Likewise. * scaffold/tests/7a-struct-char-array.c: Likewise. * scaffold/tests/7b-struct-int-array.c: Likewise. * scaffold/tests/7i-struct-struct.c: Likewise. * scaffold/tests/7k-for-each-elem.c: Likewise. * scaffold/tests/7l-struct-any-size-array.c: Likewise. * scaffold/tests/7o-struct-pre-post.c: Likewise. * scaffold/tests/7q-bit-field.c: Likewise. * scaffold/tests/7s-struct-short.c: Likewise. * scaffold/tests/80-setjmp.c: Likewise. * scaffold/tests/81-qsort.c: Likewise. * scaffold/tests/85-sizeof.c: Likewise. * scaffold/tests/87-sscanf.c: Likewise. * scaffold/tests/90-strpbrk.c: Likewise. * scaffold/tests/91-fseek.c: Likewise. * scaffold/tests/95-signal.c: Likewise. * scaffold/tests/97-fopen.c: Likewise. * scaffold/tests/99-readdir.c: Likewise. * scaffold/tests/t.c: Likewise. * lib/linux/x86_64-mes/mes.c: New file. * lib/linux/x86_64-mes/mini.c: New file. * lib/x86_64-mes/setjmp.c: New file. * scaffold/tests/06-!call-1.c: New file. * scaffold/tests/06-call-2.c: New file. * scaffold/tests/06-call-variable.c: New file. * scaffold/tests/08-assign-global.c: New file. * scaffold/tests/08-assign-negative.c: New file. * scaffold/tests/17-compare-and-or.c: New file. * scaffold/tests/17-compare-and.c: New file. * scaffold/tests/17-compare-ge.c: New file. * scaffold/tests/17-compare-gt.c: New file. * scaffold/tests/17-compare-le.c: New file. * scaffold/tests/17-compare-lt.c: New file. * scaffold/tests/17-compare-or.c: New file. * scaffold/tests/17-compare-unsigned-ge.c: New file. * scaffold/tests/17-compare-unsigned-gt.c: New file. * scaffold/tests/17-compare-unsigned-le.c: New file. * scaffold/tests/17-compare-unsigned-lt.c: New file. * scaffold/tests/21-char[]-simple.c: New file. * scaffold/tests/23-global-pointer-init-null.c: New file. * scaffold/tests/23-global-pointer-init.c: New file. * scaffold/tests/23-global-pointer-pointer-ref.c: New file. * scaffold/tests/23-global-pointer-ref.c: New file. * scaffold/tests/23-pointer-sub.c: New file. * scaffold/tests/31-oputs.c: New file. * scaffold/tests/32-call-wrap.c: New file. * scaffold/tests/38-compare-call-2.c: New file. * scaffold/tests/38-compare-call-3.c: New file. * scaffold/tests/51-pointer-sub.c: New file. * scaffold/tests/54-argc.c: New file. * scaffold/tests/63-struct-array-assign.c: New file. * scaffold/tests/63-struct-array-compare.c: New file. * scaffold/tests/63-struct-array.c: New file. * scaffold/tests/63-struct-assign.c: New file. * scaffold/tests/63-struct-function.c: New file. * scaffold/tests/63-struct-local.c: New file. * scaffold/tests/63-struct-pointer.c: New file. * scaffold/tests/63-struct.c: New file. * scaffold/tests/70-printf-hello.c: New file. * scaffold/tests/70-printf-simple.c: New file. * scaffold/tests/70-stdarg.c: New file. * scaffold/tests/70-strchr.c: New file. * scaffold/tests/73-union-hello.c: New file. * scaffold/tests/76-pointer-arithmetic-pp.c: New file. * scaffold/tests/79-int-array-simple.c: New file. * scaffold/tests/7b-struct-int-array-hello.c: New file. * scaffold/tests/7b-struct-int-array-pointer.c: New file. * scaffold/tests/7i-struct-struct-simple.c: New file. * scaffold/tests/7k-for-each-elem-simple.c: New file. * scaffold/tests/7l-struct-any-size-array-simple.c: New file. * scaffold/tests/7o-struct-pre-post-simple.c: New file. * scaffold/tests/7q-bit-field-simple.c: New file. * scaffold/tests/90-strspn.c: New file. * scaffold/tests/06-call-string.c.: Rename from 31-eputs.c. * scaffold/tests/7t-function-destruct.c: Rename from 48-function-destruct.c. * scaffold/tests/48-global-static.c: Rename from 49-global-static.c. * scaffold/tests/55-char-array.c:renamed: Rename from 4a-char-array.c. * scaffold/tests/51-itoa.c:r Rename from 52-itoa.c. * include/signal.h:(struct sigaction):
2018-08-15 16:26:55 +00:00
test_sh=${test_sh-${srcdest}build-aux/test.sh}
tests="
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/t
scaffold/tests/00-exit-0
scaffold/tests/01-return-0
scaffold/tests/02-return-1
scaffold/tests/03-call
scaffold/tests/04-call-0
scaffold/tests/05-call-1
scaffold/tests/06-call-not-1
scaffold/tests/06-not-call-1
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/06-call-2
scaffold/tests/06-call-string
scaffold/tests/06-call-variable
scaffold/tests/06-return-void
scaffold/tests/07-include
scaffold/tests/08-assign
scaffold/tests/08-assign-negative
scaffold/tests/08-assign-global
scaffold/tests/10-if-0
scaffold/tests/11-if-1
scaffold/tests/12-if-eq
scaffold/tests/13-if-neq
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/14-if-goto
scaffold/tests/15-if-not-f
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/16-if-t
scaffold/tests/17-compare-char
scaffold/tests/17-compare-ge
scaffold/tests/17-compare-gt
scaffold/tests/17-compare-le
scaffold/tests/17-compare-lt
scaffold/tests/17-compare-unsigned-ge
scaffold/tests/17-compare-unsigned-gt
scaffold/tests/17-compare-unsigned-le
scaffold/tests/17-compare-unsigned-lt
scaffold/tests/17-compare-unsigned-char-le
scaffold/tests/17-compare-unsigned-short-le
scaffold/tests/17-compare-unsigned-long-le
scaffold/tests/17-compare-and
scaffold/tests/17-compare-or
scaffold/tests/17-compare-and-or
scaffold/tests/17-compare-assign
scaffold/tests/17-compare-call
scaffold/tests/18-assign-shadow
scaffold/tests/20-while
scaffold/tests/21-char-array-simple
scaffold/tests/21-char-array
scaffold/tests/22-while-char-array
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/23-global-pointer-init-null
scaffold/tests/23-global-pointer-init
scaffold/tests/23-global-pointer-ref
scaffold/tests/23-global-pointer-pointer-ref
scaffold/tests/23-pointer-sub
scaffold/tests/23-pointer
lib/tests/mes/30-oputs
lib/tests/string/30-strlen
scaffold/tests/32-call-wrap
scaffold/tests/32-compare
scaffold/tests/33-and-or
scaffold/tests/34-pre-post
scaffold/tests/35-compare-char
scaffold/tests/36-compare-arithmetic
scaffold/tests/37-compare-assign
scaffold/tests/38-compare-call-2
scaffold/tests/38-compare-call-3
scaffold/tests/38-compare-call
scaffold/tests/40-if-else
scaffold/tests/41-ternary
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/42-goto-label
scaffold/tests/43-for-do-while
scaffold/tests/44-switch
scaffold/tests/44-switch-fallthrough
scaffold/tests/44-switch-body-fallthrough
scaffold/tests/45-void-call
scaffold/tests/46-function-static
scaffold/tests/47-function-expression
scaffold/tests/48-global-static
lib/tests/assert/50-assert
lib/tests/mes/50-itoa
lib/tests/posix/50-getenv
lib/tests/string/50-strcmp
lib/tests/string/50-strcpy
lib/tests/string/50-strncmp
scaffold/tests/51-pointer-sub
scaffold/tests/54-argc
scaffold/tests/54-argv
scaffold/tests/55-char-array
scaffold/tests/60-math
scaffold/tests/61-array
scaffold/tests/62-array
scaffold/tests/63-struct
scaffold/tests/63-struct-pointer
scaffold/tests/63-struct-local
scaffold/tests/63-struct-function
scaffold/tests/63-struct-assign
scaffold/tests/63-struct-array
scaffold/tests/63-struct-array-assign
scaffold/tests/63-struct-array-compare
scaffold/tests/63-struct-cell
scaffold/tests/64-make-cell
scaffold/tests/65-read
scaffold/tests/66-local-char-array
scaffold/tests/70-stdarg
lib/tests/stdio/70-printf-hello
lib/tests/stdio/70-printf-simple
lib/tests/stdio/70-printf
lib/tests/stdlib/70-strtoull
lib/tests/string/70-strchr
scaffold/tests/71-struct-array
scaffold/tests/72-typedef-struct-def
scaffold/tests/73-union-hello
scaffold/tests/73-union
scaffold/tests/74-multi-line-string
scaffold/tests/75-struct-union
scaffold/tests/76-pointer-arithmetic-pp
scaffold/tests/76-pointer-arithmetic
scaffold/tests/77-pointer-assign
scaffold/tests/78-union-struct
scaffold/tests/79-int-array-simple
scaffold/tests/79-int-array
scaffold/tests/7a-struct-char-array
scaffold/tests/7b-struct-int-array-hello
scaffold/tests/7b-struct-int-array-pointer
scaffold/tests/7b-struct-int-array
scaffold/tests/7c-dynarray
scaffold/tests/7d-cast-char
scaffold/tests/7e-struct-array-access
scaffold/tests/7f-struct-pointer-arithmetic
scaffold/tests/7g-struct-byte-word-field
scaffold/tests/7h-struct-assign
scaffold/tests/7i-struct-struct-simple
scaffold/tests/7i-struct-struct
scaffold/tests/7k-empty-for
scaffold/tests/7k-for-each-elem-simple
scaffold/tests/7k-for-each-elem
scaffold/tests/7l-struct-any-size-array-simple
scaffold/tests/7l-struct-any-size-array
scaffold/tests/7m-struct-char-array-assign
scaffold/tests/7n-struct-struct-array
scaffold/tests/7o-struct-pre-post-simple
scaffold/tests/7o-struct-pre-post
scaffold/tests/7p-struct-cast
scaffold/tests/7q-bit-field-simple
scaffold/tests/7q-bit-field
scaffold/tests/7r-sign-extend
scaffold/tests/7s-struct-short
scaffold/tests/7s-unsigned-compare
scaffold/tests/7t-function-destruct
scaffold/tests/7u-double
scaffold/tests/7u-long-long
scaffold/tests/7u-ternary-expression
scaffold/tests/7u-call-ternary
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/7u-inc-byte-word
scaffold/tests/7u-struct-func
scaffold/tests/7u-struct-size10
scaffold/tests/7u-vstack
lib/tests/setjmp/80-setjmp
lib/tests/stdio/80-sscanf
lib/tests/stdlib/80-qsort
lib/tests/stdlib/80-qsort-dupes
lib/tests/string/80-strncpy
lib/tests/string/80-strrchr
scaffold/tests/82-define
scaffold/tests/83-heterogenoous-init
scaffold/tests/84-struct-field-list
scaffold/tests/85-sizeof
lib/tests/dirent/90-readdir
lib/tests/io/90-stat
lib/tests/posix/90-unsetenv
lib/tests/signal/90-signal
lib/tests/stdio/90-fopen
lib/tests/stdio/90-fopen-append
lib/tests/stdio/90-fread-fwrite
lib/tests/stdio/90-fseek
lib/tests/stdlib/90-strtol
lib/tests/string/90-snprintf
lib/tests/string/90-strpbrk
lib/tests/string/90-strspn
scaffold/tests/a0-call-trunc-char
scaffold/tests/a0-call-trunc-short
scaffold/tests/a0-call-trunc-int
scaffold/tests/a0-math-divide-signed-negative
scaffold/tests/a1-global-no-align
scaffold/tests/a1-global-no-clobber
"
broken="$broken
lib/tests/posix/50-getenv
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/17-compare-unsigned-char-le
scaffold/tests/17-compare-unsigned-short-le
scaffold/tests/66-local-char-array
scaffold/tests/a0-call-trunc-int
scaffold/tests/a0-math-divide-signed-negative
"
if [ "$mes_arch" = "x86_64-gcc" ]; then
broken="$broken
scaffold/tests/21-char-array
scaffold/tests/41-ternary
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
scaffold/tests/stdio/70-printf-stdarg
scaffold/tests/stdio/70-printf-simple
scaffold/tests/stdio/70-printf
lib/tests/setjmp/80-setjmp
scaffold/tests/a1-global-no-align
"
# Debian: debugme itoa is broken
broken="$broken
scaffold/tests/47-function-expression
scaffold/tests/62-array
scaffold/tests/65-read
scaffold/tests/85-sizeof
lib/tests/mes/90-abtod
lib/tests/mes/90-dtoab
lib/tests/posix/90-execlp
"
fi
set +e
expect=$(echo $broken | wc -w)
pass=0
fail=0
total=0
for t in $tests; do
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
b=$(basename "$t")
if [ -z "${b/[012][0-9]-*/}" ]; then
libc=
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
elif [ -z "${b/[34][0-9]-*/}" ]; then
libc='-l c-mini'
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
elif [ -z "${b/[78][0-9a-z]-*/}" ]; then
libc='-l c+tcc'
mescc: Mes C Library: Populate with function tests from scaffold. * .gitignore: Update. * build-aux/bootstrap.sh.in: Update. * build-aux/build-mes.sh: Update. * build-aux/check-mescc.sh: Update. * lib/tests/assert/50-assert.c: Move from scaffold/tests/50-assert.c. * lib/tests/dirent/90-readdir.c: Move from scaffold/tests/99-readdir.c. * lib/tests/dirent/readdir.dir: Move from scaffold/tests/readdir.dir. * lib/tests/io/90-stat.c: Move from scaffold/tests/92-stat.c. * lib/tests/mes/30-oputs.c: Move from scaffold/tests/31-oputs.c. * lib/tests/mes/50-itoa.c: Move from scaffold/tests/51-itoa.c. * lib/tests/posix/90-unsetenv.c: Move from scaffold/tests/94-unsetenv.c. * lib/tests/setjmp/80-setjmp.c: Move from scaffold/tests/80-setjmp.c. * lib/tests/signal/90-signal.c: Move from scaffold/tests/95-signal.c. * lib/tests/stdio/70-printf-hello.c: Move from scaffold/tests/70-printf-hello.c. * lib/tests/stdio/70-printf-simple.c: Move from scaffold/tests/70-printf-simple.c. * lib/tests/stdio/70-printf.c: Move from scaffold/tests/70-printf.c. * lib/tests/stdio/80-sscanf.c: Move from scaffold/tests/87-sscanf.c. * lib/tests/stdio/90-fopen-append.c: Move from scaffold/tests/98-fopen.c. * lib/tests/stdio/90-fopen.c: Move from scaffold/tests/97-fopen.c. * lib/tests/stdio/90-fread-fwrite.c: Move from scaffold/tests/93-fread-fwrite.c. * lib/tests/stdio/90-fseek.c: Move from scaffold/tests/91-fseek.c. * lib/tests/stdlib/50-getenv.c: Move from lib/tests/stdlib/getenv.c. * lib/tests/stdlib/50-malloc.c: Move from lib/tests/stdlib/malloc.c. * lib/tests/stdlib/70-strtoull.c: Move from scaffold/tests/7j-strtoull.c. * lib/tests/stdlib/80-qsort-dupes.c: Move from scaffold/tests/81-qsort-dupes.c. * lib/tests/stdlib/80-qsort.c: Move from scaffold/tests/81-qsort.c. * lib/tests/stdlib/90-strtol.c: Move from scaffold/tests/96-strto.c. * lib/tests/string/30-strlen.c: Move from scaffold/tests/30-strlen.c. * lib/tests/string/50-strcmp.c: Move from scaffold/tests/51-strcmp.c. * lib/tests/string/50-strcpy.c: Move from scaffold/tests/53-strcpy.c. * lib/tests/string/50-strncmp.c: Move from scaffold/tests/51-strncmp.c. * lib/tests/string/70-strchr.c: Move from scaffold/tests/70-strchr.c. * lib/tests/string/80-strncpy.c: Move from scaffold/tests/86-strncpy.c. * lib/tests/string/80-strrchr.c: Move from scaffold/tests/88-strrchr.c. * lib/tests/string/90-snprintf.c: Move from scaffold/tests/9a-snprintf.c. * lib/tests/string/90-strpbrk.c: Move from scaffold/tests/90-strpbrk.c. * lib/tests/string/90-strspn.c: Move from scaffold/tests/90-strspn.c.
2019-02-24 16:51:53 +00:00
elif [ -z "${b/9[0-9a-z]-*/}" ]; then
libc='-l c+gnu'
else
libc='-l c'
fi
sh $test_sh "$t" > "$t".log 2>&1
r=$?
total=$(expr $total + 1)
if [ $r = 0 ]; then
echo $t: [OK]
pass=$(expr $pass + 1)
else
echo $t: [FAIL]
fail=$(expr $fail + 1)
fi
done
[ $expect != 0 ] && echo "expect: $expect"
[ $fail != 0 ] && echo "failed: $fail"
[ $fail -lt $expect ] && echo "solved: $(expr $expect - $fail)"
echo "passed: $pass"
echo "total: $total"
if [ $fail != 0 -a $fail -gt $expect ]; then
echo FAILED: $fail/$total
exit 1
elif [ $fail != 0 ]; then
echo PASS: $pass/$total
else
echo PASS: $total
fi