1
0
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:
oliver 2021-06-28 04:27:13 +09:00
parent 239305cea6
commit 884a88c3ec
4 changed files with 11 additions and 1 deletions

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

@ -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

Binary file not shown.