Commit Graph

26 Commits

Author SHA1 Message Date
jmmv 9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
pooka 2f312a0c44 check etfs mappings with offsets 2010-06-21 14:39:35 +00:00
pooka ec25c2dafe Check that etfs block mapping works for >2TB devices. 2010-06-20 17:43:33 +00:00
pooka 18f65594ec ... and remove the not-supposed-to-be-committed call to rump_sys_reboot() 2010-06-19 13:44:11 +00:00
pooka b7c691f4b9 fix pasto, sprinkle ATF_REQUIRE_EQ()
ATF_REQUIRE_ERRNO, oh ATF_REQUIRE_ERRNO, wherefore art thou ATF_REQUIRE_ERRNO?
2010-06-19 13:43:29 +00:00
pooka 6457f5fabe add test for block device support 2010-06-19 13:40:09 +00:00
pooka c6b3a389bf tp_glob -> tp-glob (i.e. better use correct keywords ..) 2010-06-17 08:31:20 +00:00
pooka 1647962cb4 Add simple etfs test which almost tests for bug fixed yesterday
(the yesterday bug was against an emulated block device, so slighlty
different).  But at least this test uncovered a few bugs already.
2010-06-16 19:29:33 +00:00
pooka e094e235ab add a vm allocator test which tests that:
* RUMP_MEMLIMIT works
* allocating memory with PR_NOWAIT will fail immediately if no memory
  is available and PR_WAITOK will wait for memory to be available
2010-06-14 21:06:09 +00:00
pooka 5c21ec6fa6 Add a test which checks autoloading modules from the host's
/stand/arch/vers/kmods works in rump (and that the result is usable ;).

On i386 this "just works".  For amd64, due to -mcmodel=kernel,
things are a little more complicated.  We must have the entire rump
kernel loaded in the lower 2GB.  Currently, this can be done either
by using the non-PIC version for the rump kernel compiled with
-mcmodel=small, or, as njoly pointed out, using netbsd32, which
causes vm_default_addr() to give something in the lower 2GB and
therefore shared libs "magically" getting loaded there.  I guess
it would be possible to put a suggested vaddr into the rump kernel
libs and make ld.elf_so map memory from the suggested address if
present ... but that's another show.

Also thanks to tron for access to an amd64 so that I could verify
the test works.
2010-06-09 12:35:45 +00:00
pooka 999c22b60a need bsd.own.mk to avoid the "NETBSDSRCDIR is nothing" syndrome 2010-05-31 23:53:02 +00:00
pooka 0854573c60 hmm, using unifdef for the previous might have been a good idea ... 2010-05-31 23:51:28 +00:00
pooka 104b695ac0 Now that atf gdb/coredump conflicts have been solved (thanks jmmv!),
remove USE_ATF ifdefs.
2010-05-31 23:44:54 +00:00
pooka 9b9ff1afec add tests for:
* threading
 * tsleep variants
 * uvm page busying and wanting
2010-05-31 23:36:12 +00:00
pooka 9a7330494a Add some kernel namespace (i.e. _KERNEL) helpers for regression tests. 2010-05-31 23:32:50 +00:00
pooka 90512ff195 convert to ifdef USE_ATF 2010-05-01 12:11:53 +00:00
pooka cdf297bb01 Disable module autoload so that it won't foil our module unload test. 2010-05-01 11:20:21 +00:00
pooka 05e0f1dba9 Update to use newstyle rump_module interfaces. 2010-03-05 18:49:30 +00:00
pooka da8d545fb8 msdosfs depends on disk devices now 2010-01-25 19:27:24 +00:00
he dcac85a1b9 It seems that LDADD.file gets added to the linker invocation after
the LDADD variable expansion.  To support static linking, ensure
that the common libraries gets tacked on at the end as well (order
matters for static linking), by using a convenience variable and
add it to the end of LDADD.t_modlinkset, as well as when doing the
general LDADD+= setting.
2009-11-28 22:20:38 +00:00
pooka aebec17a03 WARNS=4 2009-11-06 15:26:54 +00:00
pooka 5ffd8be0f2 rump_module -> rump_pub_module 2009-11-06 15:25:52 +00:00
pooka 7d89931c36 Add regression test to verify that linksets work correctly with rump. 2009-09-24 21:36:42 +00:00
he bcb5a47bca Apparently, there's not a clear dependency ordering for the libraries,
this becomes apparent when linking statically (e.g. as for sun2).
Add an extra instance of -lrump to the library list so that it can be
linked statically as well.
2009-06-09 11:18:50 +00:00
pooka 863335f97b don't hardcode /usr/lib path 2009-05-02 16:18:13 +00:00
pooka 80be26da9a add regression test for module init/fini in rump 2009-05-02 16:02:18 +00:00