[CUBRIDQA-1369] run_sql.sh - a new shell for running a single testcase with CTP#757
Open
vimkim wants to merge 3 commits intoCUBRID:developfrom
Open
[CUBRIDQA-1369] run_sql.sh - a new shell for running a single testcase with CTP#757vimkim wants to merge 3 commits intoCUBRID:developfrom
vimkim wants to merge 3 commits intoCUBRID:developfrom
Conversation
Provides a simple wrapper around ConsoleAgent to run individual SQL test files without needing interactive mode or a full conf file. Usage: run_sql.sh <sql_file> [db_name] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix argument validation order (check before readlink) - Require and export CTP_HOME env var for Java compatibility - Fix classpath leading colon and unguarded glob issues - Add testdb_qa.xml as a pre-configured custom database example - Document custom database setup in README Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
|
정정: basic db 생성부터 삭제까지 모든 워크플로를 자동화한 ctp.sh 와 다르게, 필요할 시 별도 이슈 처리하겠습니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
http://jira.cubrid.org/browse/CUBRIDQA-1369
요약
ctp.sh sql -c conf(전체 배치 실행)과ctp.sh sql --interactive(수동 대화형 모드) 사이의 간편한 실행 방식을 제공합니다.CTP/bin/run_sql.sh추가:ConsoleAgent를 직접 호출하여 단일 SQL 테스트 파일을 실행하는 경량 래퍼 스크립트run_sql.sh <sql_file> [db_name](db_name 기본값:basic)변경 사항
CTP/bin/run_sql.sh: 단일 SQL 파일 실행 스크립트 신규 추가CTP/sql/configuration/Function_Db/testdb_qa.xml: 커스텀 데이터베이스 설정 예제 추가CTP/README.md:run_sql.sh사용법 및 커스텀 DB 설정 방법 문서 추가주의사항: 데이터베이스 설정 파일 필요
run_sql.sh는 내부적으로ConsoleAgent가$CTP_HOME/sql/configuration/Function_Db/<db_name>_qa.xml파일을 참조합니다. 사용하려는 데이터베이스에 해당하는_qa.xml파일이 반드시 존재해야 합니다.기본 제공 데이터베이스:
basic(기본값),testdb,kcc,mdb,neis05,neis08,shell커스텀 데이터베이스를 사용하려면 아래와 같이 XML 파일을 생성하세요:
사용 예시
필요 환경변수
JAVA_HOME: Java 설치 경로CUBRID: CUBRID 설치 경로CTP_HOME: CTP 루트 디렉토리 경로테스트 계획
run_sql.sh test.sql실행 시 정상적으로 테스트 수행 및 결과 출력 확인run_sql.sh test.sql testdb실행 시 지정된 데이터베이스 사용 확인🤖 Generated with Claude Code