#
ec9ca1a6 |
|
01-May-2018 |
George Kulakowski <kulakowski@google.com> |
[unittest] Remove fbl header dependency This was previously depended on via MODULE_COMPILEFLAGS, which is not respected when a package is exported. This probably needs some rethinking in general, but for this case it's easy enough to just use the limits.h version to keep the spice flowing^W^W rollers rolling. Change-Id: Ief5083ce485421d3c7e25b9801968bd053022e43
|
#
3db66cce |
|
23-Apr-2018 |
Doug Evans <dje@google.com> |
[ulib][unittest] Add watchdog timer If the timer goes off before the test completes then the process is terminated. A new option --w <seconds> is added to runtests to set the timeout. A value of zero disables the timeout. This is passed to tests via the RUNTESTS_WATCHDOG_TIMEOUT env var. New -w option manually tested with: $ runtests -w $ runtests -w "" $ runtests -w -1 $ runtests -w 123foo $ runtests -w 2147483648 $ runtests -w 0x80000000 All flag an error as expected, and these work: $ runtests -w 2147483647 $ runtests -w 0x7fffffff And this works and triggers timeouts: $ runtests -w 2 ZX-2018 #done Change-Id: Ia9bc9e29ce93da3973ac58f63393096b5c836d37
|
#
beb4a741 |
|
11-Apr-2018 |
Mark Seaborn <mseaborn@google.com> |
[unittest] Make the perftest library usable from the GN build (in Garnet) perftest depends on unittest, so to make perftest usable from the GN build we must also make unittest usable there by adding a MODULE_PACKAGE declaration (see zircon/public/README.md). perftest already has a MODULE_PACKAGE declaration. ZX-1715 Change-Id: I27d16dfed9856a77dfa4f37826db92cd333d4880
|
#
0728e073 |
|
26-Jan-2018 |
Brett Wilson <brettw@chromium.org> |
[tests] Convert unittest library to C++ source. Run clang-format. NULLs, casts, and some typedefs were updated, but otherwise the code change should be minimal. This preserves C compat in the headers and doesn't use any C++ library functions. Change-Id: I0ac80611bbaf9c0b9adfed65f6ad6fb22afea461
|
#
f3e2126c |
|
12-Sep-2017 |
Roland McGrath <mcgrathr@google.com> |
[zx] Magenta -> Zircon The Great Renaming is here! Change-Id: I3229bdeb2a3d0e40fb4db6fec8ca7d971fbffb94
|
#
59e644b1 |
|
07-Sep-2017 |
George Kulakowski <kulakowski@google.com> |
[zircon][mxtl->fbl] Rename mxtl to fbl Change-Id: Ie21b6498e1bfb0a7fa0315e40b9e5c3ee78646be
|
#
3eba7de5 |
|
25-Aug-2017 |
Brian Swetland <swetland@google.com> |
[build][groups] annotate 'misc' and 'test' modules This allows us to generate a bootdata.bin which excludes them, reducing it from 4.52MB to 2.65MB The default bootdata.bin still includes all modules. Change-Id: If13bfcacba9386a691e6b7c380eed53d67bb44eb
|
#
5c43698c |
|
24-Aug-2017 |
Jeff Brown <jeffbrown@google.com> |
[unittest] Support compiling tests for the host. Note that crash tests are not supported on the host. Change-Id: I6bf47041344c6df4b5674d46e7d35777fa15599d
|
#
f2e8b180 |
|
01-Jun-2017 |
Jocelyn Dang <jocelyndang@google.com> |
[unittest] Run an exception handler thread so crashes don't bubble up to system handler. To enable the exception handler, a test should be run with RUN_TEST_ENABLE_CRASH_HANDLER. Tests can then call REGISTER_CRASH to register any processes that are expected to crash. If a crash was registered and occurs, the exception is caught and the test resumes. If a crash was not registered, the exception will be passed up to crashlogger and then the test will fail immediately. At the conclusion of the test, if a crash was registered and did not occur, the test will fail. MG-802 Change-Id: Ie1a7dd3db33109e4c5ea9cfef75097df0365b35b
|
#
0d5ae8c9 |
|
12-May-2017 |
Dave Bort <dbort@google.com> |
[ulib] Merge ulib/hexdump into ulib/pretty Change-Id: I194595de04e83178121c455f31732d1046448850
|
#
16656ae0 |
|
05-Apr-2017 |
Brian Swetland <swetland@google.com> |
[build] flatten the build Previously we treated kernel/, system/, and third_party/ as overlays on a shared namespace. This required the concept of "canonical" module names, and a lot of complexity to ensure that things didn't collide and the build worked. This change gets rid of that, no longer passes -I to make, so that include directives from our *.mk files do not magically wildcard across various paths, etc. The most user-visible change is that everywhere where a module name is specified (MODULE_DEPS, MODULE_LIBS, etc), full module names like kernel/lib/io or system/ulib/mxio must be used instead of previously-allowed "short" names like lib/io and ulib/mxio. The build output still has a similar shape, but the first segment of the module path (kernel/, system/, or third_party/) is no longer elided under $(BUILDDIR) Change-Id: I525aba1da1c86eb7a86007bddc669f7eeebfedd5
|
#
12242caa |
|
07-Mar-2017 |
Brian Swetland <swetland@google.com> |
[build][musl] refer to musl libc as ulib/c This makes the build rules and the intermediate output files easier to understand, without having to modify the path where musl libc lives. The biggest observeable difference is the build intermediate files: $ ls build-magenta-pc-x86-64/ulib/c config-module.h libc.abi.h libc.abi.stamp libc.so libc.so.id libc.so.strip libc.a libc.abi.o libc.a.opts libc.so.abi libc.so.opts third_party which previously were at build-magenta-pc-x86/ulib/musl and named libmusl.* and the replacing of ulib/musl with ulib/c in the library dependencies of all the rules.mk files (the vast bulk of this change) Change-Id: If9c5d522099d2c9ac5bdb666b8e67a2eb3d316ee
|
#
4fb1ae03 |
|
26-Aug-2016 |
Mike Voydanoff <voydanoff@google.com> |
[ddk] Move hexdump utils to a separate library Change-Id: I6a2f061f886fc98db656fc4f0a991887f11c3ba9
|
#
8fdfaf23 |
|
23-Aug-2016 |
Brian Swetland <swetland@google.com> |
[system] remove unneeded deps on libruntime Change-Id: Ia612d777b36dada7fda112aa41a6d7a49a212da0
|
#
66a201f1 |
|
16-Aug-2016 |
Brian Swetland <swetland@frotz.net> |
[system] align license and license banners with Fuchsia This adjusts the Magenta userspace code to match the prevailing license in Fuchsia (three-clause BSD), using the same banner and license text. Change-Id: I6b6d79435c5dbaa32027888874849e4f47aaa7be
|
#
3df798f3 |
|
10-Aug-2016 |
Doug Evans <dje@google.com> |
[system][ulib][test-utils] Create test-utils library. test-utils is moved from unittest to its own library. The reason for this is that test-utils uses mxio but unittest cannot use mxio. See system/ulib/unittest/README.md and system/utest/core/README.md. Change-Id: Id79ea8a4cf8cc948994cef5bcc3dfe035e90bff4
|
#
42593b3e |
|
05-Aug-2016 |
Doug Evans <dje@google.com> |
[system][unittest] Some additions to test-utils. tu_syscall_fail renamed to tu_fatal. New functions: tu_launch tu_launch_mxio_etc tu_io_port_create tu_handle_get_basic_info Change-Id: I6ba9cf58226fc993633b388707cdb4b892b4cf80
|
#
f358d68e |
|
29-Jul-2016 |
Brian Swetland <swetland@google.com> |
[build] make musl-static the exception rather than musl-shared This makes the common uapp, ulib, or utest rules.mk much more comprehensible. Some day we'll eliminate the need for -static entirely, but that requires some deeper refactoring. Change-Id: Ifcdb635e5af7bf0b033632358164c3042e7e6d4a
|
#
d8a400e1 |
|
29-Jul-2016 |
Brian Swetland <swetland@google.com> |
[build] tidy up the user build some more Change-Id: Ifba635a3b473df533e2fefc4d52251e8d20a5582
|
#
1ba4b288 |
|
28-Jul-2016 |
Roland McGrath <mcgrathr@google.com> |
[uapp] [utest] Switch most uapp and utest builds to dynamic linking Nearly every uapp and utest that can be dynamically linked is now. The mxr-tls test is omitted because it's broken when dynamically linked; that will probably be moot after the forthcoming TLS revamp. A few test helper programs cannot use dynamic linking as written because they get run with a nonstandard bootstrap message that does not include the magic required for the dynamic linker's startup. I didn't touch anything using ulib/ddk because I didn't bother to figure out how that fits together. Change-Id: I93b08960d946e23cd4ac89216e6d32789f99405a
|
#
829bbed2 |
|
12-Jul-2016 |
Doug Evans <dje@google.com> |
[system][ulib] Add test-utils to unittest. This is a collection of utilities for use by utest. Typically they are wrappers on system calls, and other functions, to free the caller from having to check the return code (in such cases where there is no point in continuing with the test if the call fails). Change-Id: I2c6f18ce0202abdfc001fae23c00439411da181a
|
#
24899b1a |
|
12-Jul-2016 |
Brian Swetland <swetland@google.com> |
[mxu][unittest] move hexdump utils to unittest, goodbye libmxu Change-Id: Ib726b94564c5718e1a6c28545da820d1c75394b0
|
#
26cb269f |
|
06-Jul-2016 |
George Kulakowski <kulakowski@google.com> |
[ulib][unittest] Move unittest into its own library Change-Id: I1586278e3bbb6ceacd26a1342985922dc8861cf7
|