Skip to content

Commit

Permalink
More on the codeRabit suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Jan 19, 2025
1 parent 48792a0 commit c99aced
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 8 additions & 3 deletions tools/developer/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function set_cmake {
# Building using clang
#CXX=clang++ CC=clang cmake -DPOSTGRESQL_BIN=${PGBIN} -DCMAKE_BUILD_TYPE=Debug -DDOC_USE_BOOTSTRAP=ON -DWITH_DOC=ON -DBUILD_DOXY=OFF ..

# Building with debug on
#cmake -DPOSTGRESQL_BIN=${PGBIN} -DDOC_USE_BOOTSTRAP=ON -DWITH_DOC=ON -DBUILD_DOXY=ON -DBUILD_LATEX=ON -DCMAKE_BUILD_TYPE=Debug -DES=ON -DPROJECT_DEBUG=ON ..

# building languages -DES=ON -DJA=ON -DZH_HANS=ON -DDE=ON -DKO=ON
Expand All @@ -69,6 +70,7 @@ function set_cmake {
# check link in documentation
#cmake -DPOSTGRESQL_BIN=${PGBIN} -DDOC_USE_BOOTSTRAP=ON -DWITH_DOC=ON -DES=ON -DLINKCHECK=ON -DCMAKE_BUILD_TYPE=Release ..

# build only english
cmake -DPOSTGRESQL_BIN=${PGBIN} -DDOC_USE_BOOTSTRAP=ON -DWITH_DOC=ON -DBUILD_DOXY=ON -DBUILD_LATEX=ON -DCMAKE_BUILD_TYPE=Debug ..
}

Expand Down Expand Up @@ -114,7 +116,7 @@ function build_doc {
pushd build > /dev/null || exit 1
#rm -rf doc/* ; rm -rf locale/*/*/*.mo
# Clean only generated files while preserving custom content
find doc -type f -name "*.html" -o -name "*.pdf" -delete
find doc -type f \( -name "*.html" -o -name "*.pdf" \) -delete
make doc
#example on how to only build spanish html
#make html-es
Expand Down Expand Up @@ -171,9 +173,12 @@ function test_compile {
echo --------------------------------------------
for d in ${QUERIES_DIRS}
do
# generate the documentation queries
#tools/testers/doc_queries_generator.pl -alg "docqueries/${d}" -documentation -pgport "${PGPORT}"
tools/testers/doc_queries_generator.pl -alg "docqueries/${d}" -level WARNING -pgport "${PGPORT}"
#tools/testers/doc_queries_generator.pl -alg "docqueries/${d}" -pgport "${PGPORT}"
# Show warnings
#tools/testers/doc_queries_generator.pl -alg "docqueries/${d}" -level WARNING -pgport "${PGPORT}"
# Compare differences on results
tools/testers/doc_queries_generator.pl -alg "docqueries/${d}" -pgport "${PGPORT}"
done

echo --------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions tools/developer/taptest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ echo "VERSION ${VERSION}"
QUIET="-v"
QUIET="-q"

PGPORT="5432"
PGPORT="${PGPORT:-5432}"
PGUSER="${PGUSER:-$USER}"

PGDATABASE="___pgr___test___"
Expand All @@ -73,7 +73,6 @@ do
dropdb --if-exists "${PGFLAGS}" "${PGDATABASE}"
createdb "${PGFLAGS}" "${PGDATABASE}"

bash setup_db.sh "${PGPORT}" "${PGDATABASE}" "${PGUSER}" "${v}"
if ! bash setup_db.sh "${PGPORT}" "${PGDATABASE}" "${PGUSER}" "${v}"; then
echo "Error: Database setup failed" >&2
exit 1
Expand Down

0 comments on commit c99aced

Please sign in to comment.