Skip to content

Passed curl and bash tests #34

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 4 additions & 2 deletions build_curl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ then
git clone https://github.com/curl/curl.git
fi

cmake -B curl/build -S curl
cmake --build curl/build -j
rm -rf curl-install
mkdir -p curl-install
cmake -B curl/build -S curl -DCMAKE_INSTALL_PREFIX=curl-install
cmake --build curl/build -- install -j
15 changes: 9 additions & 6 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,22 @@ add_test(NAME test_python3_torch_ones
${CMAKE_BINARY_DIR}/sloader python3 ${CMAKE_CURRENT_SOURCE_DIR}/torch_ones.py)

add_test(NAME test_bash_plus
COMMAND python3 ${cmake_current_source_dir}/compare_stdout.py
${cmake_binary_dir}/sloader bash ${cmake_current_source_dir}/one_plus_one.sh)
COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/compare_stdout.py
${CMAKE_BINARY_DIR}/sloader bash ${CMAKE_CURRENT_SOURCE_DIR}/one_plus_one.sh)

add_test(NAME test_curl
COMMAND python3 ${cmake_current_source_dir}/compare_stdout.py
${cmake_binary_dir}/sloader curl -s www.example.com)
COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/compare_stdout.py
${CMAKE_BINARY_DIR}/sloader curl -s www.example.com)

add_test(NAME test_curl_selfbuild
COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/compare_stdout.py
${CMAKE_BINARY_DIR}/sloader ${CMAKE_SOURCE_DIR}/curl-install/bin/curl -s www.example.com
PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_SOURCE_DIR}/curl-install/lib")

set_tests_properties(
test_rustc
test_top
test_python3_torch_ones
test_bash_plus
test_curl
PROPERTIES WILL_FAIL TRUE)

if(CUSTOM_LIBC_PATH)
Expand Down