summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | qemu-iotests: fix expected result for 019 after qemu-io changeKevin Wolf2012-02-221-2/+2
| | | | | | | | | | | | | | | | | | | | | The output of the alloc command in qemu-io has changed. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: test bdrv_load/save_vmstateKevin Wolf2012-02-223-0/+8867
| | | | | | | | | | | | | | | Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: common.pattern: allow spaces in io() operationKevin Wolf2012-02-221-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | We need to be able to pass "write -b" as an operation to the pattern testing functions. Unfortunately, this contains a space character... Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: test invalid pattern argument handling in qemu-ioChristoph Hellwig2012-02-223-0/+156
| | | | | | | | | | | | | | | Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Kevin Wolf <kwolf@redhat.com>
| * | qemu-iotests: replace FSF postal addresses with www.gnu.org linksChristoph Hellwig2012-02-2226-74/+26
| | | | | | | | | | | | | | | | | | | | | | | | Blue Swirl notices that we were using the old FSF post address in the license boilerplates. Replace both the old and new address with links to the gnu.org licenses homepage as suggested by Ben Pfaff. Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: test commiting changes to backing fileKevin Wolf2012-02-223-0/+1186
| | | | | | | | | | | | | | | Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: test qemu-img convert with backing file for the output imageKevin Wolf2012-02-224-0/+1213
| | | | | | | | | | | | | | | Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: test merge of backing file when convertingKevin Wolf2012-02-223-0/+1183
| | | | | | | | | | | | | | | Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: simple backing file testKevin Wolf2012-02-224-0/+1181
| | | | | | | | | | | | | | | Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: test I/O after EOF for growable filesChristoph Hellwig2012-02-223-0/+96
| | | | | | | | | | | | | | | Signed-off-by: Christoph Hellwig <hch@lst.de> Reviwed-by: Kevin Wolf <kwolf@redhat.com>
| * | qemu-iotests: fix pattern for write testStefan Weil2012-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The write pattern value 0axb is invalid and evaluates to 0, so the read check (which uses a correct value of 0xab) will fail. This failure will only be detected with a separate patch for qemu-io. Without it, qemu-io cannot interpret hex values and always uses a pattern value of 0. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: make a few more tests genericChristoph Hellwig2012-02-228-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | Pretend that a non-implemented check is always successful and thus allow various tests that were qcow2-specific before to be generic. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Kevin Wolf <kwolf@redhat.com>
| * | qemu-iotests: remove test image after 015 is doneChristoph Hellwig2012-02-221-1/+1
| | | | | | | | | | | | Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: add support for the vdi image formatChristoph Hellwig2012-02-221-0/+6
| | | | | | | | | | | | Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: add test for refcount table growth and snapshotsKevin Wolf2012-02-223-0/+106
| | | | | | | | | | | | | | | | | | | | | 015: Combined test to grow the refcount table and test snapshots. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
| * | qemu-iotests: skip test 005 for vpc format imagesChristoph Hellwig2012-02-221-1/+4
| | | | | | | | | | | | | | | | | | The vpc format doesn't support large enough image size for this test. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| * | qemu-iotests: Initial import into the public repository.Christoph Hellwig2012-02-2239-0/+110986
| / | | | | | | Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* | qapi: add tests for string-based visitorsPaolo Bonzini2012-02-211-2/+10
|/ | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* tests: Silence gtester in MakefileStefan Weil2012-01-191-1/+1
| | | | | | | | This prettifies make output a little by avoiding a very long line. As gtester prints the checks when they are run, no information is lost. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* cris: Update paths to match the move of tests/crisEdgar E. Iglesias2012-01-131-5/+5
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* test: eliminate libcheck tests and have make check use gtesterAnthony Liguori2012-01-121-5/+6
| | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* build: split unit test builds to a separate makefile fragmentAnthony Liguori2012-01-121-0/+38
| | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* tests: mv tests/* -> tests/tcgAnthony Liguori2012-01-12225-0/+0
| | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* tests/qruncom.c: Remove libqemu.a exampleChen Wei-Ren2011-12-091-284/+0
| | | | | | | | Remove libqemu example since libqemu.a is not available anymore. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* tests/Makefile: Remove qruncom targetChen Wei-Ren2011-12-091-6/+0
| | | | | | | | Remove qruncom target from the Makefile file. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* fix spelling in tests sub directoryDong Xu Wang2011-12-022-3/+3
| | | | | Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* target-xtensa: rename dc232b board to simMax Filippov2011-10-161-1/+1
| | | | | | | This is to get aligned with the linux name for this machine. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-xtensa: add MAC16 unit testsMax Filippov2011-10-152-0/+244
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-xtensa: fix guest hang on masked CCOMPARE interruptMax Filippov2011-10-151-0/+63
| | | | | | | | | | | | QEMU timer is used to post CCOMPARE interrupt when the core is halted. If that CCOMPARE interrupt is masked off then the timer must be rearmed in the callback, otherwise it will be rearmed next time the core goes to halt by the waiti instruction. Add test case into timer testsuite. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Remove blanks before \n in output stringsStefan Weil2011-09-161-1/+1
| | | | | | | | | | | | | | Those blanks violate the coding conventions, see scripts/checkpatch.pl. Blanks missing after colons in the changed lines were added. This patch does not try to fix tabs, long lines and other problems in the changed lines, therefore checkpatch.pl reports many violations. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* target-xtensa: add regression testsuiteMax Filippov2011-09-1028-0/+3087
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Use new macro QEMU_PACKED for packed structuresStefan Weil2011-09-031-5/+5
| | | | | | | | | | | | | | | | | | | | | Most changes were made using these commands: git grep -la '__attribute__((packed))'|xargs perl -pi -e 's/__attribute__\(\(packed\)\)/QEMU_PACKED/' git grep -la '__attribute__ ((packed))'|xargs perl -pi -e 's/__attribute__ \(\(packed\)\)/QEMU_PACKED/' git grep -la '__attribute__((__packed__))'|xargs perl -pi -e 's/__attribute__\(\(__packed__\)\)/QEMU_PACKED/' git grep -la '__attribute__ ((__packed__))'|xargs perl -pi -e 's/__attribute__ \(\(__packed__\)\)/QEMU_PACKED/' git grep -la '__attribute((packed))'|xargs perl -pi -e 's/__attribute\(\(packed\)\)/QEMU_PACKED/' Whitespace in linux-user/syscall_defs.h was fixed manually to avoid warnings from scripts/checkpatch.pl. Manual changes were also applied to hw/pc.c. I did not fix indentation with tabs in block/vvfat.c. The patch will show 4 errors with scripts/checkpatch.pl. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* trace: [configure] rename CONFIG_*_TRACE into CONFIG_TRACE_*Lluís2011-09-011-1/+1
| | | | | | | | | | | Provides a more hierarchical view of the variable domain. Also adds the CONFIG_TRACE_* variables for all backends. [Stefan added missing 'test' in stap if statement] Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* Use glib memory allocation and free functionsAnthony Liguori2011-08-201-4/+4
| | | | | | qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix spelling in comments (intruction -> instruction)Stefan Weil2011-05-081-1/+1
| | | | | Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* Fix typos in comments (accessable -> accessible, priveleged -> privileged)Stefan Weil2011-05-081-2/+2
| | | | | Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* tests/test-mmap.c: Check mmap() return value before using itPeter Maydell2011-04-141-1/+1
| | | | | | | | | Correct the position of a "stop if MAP_FAILED" check in the mmap() tests, so that if mmap() does fail we print a failure message rather than segfaulting inside memcpy(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* tests/cris: Fix some errors and potential crashesStefan Weil2011-04-034-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | These errors were reported by cppcheck: tests/cris/check_openpf1.c:30: error: Mismatching allocation and deallocation: f tests/cris/check_openpf2.c:13: error: Mismatching allocation and deallocation: f tests/cris/check_stat3.c:16: error: Buffer overrun possible for long cmd-line args tests/cris/check_stat4.c:18: error: Buffer overrun possible for long cmd-line args The first two are obvious coding errors (fopen needs fclose, not close). The last two may seem less important (nobody will start test code with an argument of more than 1022 characters which raises a buffer overrun). Fixing them nevertheless helps with static code checks like those done by cppcheck. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* lm32: opcode testsuiteMichael Walle2011-03-0767-0/+3048
| | | | | | | | This patch creates tests/lm32 directory and adds tests for every LatticeMico32 opcode. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* tests: Fix two memory leaksStefan Weil2011-02-201-0/+2
| | | | | | | | | | | Although both leaks are not really important, fix them to avoid cppcheck warnings: tests/linux-test.c:433: error: Memory leak: stack1 tests/linux-test.c:433: error: Memory leak: stack2 Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Delete useless 'extern' qualifiers for functionsBlue Swirl2011-01-231-2/+2
| | | | | | | 'extern' qualifier is useless for function declarations. Delete them. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Replace 'extern inline' with 'static inline'Blue Swirl2011-01-1710-28/+41
| | | | | Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* do not pass bogus $(SRC_PATH) include paths to cc during configurePaolo Bonzini2011-01-141-1/+2
| | | | | | | | | | Non-existent -I paths are dropped silently by the compiler, but still it is not polite to pass bogus options. Configure-time tests do not need any include files from the source path, so only include -I flags at make time (when they're properly expanded). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* rewrite i386 tests MakefilePaolo Bonzini2010-10-231-42/+78
| | | | | | | | | | | | | 1) compute path to i386 compiler from configure. If it is found, run the i386 tests. I use macros so that this approach could be applied for other arches as well. 2) provide an easily extensible way to add tests Most tests fail, but at least "make test" does something meaningful. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* fix test_pathPaolo Bonzini2010-10-232-3/+12
| | | | | | | | path.c grew quite a few new dependencies (mostly via cutils.c), include them. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* make runcom compile on recent distributionsPaolo Bonzini2010-10-231-7/+4
| | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* disable test_enter on i386, it is brokenPaolo Bonzini2010-10-231-0/+5
| | | | | | | | | | Many other tests fail, but this has an infinite loop with both qemu-i386 and native execution (albeit on x86_64), so there is something more going on. I'm not going to debug it now, so just disable the test. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* unbreak "make" from vpath-built tests directoryPaolo Bonzini2010-10-231-0/+1
| | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Remove wrong semicolon in macro definitionStefan Weil2010-09-141-1/+1
| | | | | | | | | Macros normally should not end with a semicolon, otherwise their usage results in two statements where only one statement was expected. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* cris: Correct settls1 testcase.Edgar E. Iglesias2010-07-291-2/+8
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
OpenPOWER on IntegriCloud