summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: add test for /sbin/mount.<type> callKarel Zak2007-03-223-1/+52
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: fix --systohc sets clock 0.5 seconds slowKarel Zak2007-03-201-1/+1
| | | | | | | | | | | | | | | | quote from rh150493: The kernel code, when setting the BIOS clock notes that the clock time ticks to the next second 0.5 seconds after adjusting it (see linux/arch/i386/kernel/time.c). hwclock --systohc sets the CMOS clock at the 1 second boundry and thus causes the clock to be wrong by 500ms each time it is reset. If the clock is set every shutdown then the clock will have a reboot-count related drift as well as the natural drift problems of the clock. Note that this also mucks up the drift calculations, of course. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add hwclock systohc testKarel Zak2007-03-203-1/+80
| | | | | | | | | | The test detects how "hwclock --systohc" untune the clock. Now the hwclock command causes the hw clock to be wrong by 500ms each time it is reset. The test resets the clock 10 times and result is 5 sec difference between NTP and the clock. That's a bug... and it has to bee fixed in a next commit. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add ts_ok and ts_failedKarel Zak2007-03-191-8/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add library for LD_PRELOAD to manipulate with time() in testsKarel Zak2007-03-142-1/+33
| | | | | | | | The cal command generates output that depends on time(). For reliable regression tests we need to use still same time. It seems that LD_PRELOAD is pretty simple way. Signed-off-by: Karel Zak <kzak@redhat.com>
* login: add IPv6 supportKarel Zak2007-03-101-0/+3
| | | | | | | | | | This support includes: * non-PAM version supports IPv6 ranges in /etc/usertty * utmp records with IPv6 addresses Based on patch by: Milan Zazrivec <mzazrivec@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* login: add regression test for IP address checking codeKarel Zak2007-03-094-1/+25
| | | | | | | The hnmatch() in checktty.c is checking IP addresses if the login util is compiled without PAM support. Signed-off-by: Karel Zak <kzak@redhat.com>
* look: fix problem with !isalnum() wordsKarel Zak2007-03-061-0/+1
| | | | | | for example "$ look apple-pie" Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add look test for words with separatorKarel Zak2007-03-064-2/+35
| | | | | | $ look apple-pie Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add expected outputs for cramfsKarel Zak2007-02-272-4/+4127
| | | | | | The patch aslo reduce number of files and dirs in mkfs.cramfs tests. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mkfs.cramfs testsKarel Zak2007-02-273-1/+117
| | | | | | This test shows that actual mkfs.cramfs is ugly due MAXENTRIES (100) limit. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix README filenames and add missing files to EXTRA_DISTsKarel Zak2007-02-081-7/+9
| | | | | | Also, the patch makes "make mrproper" more robust. Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: add regression testKarel Zak2007-02-074-4/+101
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Clean up pagesize/PAGE_SIZE usage.Karel Zak2007-02-061-1/+1
| | | | | | | | | Now all code in util-linux uses sysconf(_SC_PAGESIZE) that is standardized and preferred way of querying page size. The asm/page.h file is not included to the code anymore. (This patch doesn't change mount's FS detection code which will be removed later). Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix argv[] usage in mnt_test_sysinfo.cKarel Zak2007-02-061-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* namei: new regression testKarel Zak2007-01-314-4/+50
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* col: getwchar() errors shouldn't be hiddenKarel Zak2007-01-305-1/+25
| | | | | | | | The col truncates output when multibyte errors is detected, but the problem is not reported to stderr and return code is still same like for successful exit. This stupid behaviour is fixed by this patch. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add return codeKarel Zak2007-01-281-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: add new tests for ipcs limitsKarel Zak2007-01-048-3/+166
| | | | | | The tests check if data from kernel and from the ipcs command are same. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add simple helper that returns info about systemKarel Zak2007-01-044-0/+116
| | | | | | usage: tests/helpers/mnt_test_sysinfo <infoname> Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: fix typo in Semaphore headersKarel Zak2007-01-041-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: add regression test for output headersKarel Zak2007-01-046-1/+123
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add basic infrastructure for regression testsKarel Zak2007-01-047-0/+122
The patch adds tests/ directory with simple regression tests infrastructure. Also, it adds the "ts-mount-paths" test that testing if all defined paths (fstab, mtab, locks) are still same. Signed-off-by: Karel Zak <kzak@redhat.com>