add libsodium tests

This commit is contained in:
clowwindy 2014-12-10 23:15:24 +08:00
parent 84dcff83c1
commit 9d33a59b60
5 changed files with 33 additions and 1 deletions

10
tests/chacha20.json Normal file
View file

@ -0,0 +1,10 @@
{
"server":"127.0.0.1",
"server_port":8388,
"local_port":1081,
"password":"salsa20_password",
"timeout":60,
"method":"chacha20",
"local_address":"127.0.0.1",
"fast_open":false
}

9
tests/libsodium/install.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
if [ ! -d libsodium-1.0.1 ]; then
wget https://github.com/jedisct1/libsodium/releases/download/1.0.1/libsodium-1.0.1.tar.gz || exit 1
tar xf libsodium-1.0.1.tar.gz || exit 1
fi
pushd libsodium-1.0.1
./configure && make && make install || exit 1
popd

10
tests/salsa20-ctr.json Normal file
View file

@ -0,0 +1,10 @@
{
"server":"127.0.0.1",
"server_port":8388,
"local_port":1081,
"password":"salsa20_password",
"timeout":60,
"method":"salsa20-ctr",
"local_address":"127.0.0.1",
"fast_open":false
}

View file

@ -4,7 +4,7 @@
"local_port":1081,
"password":"salsa20_password",
"timeout":60,
"method":"salsa20-ctr",
"method":"salsa20",
"local_address":"127.0.0.1",
"fast_open":false
}