.TH DUB-DUSTMITE 1 "2024-04-15" "The D Language Foundation" "The D Language Foundation" .SH NAME dub-dustmite \- Create reduced test cases for build errors .SH SYNOPSIS \fBdub dustmite \fR<\fIdestination-path\fR> \fIOPTIONS\&.\&.\&.\fR [-- <\fIapplication arguments\&.\&.\&.\fR>] .SH DESCRIPTION This command uses the Dustmite utility to isolate the cause of build errors in a DUB project. It will create a copy of all involved packages and run dustmite on this copy, leaving a reduced test case. Determining the desired error condition is done by checking the compiler/linker status code, as well as their output (stdout and stderr combined). If --program-status or --program-regex is given and the generated binary is an executable, it will be executed and its output will also be incorporated into the final decision. .SH OPTIONS .PP \fB\-\-compiler\-status\fR=\fIVALUE\fR .RS 4 The expected status code of the compiler run .RE .PP \fB\-\-compiler\-regex\fR=\fIVALUE\fR .RS 4 A regular expression used to match against the compiler output .RE .PP \fB\-\-linker\-status\fR=\fIVALUE\fR .RS 4 The expected status code of the linker run .RE .PP \fB\-\-linker\-regex\fR=\fIVALUE\fR .RS 4 A regular expression used to match against the linker output .RE .PP \fB\-\-program\-status\fR=\fIVALUE\fR .RS 4 The expected status code of the built executable .RE .PP \fB\-\-program\-regex\fR=\fIVALUE\fR .RS 4 A regular expression used to match against the program output .RE .PP \fB\-\-test\-package\fR=\fIVALUE\fR .RS 4 Perform a test run - usually only used internally .RE .PP \fB\-\-combined\fR .RS 4 Builds multiple packages with one compiler run .RE .PP \fB\-\-no\-redirect\fR .RS 4 Don't redirect stdout/stderr streams of the test command .RE .PP \fB\-\-strategy\fR=\fIVALUE\fR .RS 4 Set strategy (careful/lookback/pingpong/indepth/inbreadth) .RE .PP \fB\-j\fR .RS 4 Set number of look-ahead processes .RE .PP \fB\-\-trace\fR .RS 4 Save all attempted reductions to DIR.trace .RE .PP \fB\-b\fR, \fB\-\-build\fR=\fIVALUE\fR .RS 4 Specifies the type of build to perform. Note that setting the DFLAGS environment variable will override the build type with custom flags. Possible names: debug, plain, release, release-debug, release-nobounds, unittest, profile, profile-gc, docs, ddox, cov, cov-ctfe, unittest-cov, unittest-cov-ctfe, syntax and custom types .RE .PP \fB\-c\fR, \fB\-\-config\fR=\fIVALUE\fR .RS 4 Builds the specified configuration. Configurations can be defined in dub.json .RE .PP \fB\-\-override\-config\fR=\fIVALUE\fR .RS 4 Uses the specified configuration for a certain dependency. Can be specified multiple times. Format: --override-config=/ .RE .PP \fB\-\-compiler\fR=\fIVALUE\fR .RS 4 Specifies the compiler binary to use (can be a path). Arbitrary pre- and suffixes to the identifiers below are recognized (e.g. ldc2 or dmd-2.063) and matched to the proper compiler type: dmd, gdc, ldc, gdmd, ldmd .RE .PP \fB\-a\fR, \fB\-\-arch\fR=\fIVALUE\fR .RS 4 Force a different architecture (e.g. x86 or x86_64) .RE .PP \fB\-d\fR, \fB\-\-debug\fR=\fIVALUE\fR .RS 4 Define the specified `debug` version identifier when building - can be used multiple times .RE .PP \fB\-\-d\-version\fR=\fIVALUE\fR .RS 4 Define the specified `version` identifier when building - can be used multiple times. Use sparingly, with great power comes great responsibility! For commonly used or combined versions and versions that dependees should be able to use, create configurations in your package. .RE .PP \fB\-\-nodeps\fR .RS 4 Do not resolve missing dependencies before building .RE .PP \fB\-\-build\-mode\fR=\fIVALUE\fR .RS 4 Specifies the way the compiler and linker are invoked. Valid values: separate (default), allAtOnce, singleFile .RE .PP \fB\-\-single\fR .RS 4 Treats the package name as a filename. The file must contain a package recipe comment. .RE .PP \fB\-\-force\-remove\fR .RS 4 Deprecated option that does nothing. .RE .PP \fB\-\-filter\-versions\fR .RS 4 [Experimental] Filter version identifiers and debug version identifiers to improve build cache efficiency. .RE .SS COMMON OPTIONS See \fBdub\fR(1) .SH EXIT STATUS Forwards the exit code from \fBdustmite\fR(1) .SH FILES \fIdub\&.sdl\fR, \fIdub\&.json\fR .SH AUTHOR Copyright (c) 1999-2024 by The D Language Foundation .SH ONLINE DOCUMENTATION .URhttp://code.dlang.org/docs/commandline http://code.dlang.org/docs/commandline .UE .SH SEE ALSO \fBdub\fR(1), \fBdub-lint\fR(1), \fBdub-test\fR(1), \fBdustmite\fR(1)