-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_cli.ps1
More file actions
17 lines (15 loc) · 799 Bytes
/
Copy pathtest_cli.ps1
File metadata and controls
17 lines (15 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ErrorActionPreference = "Stop"
cargo build
echo "Formatting volume with AEAD..."
$Env:RUST_BACKTRACE=1
echo "password`npassword" | .\target\debug\cfs-io.exe format test_vol.img 2M --encrypted --aead --kdf pbkdf2 --pbkdf2-iters 100000
echo "Testing cfs slot --list..."
echo "password" | .\target\debug\cfs-io.exe slot test_vol.img --list
echo "Testing cfs slot --add..."
echo "password`nnewpass`nnewpass" | .\target\debug\cfs-io.exe slot test_vol.img --add
echo "Testing cfs slot --list after add..."
echo "password" | .\target\debug\cfs-io.exe slot test_vol.img --list
echo "Testing cfs slot --remove 1..."
echo "password" | .\target\debug\cfs-io.exe slot test_vol.img --remove 1
echo "Testing cfs slot --list after remove..."
echo "password" | .\target\debug\cfs-io.exe slot test_vol.img --list