Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3 test errors fixed #115

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/test-suite/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
option(ENABLE_SQLITE "Enables SQLite Amalgamation Benchmark." ON)

set(SQLITE_LLVM_IR
${CMAKE_CURRENT_SOURCE_DIR}/PE-benchmarks-llfiles-llvm17/sqlite3.ll
${CMAKE_CURRENT_SOURCE_DIR}/sqlite3.ll
)

# SQLite IR file is added along side other PE-benchmarks for this version
Expand Down Expand Up @@ -69,6 +69,7 @@ endif()
# sanity checks and lit configs
configure_file(sanity_check.sh.cmake sanity_check.sh @ONLY)
file(COPY PE-benchmarks-llfiles-llvm17 DESTINATION ./)
file(COPY sqlite3.ll DESTINATION ./)
file(COPY oracle DESTINATION ./)
file(COPY ../../vocabulary DESTINATION ./)
file(COPY index-llvm17.files DESTINATION ./)
Expand Down
6 changes: 5 additions & 1 deletion src/test-suite/generateOracle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

SEED_VERSION="llvm17"
# SRC_WD="PE-benchmarks-llfiles-llvm17
SQLITE_INPUT=./sqlite3.ll
DEST_FOLDER_SYM_P="oracle/SYM_${SEED_VERSION}_p"
DEST_FOLDER_FA_P="oracle/FA_${SEED_VERSION}_p"

Expand Down Expand Up @@ -52,6 +52,10 @@ while IFS= read -r d; do
done <index-${SEED_VERSION}.files
wait

echo "Generating SQL level files"
${IR2VEC_PATH} -sym -level p -o ${DEST_FOLDER_SYM_P}/sqlite3.txt ${SQLITE_INPUT} &>/dev/null
${IR2VEC_PATH} -fa -level p -o ${DEST_FOLDER_FA_P}/sqlite3.txt ${SQLITE_INPUT} &>/dev/null

echo "generating F level files"
while IFS= read -r d; do
${IR2VEC_PATH} -sym -level f -o ${DEST_FOLDER_SYM}/ir2vec.txt ${d} &>/dev/null
Expand Down
2 changes: 1 addition & 1 deletion src/test-suite/sanity_check.sh.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ perform_vector_comparison() {
# SQLite specific variables.
if [[ "$ENABLE_SQLITE" == "ON" ]]; then
SQLITE_VIR=sqlite3_${FILE_PREFIX}.txt
SQLITE_INPUT=./PE-benchmarks-llfiles-${SEED_VERSION}/sqlite3.ll
SQLITE_INPUT=./sqlite3.ll
SQLITE_ORIG=oracle/${EncodingType}_${SEED_VERSION}_${FILE_PREFIX}/sqlite3.txt
fi

Expand Down
Loading