Skip to content

Commit

Permalink
sqlite 3 test errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant-sachdeva committed Aug 4, 2024
1 parent a068436 commit e88d032
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit e88d032

Please sign in to comment.