add memeater to tests

This commit is contained in:
Aurel Feer 2022-03-30 13:14:01 +02:00
parent 1ec7d103a2
commit d05b40fdc8
4 changed files with 23 additions and 1 deletions

8
include/test_ipc.h Normal file
View 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 */

View File

@ -19,7 +19,8 @@
"test_helper.c",
"test_mm.c",
"test_paging.c",
"test_spawn.c"
"test_spawn.c",
"test_ipc.c"
],
addLibraries = [
]

View File

@ -12,6 +12,7 @@
#include <test_mm.h>
#include <test_paging.h>
#include <test_spawn.h>
#include <test_ipc.h>
void
grading_setup_bsp_init(int argc, char **argv) {
@ -36,6 +37,7 @@ grading_test_mm(struct mm *test) {
void
grading_test_early(void) {
do_test_spawn();
do_test_ipc();
}
void

11
lib/grading/test_ipc.c Normal file
View 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));
}