diff --git a/.gitignore b/.gitignore index 5bc7a06d..75318fd8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ tags tags.lock tags.temp +integration-binary +integration-workspace diff --git a/tests/README.md b/tests/README.md index bacb5bc9..64bdbcc5 100644 --- a/tests/README.md +++ b/tests/README.md @@ -4,5 +4,7 @@ Here is a preview implementation of the integration test. ``` -$ cargo test --test integration +$ cp ../youki . +$ ./build.sh +$ sudo ./integration-binary --test-threads=1 ``` diff --git a/tests/build.sh b/tests/build.sh new file mode 100755 index 00000000..29e2234e --- /dev/null +++ b/tests/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +BINARY_PATH=$(cargo test --test integration --no-run --message-format=json | jq -r "select(.profile.test == true) | .filenames[]" | grep 'integration') +echo $BINARY_PATH +rm -f integration-binary +cp $BINARY_PATH integration-binary diff --git a/tests/bundle.tar.gz b/tests/bundle.tar.gz new file mode 100644 index 00000000..db80c0b0 Binary files /dev/null and b/tests/bundle.tar.gz differ