summaryrefslogtreecommitdiffstats
path: root/test/Test.mak
Commit message (Collapse)AuthorAgeFilesLines
* test/math/*: unbreakDenys Vlasenko2010-10-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test/math was not running at all, presume it has bit rotted: It was trying to run libm-test.c as if it is a binary. It was looking for libm-test-ulps (file with allowed errors in lower bits) in arch-specific dirs which do not exist in uclibc, as a result wrong file (libm-test.inc) was used instead. Test failure was not showing the error result, user had to fish it out from some .out files. I added libm-test-ulps-ARCH files from recent glibc, this filtered out a lot of false positives. For example, cosf(M_PI_6l * 4.0) ideally should be -0.5, we are getting -0.50000005047356477217, and this isn't a failure (the difference is one lowest bit of mantissa). "make check UCLIBC_ONLY=1 VERBOSE=1" still fails, but not as catastrophically as before. For the record, the failure occurs on the stage where we check 32-bit float functions, these tests fail: Failure: Test: modf (NaN, &x) == NaN Failure: Test: ilogb (NaN) == FP_ILOGBNAN plus exceptions allowed Failure: Test: scalb (2.0, 0.5) == NaN plus invalid exception Failure: Test: scalb (3.0, -2.5) == NaN plus invalid exception Failure: Test: scalb (0, NaN) == NaN Failure: Test: scalb (1, NaN) == NaN Failure: Test: scalb (0, inf) == NaN plus invalid exception Failure: Test: scalb (-0, inf) == NaN plus invalid exception Failure: Test: scalb (1, inf) == inf Failure: Test: scalb (-1, inf) == -inf Failure: Test: scalb (inf, -inf) == NaN plus invalid exception Failure: Test: scalb (-inf, -inf) == NaN plus invalid exception Failure: Test: scalb (1, NaN) == NaN Failure: Test: scalb (0, NaN) == NaN Failure: Test: scalb (inf, NaN) == NaN Failure: Test: pow (1, NaN) == 1 Failure: Test: pow (1, inf) == 1 Failure: Test: pow (-1, inf) == 1 Failure: Test: pow (1, -inf) == 1 Failure: Test: pow (-1, -inf) == 1 Failure: Test: rint (0.5) == 0.0 Failure: Test: rint (1.5) == 2.0 Failure: Test: rint (2.5) == 2.0 Failure: Test: rint (3.5) == 4.0 Failure: Test: rint (4.5) == 4.0 Failure: Test: rint (-0.5) == -0.0 Failure: Test: rint (-1.5) == -2.0 Failure: Test: rint (-2.5) == -2.0 Failure: Test: rint (-3.5) == -4.0 Failure: Test: rint (-4.5) == -4.0 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test/: compile fixes for nptl and tls testsAustin Foxley2009-11-291-2/+6
| | | | | | | | | | * Add a GLIBC_TESTS_DISABLED var because many of these tests need internal uClibc stuff. This disables the HOSTCC build of these tests * Fix up tls test macros for x86 * Fix the linking of the tls tests Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Merge remote branch 'origin/master' into nptlAustin Foxley2009-11-281-1/+7
|\ | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * sync confname, environments with glibcBernhard Reutner-Fischer2009-11-261-1/+7
| | | | | | | | | | | | | | Plus related synch. Add a testcase for the sysconf variables based on the one from glibc Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | Merge remote branch 'origin/master' into nptl_mergeAustin Foxley2009-11-221-13/+17
|\| | | | | | | | | | | | | | | | | Conflicts: Rules.mak libc/misc/sysvipc/msgq.c test/Rules.mak Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test: sync up with toplevel buildsysBernhard Reutner-Fischer2009-11-191-13/+17
| | | | | | | | | | | | | | test/Rules.mak was duplicating too much from the toplevel Rules.mak (which is included anyway). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | build system changes needed for nptlAustin Foxley2009-10-171-3/+2
|/ | | | | | | | | * add include dir for nptl * pregen nptl headers * add include dir to pick up subarchs * a few tweaks for test/* to match state of the code Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fixed makefiles inclusion flow to pass actual configuration variable values.Carmelo Amoroso2009-03-161-3/+0
| | | | | | | | | | | Test build system modified to be similar to uClibc one: * test custom logic moved from Makefile to a new Makefile.in (to be included by Makefile). * Makefile same for all tests and just used for including all other needed makefiles. Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - add and use EXTRA_DIRS to wipe the test/locale/C directoryBernhard Reutner-Fischer2008-10-101-0/+1
|
* Fix bad commit 23574 for io redirecting when running the test suiteHans-Christian Egtvedt2008-10-021-1/+1
| | | | | | | This patch fixes the previous r23574 and uses a correct syntax for redirecting. ./foo > bar.out 2>&1
* Use more generic redirecting of output in the test suiteHans-Christian Egtvedt2008-10-021-1/+1
| | | | | | | | | This patch replaces the "&> file" with "> file 2>> file". The latter is compatible with Busybox ash shell, which makes it easier to run the test suite on target. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* - remove the error counterBernhard Reutner-Fischer2008-07-111-6/+1
|
* - add error-counter, do not immediately exit if a testcase fails but printBernhard Reutner-Fischer2008-07-111-1/+7
| | | | the overall error-counter at the end and exit accordingly.
* Fix makefile target to run test when there are some shell script.Carmelo Amoroso2008-07-021-3/+1
| | | | | | | | | | | | SImply do not include SHEL_TESTS among RUNTIME_TESTS, because shell script have a their own rule to be excuted. The runtime evaluation by using the $(shell ...) command doesn't work due to immediate expansion of shell function. Currently only nptl tests have shell script, so this problem have been never discovered before. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* no need to delete the binary upon failureMike Frysinger2008-01-091-1/+0
|
* New test targets 'compile' and 'run'Khem Raj2007-03-051-37/+40
|
* fixup prototype warningsMike Frysinger2007-01-291-0/+1
|
* make error output a little more helpfulMike Frysinger2007-01-291-1/+2
|
* start pulling in top level Rules.mak so we get access to import ↵Mike Frysinger2006-12-161-0/+1
| | | | CFLAGS/LDFLAGS/CPPFLAGS
* Add CHECK_ONLY option to allow for running the tests on the target instead ↵"Steven J. Hill"2006-11-181-0/+2
| | | | of attempting to link or compile them. Perhaps I don't fully understand the test structure, but for TLS and NPTL the tests cannot be compiled on the target without a full source tree.
* also kill gdb files when building BFLT filesMike Frysinger2006-06-261-1/+1
|
* Remove CFLAGS-OMIT support, rename getline to get testregex compile w/ ↵Peter S. Mazinger2006-03-021-2/+2
| | | | -D_GNU_SOURCE
* dont execute shell tests if we just want to compileMike Frysinger2006-03-011-0/+2
|
* Add CFLAGS-OMIT support to glibc targets for now being the same as for ↵Peter S. Mazinger2006-03-011-2/+2
| | | | uclibc targets, adapt regex
* Add support to remove a flag from CFLAGSPeter S. Mazinger2006-03-011-1/+1
|
* add support for shell script testsMike Frysinger2006-03-011-5/+10
|
* fail if test.c is found so i stop screwing myself upMike Frysinger2006-02-281-0/+4
|
* make sure we clean everythingMike Frysinger2006-02-221-1/+2
|
* touchup output some more and add support for implicit TEST defining/disablingMike Frysinger2006-02-151-16/+12
|
* allow subdirs to define extra clean filesMike Frysinger2006-02-141-1/+1
|
* - tighten up outputMike Frysinger2006-02-141-24/+60
| | | | | | | - add support for per-test and per-subdir CFLAGS/LDFLAGS - move common uClibc/glibc code into defines - add support for diffing output between uClibc/glibc - add rules for generating libraries (needed by dlopen) ... only supports uClibc atm though
* add a way to just run uclibc or glibc testsMike Frysinger2005-11-151-1/+8
|
* new testing framework to unify duplicated code in subdirsMike Frysinger2005-07-021-0/+59