• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

grondo / flux-core / 549
74%
master: 80%

Build:
Build:
LAST BUILD BRANCH: cherry-pick-rebase-pull-request-3-7c65ded4-944b-4c3a-8e00-ed2b4fd71d98-b8e939d0-a398-47dc-b90f-81ca7bbc3c71
DEFAULT BRANCH: master
Ran 20 Jan 2016 10:06PM UTC
Jobs 1
Files 131
Run time 43min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
549

push

travis-ci

grondo
cmd/flux: use optparse for flux(1) subcommands

Convert flux(1) to use optparse_t for main option processing and the
handling of internal or "builtin" subcommands.

All internal flux(1) subcommands are now registered as optparse
subcommands. In order to ease the addition of new builtins, builtin
subcommands are grouped separately in src/cmd/builtin/*.c and compiled
into flux.c.

Each builtin module now exports a single "registration" function
named `subcommand_<name>_register`, where <name> is replaced with
the basename of the C source file. The registration function is
responsible for registering one or more new subcommands with flux.c
optparse_t object which is passed to the function.

A new script `builtin-cmds-list.sh` automatically generates a table of
these functions in builtin-cmds.c for use during flux.c initialization.

267 of 267 new or added lines in 7 files covered. (100.0%)

17323 of 23307 relevant lines covered (74.33%)

417127.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/cmd/builtin/env.c
2
100.0
src/cmd/builtin/broker.c
4
100.0
src/cmd/builtin/dmesg.c
5
100.0
src/cmd/builtin/attr.c
10
100.0
src/cmd/builtin/help.c
10
100.0
src/cmd/flux.c
30
100.0
src/cmd/builtin/content.c

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
src/modules/kvs/kvs.c
3
100.0
src/common/libflux/message.c
12
100.0
src/cmd/flux.c
Jobs
ID Job ID Ran Files Coverage
3 549.3 20 Jan 2016 10:49PM UTC 0
74.33
Travis Job 549.3
Source Files on build 549
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #549
  • 40282ade on github
  • Prev Build on subcmd (#548)
  • Next Build on subcmd (#550)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc