diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-21 01:23:37 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-21 01:26:09 +0200 |
commit | 1ff3666dc29c0eacf911c57d3e6b6a62bdc9cb78 (patch) | |
tree | a1c7d98eb2a370975bd82c6d3dc16349636ddddf /test | |
parent | d115a8cee02be828d46651a5fc91fdbfe23985f2 (diff) |
New build system
The new build system, called xbuild, is a minimalistic kbuild-like
make-based build system, also using kconfig for scalable configurations.
Diffstat (limited to 'test')
-rw-r--r-- | test/Kconfig | 41 | ||||
-rw-r--r-- | test/Makefile | 9 | ||||
-rw-r--r-- | test/test_mutex.c | 6 |
3 files changed, 53 insertions, 3 deletions
diff --git a/test/Kconfig b/test/Kconfig new file mode 100644 index 00000000..7a71f4fb --- /dev/null +++ b/test/Kconfig @@ -0,0 +1,41 @@ +menuconfig TEST_MODULE + bool "Test module" + default n + ---help--- + Run a test module instead of booting the system. + +if TEST_MODULE + +choice + prompt "Select test module" + +config TEST_MODULE_LLSYNC_DEFER + bool "llsync_defer" + +config TEST_MODULE_MUTEX + bool "mutex" + +config TEST_MODULE_MUTEX_PI + bool "mutex_pi" + +config TEST_MODULE_PMAP_UPDATE_MP + bool "pmap_update_mp" + +config TEST_MODULE_SREF_DIRTY_ZEROES + bool "sref_dirty_zeroes" + +config TEST_MODULE_SREF_NOREF + bool "sref_noref" + +config TEST_MODULE_SREF_WEAKREF + bool "sref_weakref" + +config TEST_MODULE_VM_PAGE_FILL + bool "vm_page_fill" + +config TEST_MODULE_XCALL + bool "xcall" + +endchoice + +endif diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 00000000..098cecbd --- /dev/null +++ b/test/Makefile @@ -0,0 +1,9 @@ +x15_SOURCES-$(CONFIG_TEST_MODULE_LLSYNC_DEFER) += test/test_llsync_defer.c +x15_SOURCES-$(CONFIG_TEST_MODULE_MUTEX) += test/test_mutex.c +x15_SOURCES-$(CONFIG_TEST_MODULE_MUTEX_PI) += test/test_mutex_pi.c +x15_SOURCES-$(CONFIG_TEST_MODULE_PMAP_UPDATE_MP) += test/test_pmap_update_mp.c +x15_SOURCES-$(CONFIG_TEST_MODULE_SREF_DIRTY_ZEROES) += test/test_sref_dirty_zeroes.c +x15_SOURCES-$(CONFIG_TEST_MODULE_SREF_NOREF) += test/test_sref_noref.c +x15_SOURCES-$(CONFIG_TEST_MODULE_SREF_WEAKREF) += test/test_sref_weakref.c +x15_SOURCES-$(CONFIG_TEST_MODULE_VM_PAGE_FILL) += test/test_vm_page_fill.c +x15_SOURCES-$(CONFIG_TEST_MODULE_XCALL) += test/test_xcall.c diff --git a/test/test_mutex.c b/test/test_mutex.c index 9e28c78a..d5cc5d13 100644 --- a/test/test_mutex.c +++ b/test/test_mutex.c @@ -151,11 +151,11 @@ test_report_syscnt(struct timer *timer) { uint64_t time; -#ifdef X15_MUTEX_PI +#ifdef CONFIG_MUTEX_PI syscnt_info("rtmutex"); -#else /* X15_MUTEX_PI */ +#else /* CONFIG_MUTEX_PI */ syscnt_info("mutex"); -#endif /* X15_MUTEX_PI */ +#endif /* CONFIG_MUTEX_PI */ time = timer_get_time(timer) + clock_ticks_from_ms(TEST_REPORT_INTERVAL); timer_schedule(timer, time); |