Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verlässliche Systemsoftware
projects
osv
Commits
0e0457ce
Commit
0e0457ce
authored
11 years ago
by
Avi Kivity
Browse files
Options
Downloads
Patches
Plain Diff
tests: move unit tests to an independent test (via testrunner.so)
parent
d1a46355
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.mak
+3
-3
3 additions, 3 deletions
build.mak
loader.cc
+0
-4
0 additions, 4 deletions
loader.cc
tests/tst-hub.cc
+7
-0
7 additions, 0 deletions
tests/tst-hub.cc
with
10 additions
and
7 deletions
build.mak
+
3
−
3
View file @
0e0457ce
...
...
@@ -85,6 +85,7 @@ tests += tests/tst-bsd-evh.so tests/tst-bsd-callout.so tests/tst-bsd-netisr.so \
tests/tst-bsd-netdriver.so tests/tst-virtionet.so
tests
+=
tests/tst-fpu.so
tests
+=
tests/tst-tracepoint.so
tests
+=
tests/tst-unit-tests.so
tests/hello/Hello.class
:
javabase=tests/hello
...
...
@@ -102,6 +103,7 @@ tests/tst-bsd-netdriver.so: tests/tst-bsd-netdriver.o
tests/tst-virtionet.so
:
tests/tst-virtionet.o
tests/tst-fpu.so
:
tests/tst-fpu.o
tests/tst-tracepoint.so
:
tests/tst-tracepoint.o
tests/tst-unit-tests.so
:
tests/tst-hub.o
all
:
loader.img loader.bin usr.img
...
...
@@ -223,8 +225,6 @@ objects += core/kprintf.o
objects
+=
core/trace.o
objects
+=
core/poll.o
unittests
:=
tests/tst-hub.o
include
$(src)/fs/build.mak
include
$(src)/libc/build.mak
...
...
@@ -245,7 +245,7 @@ libgcc_s.a = $(shell find $(gccbase) -name libgcc.a | grep -v /32/)
libgcc_eh.a
=
$(
shell find
$(
gccbase
)
-name
libgcc_eh.a |
grep
-v
/32/
)
loader.elf
:
arch/x64/boot.o arch/x64/loader.ld loader.o runtime.o $(drivers)
\
$(objects)
$(unittests)
dummy-shlib.so
\
$(objects) dummy-shlib.so
\
bootfs.bin
$(
call quiet,
$(
LD
)
-o
$@
\
-Bdynamic
--export-dynamic
--eh-frame-hdr
--enable-new-dtags
\
...
...
This diff is collapsed.
Click to expand it.
loader.cc
+
0
−
4
View file @
0e0457ce
...
...
@@ -22,7 +22,6 @@
#include
"drivers/clock.hh"
#include
"drivers/clockevent.hh"
#include
"barrier.hh"
#include
"tests/tst-hub.hh"
#include
"arch.hh"
#include
"osv/trace.hh"
...
...
@@ -181,9 +180,6 @@ void* do_main_thread(void *_args)
{
auto
args
=
static_cast
<
argblock
*>
(
_args
);
//Tests malloc and free using threads.
unit_tests
::
tests
::
instance
().
execute_tests
();
// Enumerate PCI devices
pci
::
pci_device_enumeration
();
...
...
This diff is collapsed.
Click to expand it.
tests/tst-hub.cc
+
7
−
0
View file @
0e0457ce
...
...
@@ -40,3 +40,10 @@ void tests::execute_tests() {
instance
().
run
();
}
int
main
(
int
ac
,
char
**
av
)
{
unit_tests
::
tests
::
instance
().
execute_tests
();
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment