Fix Vagrantfile and extended tests

This commit is contained in:
ariasuni 2021-01-08 17:45:59 +01:00 committed by Mélanie Chauvel
parent 39c8c67bf6
commit 73e43c0700
3 changed files with 8 additions and 5 deletions

10
Vagrantfile vendored
View File

@ -52,9 +52,12 @@ Vagrant.configure(2) do |config|
else else
trap 'exit' ERR trap 'exit' ERR
echo "Installing Rust" echo "Installing Rust"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --component rustc,rust-std,cargo,clippy -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --component rustc,rust-std,cargo,clippy -y > /dev/null
source $HOME/.cargo/env source $HOME/.cargo/env
echo "Installing cargo-hack"
cargo install -q cargo-hack cargo install -q cargo-hack
echo "Installing specsheet"
cargo install -q --git https://github.com/ogham/specsheet
fi fi
EOF EOF
@ -68,12 +71,11 @@ Vagrant.configure(2) do |config|
else else
trap 'exit' ERR trap 'exit' ERR
echo "Installing just" echo "Installing just"
wget -q "https://github.com/casey/just/releases/download/v0.8.0/just-v0.8.0-x86_64-unknown-linux-musl.tar.gz" wget -q "https://github.com/casey/just/releases/download/v0.8.3/just-v0.8.3-x86_64-unknown-linux-musl.tar.gz"
tar -xf "just-v0.8.0-x86_64-unknown-linux-musl.tar.gz" tar -xf "just-v0.8.3-x86_64-unknown-linux-musl.tar.gz"
cp just /usr/local/bin cp just /usr/local/bin
fi fi
# Guarantee that the timezone is UTC — some of the tests # Guarantee that the timezone is UTC — some of the tests
# depend on this (for now). # depend on this (for now).
timedatectl set-timezone UTC timedatectl set-timezone UTC

View File

@ -34,6 +34,7 @@ for i in {1..13}; do
done done
touch -t $FIXED_DATE "$TEST_ROOT/files/"* touch -t $FIXED_DATE "$TEST_ROOT/files/"*
touch -t $FIXED_DATE "$TEST_ROOT/files/"
chmod 644 "$TEST_ROOT/files/"* chmod 644 "$TEST_ROOT/files/"*
sudo chown $FIXED_USER:$FIXED_USER "$TEST_ROOT/files/"* sudo chown $FIXED_USER:$FIXED_USER "$TEST_ROOT/files/"*

View File

@ -1,4 +1,4 @@
drwxrwxr-x - vagrant 18 Oct 00:18  /testcases/files drwxrwxr-x - vagrant  1 Jan 12:34  /testcases/files
.rw-r--r-- 1 cassowary  1 Jan 12:34 ├──  1_bytes .rw-r--r-- 1 cassowary  1 Jan 12:34 ├──  1_bytes
.rw-r--r-- 1.0k cassowary  1 Jan 12:34 ├──  1_KiB .rw-r--r-- 1.0k cassowary  1 Jan 12:34 ├──  1_KiB
.rw-r--r-- 1.0M cassowary  1 Jan 12:34 ├──  1_MiB .rw-r--r-- 1.0M cassowary  1 Jan 12:34 ├──  1_MiB