summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2015-04-13add GNU libc test for ifaddrs.cWaldemar Brodkorb
2015-04-13fix linking for m68kWaldemar Brodkorb
2015-04-13disable new tests, atomic.h is missingWaldemar Brodkorb
2015-03-29merge uClibc git masterWaldemar Brodkorb
2015-03-27include: update atomic.h from glibcBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-27test: Add SIMULATOR_uclibc and SIMULATOR_glibcBernhard Reutner-Fischer
where SIMULATOR_glibc is an optional simulator to run host binaries and SIMULATOR_uclibc is an optional simulator to run target (uClibc) binaries. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-25test: tweaksBernhard Reutner-Fischer
Fix arc4random exclusion for real. Silence warning about missing prototype for external helper-function in tst-scandir Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-25utmp: favour POSIX utmpx over SVID utmpBernhard Reutner-Fischer
Note: _PATH_UTMPX == _PATH_UTMP and the utmp struct is identical to the utmpx struct so this only changes the external API entrypoints and NOT the underlying data source. This saves about 500b (~1300b from previously ~1950) while at it. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-22test: add utmpx testBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-22test: enable libm test log2Bernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-18libm: Add missing C99 float/ld wrappersBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-18test: skip arc4random on glibcBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-17test: Tweak arc4random exclusionBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-02-12really fix tests after getopt long changesWaldemar Brodkorb
uClibc changed getopt handling for testsuite, last merge with uClibc breaked it again for uClibc-ng.
2015-01-26merge upstream changesWaldemar Brodkorb
2015-01-13remove API dir. tests are disabled anyway.Waldemar Brodkorb
2015-01-07test: Adjust passed optionsBernhard Reutner-Fischer
to follow suit 067637375658047d70c296606ae17ef0bc86499d Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-01-04add -fPIC to some tests.Waldemar Brodkorb
This is required to avoid a assertion error in binutils 2.24 for m68k.
2014-12-30be sure to use EXTRA_CFLAGS for tests, tooWaldemar Brodkorb
2014-12-28fix warning when doing make cleanWaldemar Brodkorb
2014-12-28revert getopt changes to testsWaldemar Brodkorb
The upstream changes are not complete and let the tests fail. Revert the changes for now, may be upstream will make a better fix later.
2014-12-25merge upstream changesWaldemar Brodkorb
2014-12-15mkostemp: fix implementationAnthony G. Basile
mkostemp(char *template, int flags) generates a unique temporary filename from a template. The flags parameter accepts three of the same flags as open(2): O_APPEND, O_CLOEXEC, and O_SYNC. The current implementation of mkostemp(3) does not respect the flags and in fact confuses the flags with the file mode which should always be S_IRUSR | S_IWUSR. This patch corrects this issue. Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-12-15test: Some more tests under conditionalsBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-12-12unistd: allow to turn off getopt_longBernhard Reutner-Fischer
The GNU variant of getopt() previously had no way to turn off getopt_long() support.
2014-12-12test: disable ptytest unless HAS_PTYBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-12-10disable test for noMMUWaldemar Brodkorb
2014-12-10mkostemp: fix implementationAnthony G. Basile
mkostemp(char *template, int flags) generates a unique temporary filename from a template. The flags parameter accepts three of the same flags as open(2): O_APPEND, O_CLOEXEC, and O_SYNC. The current implementation of mkostemp(3) does not respect the flags and in fact confuses the flags with the file mode which should always be S_IRUSR | S_IWUSR. This patch corrects this issue. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-01Merge remote-tracking branch 'origin/upstream'Waldemar Brodkorb
2014-11-19locale: Add wcsftime()Bernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-10-08test: disable for noMMU caseWaldemar Brodkorb
Pthread tests are failing for coldfire with linuxthreads enabled.
2014-10-05disable a test for avr32, compile failure.Waldemar Brodkorb
2014-10-05disable some test for avr32, compile failures.Waldemar Brodkorb
2014-09-23testsuite: fix xtensa macrosWaldemar Brodkorb
2014-09-23add tls test macros for xtensaWaldemar Brodkorb
http://lists.linux-xtensa.org/pipermail/linux-xtensa/Week-of-Mon-20130819/001153.html
2014-09-20disable tests for arc as long as binutils is buggyWaldemar Brodkorb
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2014-09-20disable tests if HAVE_SHARED is not setWaldemar Brodkorb
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2014-09-20test: disable posix_fallocate64 for small embedded systemsWaldemar Brodkorb
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2014-09-09Merge remote-tracking branch 'origin/upstream'Waldemar Brodkorb
2014-09-09libc: add fallocate() and fallocate64()Anthony G. Basile
We add the Linux-specific function fallocate() which allows the user to directly manipulate allocate space for a file. fallocate() can operate in different modes, but the default mode is equivalent to posix_fallocate() which is specified in POSIX.1. Recent releases of e2fsprogs 1.42.11 and above expect fallocate64() to be available. Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-09-08bump version to 1.0.0Waldemar Brodkorb
prepare for stable release.
2014-09-04test: wcsftime depends on XLOCALEBernhard Reutner-Fischer
Thanks to Waldemar Brodkorb for noticing. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-09-04test: disable librt shmtest on non-MMU systemsBernhard Reutner-Fischer
This test fails for non-MMU systems, because it uses fork() Thanks to Waldemar Brodkorb! Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-08-29test: disable test for systems without FPUWaldemar Brodkorb
This test fails for systems without fpu. For example m68k build for non-mmu/non-fpu systems fail. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-08-28test: sync with glibc, use do_testWaldemar Brodkorb
This breaks out of a deadlock, which occurs when testing for powerpc. (qemu) Otherwise the test suite does not finish. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-08-28test: get out of the endless while loop, when bind failedWaldemar Brodkorb
When bind() fails in this test, then /tmp get filled up with temp files and upcoming tests will fail, because they need to create temp files, too. Better exit from the loop. Test still needs to be investigated to fix the failing bind(). Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-08-28test: do not depend on compileWaldemar Brodkorb
When you cross-compile the testsuite and then try to run on a system without gcc/binutils it would be nice if no compiling or linking is tried. Refresh test/README (suggested by Khem) Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-08-28test: NPTL: sync WRITE_BUFFER_SIZE with glibc testWaldemar Brodkorb
Test on Linux 3.16.1 in Qemu ARM fails with: TEST_EXEC nptl/ tst-cancel4 ret == 1 ; expected_ret == 0 make[1]: *** [tst-cancel4.exe] Error 1 The output of failed test is: minimum write buffer size too large ../Test.mak:89: recipe for target 'tst-cancel4.exe' failed Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-08-18test/math: fix for MIPS that takes 32/64 suffix into accountAlexey Brodkin
This fixes a breakage for MIPS32/64 introduced in: http://git.uclibc.org/uClibc/commit/?id=c02bc5763ba9c8f8b464bca89fba28e091ce1ffc Now ULP_SUFFIX is taken into account when searching for existing libm-test-ulps-ARCH Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com> Cc: Waldemar Brodkorb <wbx@openadk.org> Cc: Vineet Gupta <vgupta@synopsys.com> Cc: Anton Kolesov <akolesov@synopsys.com> Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-08-18test/math: fix for disabled long double mathAlexey Brodkin
Commit "test: cater for config" http://git.uclibc.org/uClibc/commit/test/math/Makefile.in?id=7598eeaa1defa2884adaa890bb115c493d69cc35 inverted check from ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y) to ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),) with first branch indeed inverted - instead of adding tests they were excluded. But "else" branch was not moved up (remember check was inverted). This causes compile breakage when building basic-test.c: --->--- TEST_LINK math/ basic-test basic-test.c: In function 'ldouble_test': basic-test.c:111:1: warning: implicit declaration of function 'nanl' [-Wimplicit-function-declaration] TEST_FUNC (ldouble_test, long double, nanl, LDBL_EPSILON, HUGE_VALL) ^ basic-test.o: In function `main': basic-test.c:(.text.startup+0x834): undefined reference to `nanl' basic-test.c:(.text.startup+0x858): undefined reference to `nanl' basic-test.c:(.text.startup+0x880): undefined reference to `nanl' basic-test.c:(.text.startup+0x8a8): undefined reference to `nanl' basic-test.c:(.text.startup+0x8d4): undefined reference to `nanl' basic-test.o:basic-test.c:(.text.startup+0x8e0): more undefined references to `nanl' follow collect2: error: ld returned 1 exit status make[3]: *** [basic-test] Error 1 --->--- Fix is simple - merge "old else" branch with the first current one. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Vineet Gupta <vgupta@synopsys.com> Cc: Anton Kolesov <akolesov@synopsys.com> Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Cc: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>