add memeater to tests
This commit is contained in:
parent
1ec7d103a2
commit
d05b40fdc8
8
include/test_ipc.h
Normal file
8
include/test_ipc.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#ifndef __TEST_IPC_H
|
||||||
|
#define __TEST_IPC_H
|
||||||
|
|
||||||
|
#include <aos/aos.h>
|
||||||
|
|
||||||
|
void do_test_ipc(void);
|
||||||
|
|
||||||
|
#endif /* __TEST_IPC_H */
|
||||||
@ -19,7 +19,8 @@
|
|||||||
"test_helper.c",
|
"test_helper.c",
|
||||||
"test_mm.c",
|
"test_mm.c",
|
||||||
"test_paging.c",
|
"test_paging.c",
|
||||||
"test_spawn.c"
|
"test_spawn.c",
|
||||||
|
"test_ipc.c"
|
||||||
],
|
],
|
||||||
addLibraries = [
|
addLibraries = [
|
||||||
]
|
]
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
#include <test_mm.h>
|
#include <test_mm.h>
|
||||||
#include <test_paging.h>
|
#include <test_paging.h>
|
||||||
#include <test_spawn.h>
|
#include <test_spawn.h>
|
||||||
|
#include <test_ipc.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
grading_setup_bsp_init(int argc, char **argv) {
|
grading_setup_bsp_init(int argc, char **argv) {
|
||||||
@ -36,6 +37,7 @@ grading_test_mm(struct mm *test) {
|
|||||||
void
|
void
|
||||||
grading_test_early(void) {
|
grading_test_early(void) {
|
||||||
do_test_spawn();
|
do_test_spawn();
|
||||||
|
do_test_ipc();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
11
lib/grading/test_ipc.c
Normal file
11
lib/grading/test_ipc.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include <test_helper.h>
|
||||||
|
#include <test_ipc.h>
|
||||||
|
#include <spawn/spawn.h>
|
||||||
|
|
||||||
|
void do_test_ipc(void) {
|
||||||
|
struct spawninfo si;
|
||||||
|
domainid_t pid;
|
||||||
|
|
||||||
|
CHECK_ERR(spawn_load_by_name("memeater", &si, &pid));
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user