CLI Reference
In this section we provide a quick reference for the Command Line Interface (CLI) of CTLog.
ctlog - CLI interface
SAT-based Combinatorial Testing algorithms and tools in Python.
ctlog [-h] {mcac,tn,gen,version} ...
ctlog options
ctlog mcac
Mixed Covering Arrays with Constraints (MCACs) algorithms and tools.
sphinx-build mcac [-h] {algorithms,encoders} ...
ctlog mcac positional arguments
mcac_command(default:None)
ctlog mcac options
ctlog tn
Tuple Number (TN) algorithms and tools.
sphinx-build tn [-h] {encoders} ...
ctlog tn positional arguments
tn_command(default:None)
ctlog tn options
ctlog gen
SUT-G Model Generator.
sphinx-build gen [-h] --timeout TIMEOUT --num-params NUM_PARAMS --out-file OUT_FILE
[--num-seeds NUM_SEEDS] [--max-confl MAX_CONFL] [--min-confl MIN_CONFL]
[--inc-assumps INC_ASSUMPS] [--dec-assumps DEC_ASSUMPS]
[--max-tries MAX_TRIES] [--seed SEED]
cnf_file
ctlog gen positional arguments
cnf_file- Path to the input CNF file. (default:None)
ctlog gen options
--timeoutTIMEOUT,-tTIMEOUT- Solving timeout (in seconds). (default:None)--num-paramsNUM_PARAMS,-nNUM_PARAMS- Number of parameters for the output SUT model. (default:None)--out-fileOUT_FILE,-oOUT_FILE- Output file. (default:None)--num-seedsNUM_SEEDS,-nsNUM_SEEDS- Number of seeds to estimate the formula hardness. (default:5)--max-conflMAX_CONFL- Maximum number of conflicts for the resulting formula. (default:10000)--min-conflMIN_CONFL- Minimum number of conflicts for the resulting formula. (default:5000)--inc-assumpsINC_ASSUMPS- Number of variables that will be used to increase the solver assumptions. (default:10)--dec-assumpsDEC_ASSUMPS- Number of variables that will be used to decrese the solver assumptions. (default:5)--max-triesMAX_TRIES- Maximum number of tries to generate the SUT model before giving up. (default:100)
ctlog version
Print CTLog version and exit.
sphinx-build version [-h]
ctlog version options
MCAC
ctlog mcac algorithms - CLI interface
Generate and MCAC using some of the implemented algorithms.
ctlog mcac algorithms [-h] {list,help,run} ...
ctlog mcac options
ctlog mcac algorithms list
List all available MCAC algorithm classes.
ctlog mcac algorithms list [-h]
ctlog mcac options
ctlog mcac algorithms help
Show the docstring and parameters of an algorithm.
ctlog mcac algorithms help [-h] algorithm
ctlog mcac positional arguments
algorithm- Name of the algorithm class. (default:None)
ctlog mcac options
ctlog mcac algorithms run
Run an MCAC algorithm with dynamic parameters.
ctlog mcac algorithms run [-h] [--ub UB] [--sut-format SUT_FORMAT] [--out-file OUT_FILE]
[--out-format OUT_FORMAT] [--skip-validation]
[--all-missing-tuples] [--args [ARGS ...]]
algorithm sut_file strength
ctlog mcac positional arguments
ctlog mcac options
--ubUB- Upper bound for the MCAC algorithm (if needed). (default:None)--sut-formatSUT_FORMAT- SUT file format. (default:acts)--out-fileOUT_FILE- MCAC output file (if None, outputs to stdout). (default:None)--out-formatOUT_FORMAT- Output format (csv or acts). (default:csv)--skip-validation- Skip MCAC validation.--all-missing-tuples- Show the number of missing tuples (when –skip-validation is deactivated).--argsARGS- Arguments to pass to the algorithm as key=value. (default:[])
ctlog mcac encoders - CLI interface
MCAC SAT/MaxSAT encoders.
ctlog mcac encoders [-h] {maxsat,sat} ...
ctlog mcac options
ctlog mcac encoders maxsat
ctlog mcac encoders maxsat [-h] [--sut-format SUT_FORMAT] [--encoding ENCODING]
sut_file strength ub
ctlog mcac positional arguments
ctlog mcac options
--sut-formatSUT_FORMAT- SUT file format. (default:acts)--encodingENCODING- MaxSAT encoding (ccx, cx, ccx-a1). (default:ccx)
ctlog mcac encoders sat
ctlog mcac encoders sat [-h] [--sut-format SUT_FORMAT] [--store-cvars] sut_file strength ub
ctlog mcac positional arguments
ctlog mcac options
--sut-formatSUT_FORMAT- SUT file format. (default:acts)--store-cvars- Store and show cvars.
TN
ctlog tn encoders - CLI interface
Tuple Number MaxSAT encoder.
ctlog tn encoders [-h] {maxsat} ...
ctlog tn options
ctlog tn encoders maxsat
ctlog tn encoders maxsat [-h] [--sut-format SUT_FORMAT] [--soft-param-tuples]
[--no-filter-allowed]
sut_file strength
ctlog tn positional arguments
ctlog tn options
--sut-formatSUT_FORMAT- SUT file format. (default:acts)--soft-param-tuples- Write parameter tuples as soft clauses.--no-filter-allowed- Do not filter allowed tuples before encoding the WCNF formula.