mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-16 19:40:57 +01:00
-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:
24
tests/env/alicia/.bash_history
vendored
Normal file
24
tests/env/alicia/.bash_history
vendored
Normal 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
BIN
tests/env/alicia/.pcpvault
vendored
Normal file
Binary file not shown.
1
tests/env/alicia/share
vendored
Symbolic link
1
tests/env/alicia/share
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../share
|
||||
21
tests/env/bashrc
vendored
Normal file
21
tests/env/bashrc
vendored
Normal 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
4
tests/env/bobby/.bash_history
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
pcp -l
|
||||
pcp -k
|
||||
l
|
||||
l
|
||||
BIN
tests/env/bobby/.pcpvault
vendored
Normal file
BIN
tests/env/bobby/.pcpvault
vendored
Normal file
Binary file not shown.
1
tests/env/bobby/share
vendored
Symbolic link
1
tests/env/bobby/share
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../share
|
||||
24
tests/env/vsh
vendored
Executable file
24
tests/env/vsh
vendored
Executable 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"
|
||||
Reference in New Issue
Block a user