-i is now optional for encryption if recipient specified, -R exchanged with -r, added virtual env for manual tests in tests/env/

This commit is contained in:
TLINDEN
2013-11-03 14:39:16 +01:00
parent bf5556e1ec
commit 79068fce66
29 changed files with 944 additions and 1515 deletions

24
tests/env/alicia/.bash_history vendored Normal file
View File

@@ -0,0 +1,24 @@
cd
pwd
l
alias
cd
l
id
pcp -l
alias
pcp -l
pwd
pcp -l
l ../../../src/pcp1
pcp -l
pcp -k
l
pcp -l
..
pcp
pcp -l
..
pcp -l
cd -
cd

BIN
tests/env/alicia/.pcpvault vendored Normal file

Binary file not shown.

1
tests/env/alicia/share vendored Symbolic link
View File

@@ -0,0 +1 @@
../share

21
tests/env/bashrc vendored Normal file
View File

@@ -0,0 +1,21 @@
alias pcp=$PCP
alias ll='ls -l'
alias la='ls -la'
alias l='ls -alF'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias md='mkdir -p'
alias less='less -i -P "?f%f:Standard input. %lb / %L ?e(END):>"'
DATE () {
echo -e "[`date +%d.%b" "%H:%M:%S`]"
}
export PROMPT_COMMAND="PS1='\[\033]0;\u@\h:\w\007\]
\$(DATE) --- [\w] ---
$USER@\h: % '"
cd

4
tests/env/bobby/.bash_history vendored Normal file
View File

@@ -0,0 +1,4 @@
pcp -l
pcp -k
l
l

BIN
tests/env/bobby/.pcpvault vendored Normal file

Binary file not shown.

1
tests/env/bobby/share vendored Symbolic link
View File

@@ -0,0 +1 @@
../share

24
tests/env/vsh vendored Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
# simple virtual env to do manual tests of pcp
# using different users.
user=$1
if test -z "$user"; then
echo "usage: $0 <user>"
exit
fi
user=`echo "$user" | sed 's/\///g'`
if ! test -d "$user"; then
echo "there's no directory for $user"
exit
fi
cur=`pwd`
home="$cur/$user"
exec env PCP="$cur/../../src/pcp1" USER=$user HOME=$home bash --rcfile "$cur/bashrc"