mirror of
https://github.com/containers/youki
synced 2024-11-23 01:11:58 +01:00
Add a procedure to run tests in binary
This commit is contained in:
parent
239305cea6
commit
884a88c3ec
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,3 +8,5 @@ tags
|
||||
tags.lock
|
||||
tags.temp
|
||||
|
||||
integration-binary
|
||||
integration-workspace
|
||||
|
@ -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
|
||||
```
|
||||
|
6
tests/build.sh
Executable file
6
tests/build.sh
Executable file
@ -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
|
BIN
tests/bundle.tar.gz
Normal file
BIN
tests/bundle.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user