CUBRID Build & Test
Build and test CUBRID using the justfile workflow.
When to Use
- User says "build", "compile", "test", "run tests", "빌드", "테스트"
- After code edits, to verify compilation or run tests
- When you need to check if changes compile or pass tests
- Any time you're working in a CUBRID source directory (contains
src/storage/,src/parser/, etc.)
Prerequisites
- Working directory must be a CUBRID source tree (or worktree)
justfilemust exist in the project root- Environment variables
$CUBRID_BUILD_DIRand$PRESET_MODEmust be set (typically via direnv)
Commands
Build
just buildBuild and install. Use this to verify code edits compile. Do not use cmake --build directly — the justfile handles preset modes, env vars ($CUBRID_BUILD_DIR, $PRESET_MODE), and the full pipeline.
Test
just testRun all tests: ctest (unit tests + sql-level integration tests) + sql regression tests.
Build + Test
just build-test
# or the alias:
just ntBuild then run all tests. This is the standard edit-compile-test cycle.
ctest Only
just ctestRun ctest only (unit tests + sql-level integration tests). Faster than just test when you don't need sql regression tests.
Configure
just configureRun the cmake configure step. Needed after CMakeLists.txt changes or fresh checkouts.
Full Reconfigure + Build
just configure-build-prepare-oosConfigure, build, and prepare OOS server config. Use after switching presets or major cmake changes.
Typical Workflow
- Edit code
just build— verify it compilesjust test— verify all tests pass- Or combine:
just build-test(aliasjust nt)
Important
- Always use
justcommands, never rawcmake --buildorctestdirectly. - Run build commands with
run_in_backgroundwhen they may take a while. - If build fails, read the error output carefully before attempting fixes.