Overview
Thesetup command allows you to customize QuickTest’s behavior, including compilation commands, execution settings, and language-specific configurations.
QuickTest stores configuration in
~/.quicktest/ and comes with sensible defaults for all supported languages.Basic Usage
Subcommands
config
Modify specific configuration settings.The configuration label (path) to modify.Short form:
-lThe new value for the specified configuration label.Short form:
-vreset
Reset all configurations to default values.Examples
View Current Configuration
To see available configuration options and current values:The actual implementation may vary. Check
qt setup --help for the exact command to view configurations.Customize C++ Compilation
Change the C++ compiler flags:Update C++ Standard
Use C++20 instead of C++17:Configure Python Interpreter
Use a specific Python version:Customize Java Compilation
Reset to Defaults
If you’ve made changes and want to revert:Default Compilation Commands
QuickTest uses these default compilation and execution commands:C++
Java
Python
Python doesn’t require compilation.
Rust
Go
C (GNU C)
Kotlin
Configuration Labels Reference
The exact configuration structure depends on QuickTest’s implementation. The following is based on common patterns. Run
qt setup config --help or check the source code for the complete list.cpp.compile- C++ compilation commandcpp.execute- C++ execution commandcpp.standard- C++ standard versionjava.compile- Java compilation commandjava.execute- Java execution commandpython.interpreter- Python interpreter pathrust.compile- Rust compilation commandgo.compile- Go compilation commandkotlin.compile- Kotlin compilation command
Common Configuration Tasks
Enable Debug Symbols
Add debugging information to compiled binaries:Optimize for Speed
Maximize optimization for competitive programming:Add Sanitizers
Detect memory errors and undefined behavior:Use Clang Instead of GCC
Configure for Specific Contest Platform
Match Codeforces settings:Tips
Configuration File Location
QuickTest stores configuration files in:- Language-specific templates
- Compilation settings
- Runtime configurations
You can manually edit these configuration files, but using
qt setup config is recommended to ensure correct formatting.Troubleshooting
Configuration Not Applied
If your configuration changes don’t seem to take effect:-
Verify the label is correct:
- Check for typos in the value
-
Try resetting and reconfiguring:
Compilation Errors After Configuration
If compilation breaks after changing settings:-
Reset to defaults:
- Test with a simple program
- Gradually re-apply your custom settings