Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

postnerd/posttest-cli

Open more actions menu

Repository files navigation

                  _   _            _             _ _
  _ __   ___  ___| |_| |_ ___  ___| |_       ___| (_)
 | '_ \ / _ \/ __| __| __/ _ \/ __| __|____ / __| | |
 | |_) | (_) \__ \ |_| ||  __/\__ \ ||_____| (__| | |
 | .__/ \___/|___/\__|\__\___||___/\__|     \___|_|_|
 |_|

⚠ WARNING: This is a beta version
This app is in early development. Some features may be broken. Use at your own risk.


Usage

git clone https://github.com/postnerd/posttest-cli.git
cd posttest-cli
npm install OR npm install . -g

Example for global installation:

posttest -e engines.config.example.json -p positions.config.example.json -d -sf´

Example for local installation:

npm start -- -e engines.config.example.json -p positions.config.example.json -d -sf

Options

┌────────┬───────────────────────────────────────────────────────────────────┐
│ option │ description                                                       │
├────────┼───────────────────────────────────────────────────────────────────┤
│ -e     │ Optional: Path to engines config file (default: engines.json)     │
├────────┼───────────────────────────────────────────────────────────────────┤
│ -p     │ Optional: Path to positions config file (default: positions.json) │
├────────┼───────────────────────────────────────────────────────────────────┤
│ -o     │ Optional: Path to output file for storing results                 │
├────────┼───────────────────────────────────────────────────────────────────┤
│ -d     │ Optional: activate debug mode                                     │
├────────┼───────────────────────────────────────────────────────────────────┤
│ -sf    │ Optional: add stockfish engine                                    │
├────────┼───────────────────────────────────────────────────────────────────┤
│ -s     │ Optional: silent mode to just show a progress                     │
└────────┴───────────────────────────────────────────────────────────────────┘

-p position config file

npm start -- -p position.config.example

If no -p option is provided posttest will search for a positions.json file at the root of the executaion folder.

Format

[
    {
        "fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
        "depth": 6
    },
]

See the example config file positions.config.example.json. All positions are from stockfish's internal bench function.

-e engines config file

npm start -- -e engines.config.example

If no -e option is provided posttest will search for a engines.json file at the root of the execution folder.

Format

[
    {
        "executable": "/usr/local/bin/node",
        "strings": [
            "./node_modules/stockfish/src/stockfish-nnue-16-no-simd.js"
        ],
        "advancedComparison": true
    },
    {
        "executable": "postbot",
        "strings": []
    },
    {
        "name": "my lore ipsum",
        "executable": "loreipsum",
        "strings": []
    }
]

See the example config file engines.config.example.json.

Optional: name

You can specify a name for every engine that will be used infavour of the name provided by the uci name parameter.

Optional: advancedComparison

If you want to have an advanced comparison table printed and logged at the end of the tests for one or more engines, you can set the advancedComparison flag.

-s silent mode

npm start -- -s

Shows just a progress bar. Should be combined with the -o option to log the output to a file.

-o log output to file

npm start -- -o path/to/file.txt

Logs the results to the specified path.

-d debug mode

npm start -- -d

Shows additional debug informations.

-sf stockfish

npm start -- -sf

Adds a version of stockfishjs to the performance test without the need to have stockfish added to the engine config file.

About

A test framework for postbot and other UCI chess engines

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.