terminal/tools
Mike Griese 88039532cd
Fix the path to the local unittests in runut (#8499)
This is the same root cause as #8485. We moved the output of a bunch
of projects to be unified. We forgot to update all the test scripts.

In this case, the LocalTests were still using the old path that's
_not_ under `bin/`
2020-12-04 10:08:40 -08:00
..
bcx.cmd
bcz.cmd tools: update bcz.cmd to use the progress bar VT sequence (#8335) 2020-11-20 09:26:50 -08:00
bx.cmd
bx.ps1
bz.cmd
ConsoleTypes.natvis
echokey.cmd
Generate-CodepointWidthsFromUCD.ps1 Fully regenerate CodepointWidthDetector from Unicode 13.0 (#8035) 2020-10-27 17:36:28 +00:00
GenerateAppxFromManifest.ps1
GenerateHeaderForJson.ps1
Get-OSSConhostLog.ps1
openbash.cmd
opencon.cmd
OpenConsole.psm1 Update clang-format to 10.0 (#7389) 2020-08-25 17:15:43 +00:00
openps.cmd
openvt.cmd
packages.config Update clang-format to 10.0 (#7389) 2020-08-25 17:15:43 +00:00
razzle.cmd
README.md
runformat.cmd
runft.cmd Correct paths in the the runut and runft test scripts (#8488) 2020-12-03 10:38:18 -08:00
runuia.cmd
runut.cmd Fix the path to the local unittests in runut (#8499) 2020-12-04 10:08:40 -08:00
testcon.cmd
tests.xml
vso_ut.cmd
WindbgExtension.js

OpenConsole Tools

These are a collection of tools and scripts to make your life building the OpenConsole project easier. Many of them are designed to be functional clones of tools that we used to use when developing inside the Windows build system.

Razzle

This is a script that quickly sets up your environment variables so that these tools can run easily. It's named after another script used by Windows developers to similar effect.

  • It adds msbuild to your path.
  • It adds the tools directory to your path as well, so all these scripts are easily available.
  • It executes \tools\.razzlerc.cmd to add any other personal configuration to your environment as well, or creates one if it doesn't exist.
  • It sets up the default build configuration to be 'Debug'. If you'd like to manually specify a build configuration, pass the parameter dbg for Debug, and rel for Release.

bcz

bcz can quick be used to clean and build the project. By default, it builds the %DEFAULT_CONFIGURATION% configuration, which is Debug if you use razzle.cmd.

  • bcz dbg can be used to manually build the Debug configuration.
  • bcz rel can be used to manually build the Release configuration.

opencon (and openbash, openps)

opencon can be used to launch the last built OpenConsole binary. If given an argument, it will try and run that program in the launched window. Otherwise it will default to cmd.exe.

openbash is similar, it immediately launches bash.exe (the Windows Subsystem for Linux entrypoint) in your ~ directory.

Likewise, openps launches powershell.

runformat

runformat will format the c++ code to match our coding style.

testcon, runut, runft

runut will automatically run all of the unit tests through TAEF. runft will run the feature tests, and testcon runs all of them. They'll pass any arguments through to TAEF, so you can more finely control the testing.

A recommended workflow is the following command:

bcz dbg && runut /name:*<name of test>*

Where <name of test> is the name of the test testing the relevant feature area you're working on. For example, if I was working on the VT Mouse input support, I would use MouseInputTest as that string, to isolate the mouse input tests. If you'd like to run all the tests, just ignore the /name param: bcz dbg && runut

To make sure your code is ready for a pull request, run the build, then launch the built console, then run the tests in it. The built console will inherit all of the razzle environment, so you can immediately start using the macros:

  1. bcz
  2. opencon
  3. testcon (in the new console window)
  4. runformat

If they all come out green, then you're ready for a pull request!