Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Fuchsia OS
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hexang-mirrors
Fuchsia OS
Commits
2cfa603e
Commit
2cfa603e
authored
6 years ago
by
Aidan Wolter
Committed by
CQ bot account: commit-bot@chromium.org
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update docs with new `fx run` format
Bug: None Test: None Change-Id: Ifb7c85b400a48fc9913c54f57a1a17f5ed87e56a
parent
419e1cdc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
development/workflows/testing_faq.md
+1
-1
1 addition, 1 deletion
development/workflows/testing_faq.md
getting_started.md
+13
-4
13 additions, 4 deletions
getting_started.md
with
14 additions
and
5 deletions
development/workflows/testing_faq.md
+
1
−
1
View file @
2cfa603e
...
...
@@ -71,7 +71,7 @@ while piping the output back to your workstation terminal. Slick!
Make sure your device is running (hit Ctrl-D to boot an existing image) and
connected to your workstation.
If your target device is a QEMU emulator, then it needs networking to receive
the test package. Start your emulator with
`fx run -N`
.
the test package. Start your emulator with
`fx run
--
-N`
.
From your workstation,
`fx run-test scenic_unittests`
. The argument to
`run-test`
is the name of the test program as defined in
`BUILD.gn`
, for
...
...
This diff is collapsed.
Click to expand it.
getting_started.md
+
13
−
4
View file @
2cfa603e
...
...
@@ -121,12 +121,21 @@ disk image:
fx run
```
There are various flags for
`fx run`
to control QEMU's configuration:
The
`fx run`
command will prepare a QEMU disk image, then call
`run-zircon`
to
boot Zircon. To specify the disk size, use the
`-S`
option:
*
`-S`
sets QEMU's disk size. Units can be specified by suffix as "k", "K", "M",
"G", and "T".
Use
`fx run -h`
to see all available options for
`fx run`
, and
`fx run -- -h`
to
see all available options for
`run-zircon`
.
There are various flags to control QEMU's configuration. As these flags must be
forwarded to
`run-zircon`
, they must follow after a
`--`
.
*
`-m`
sets QEMU's memory size in MB.
*
`-g`
enables graphics (see below).
*
`-N`
enables networking (see below).
Use
`fx run -
h`
to see all available options.
Example:
`fx run -
S 2G -- -g`
#### QEMU tips
...
...
@@ -141,7 +150,7 @@ support. Only the Zircon UI renders.
To enable graphics under QEMU, add the
`-g`
flag to
`fx run`
:
```
fx run -g
fx run
--
-g
```
#### Enabling Network
...
...
@@ -152,7 +161,7 @@ a virtual interface for QEMU's use.
Once this is done you can add the
`-N`
and
`-u`
flags to
`fx run`
:
```
fx run -N -u $FUCHSIA_SCRIPTS_DIR/start-dhcp-server.sh
fx run
--
-N -u $FUCHSIA_SCRIPTS_DIR/start-dhcp-server.sh
```
The
`-u`
flag runs a script that sets up a local DHCP server and NAT to
...
...
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