[ssl_mgmt] Add tests for sanity checks

This commit is contained in:
Thomas Preud'homme 2014-05-11 14:34:10 +08:00
parent 3a7e4edaeb
commit 9d5b8c1e9c
12 changed files with 19 additions and 0 deletions

1
ssl_mgmt/tests/1/cmdline Normal file
View File

@ -0,0 +1 @@
cnfFilePath=./ssl_mgmt.conf ../ssl_mgmt renew foo

2
ssl_mgmt/tests/1/driver Executable file
View File

@ -0,0 +1,2 @@
echo
echo "y"

1
ssl_mgmt/tests/1/fini Symbolic link
View File

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

1
ssl_mgmt/tests/1/init Symbolic link
View File

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

1
ssl_mgmt/tests/2/cmdline Normal file
View File

@ -0,0 +1 @@
! cnfFilePath=./ssl_mgmt.conf ../ssl_mgmt renew foo

2
ssl_mgmt/tests/2/driver Executable file
View File

@ -0,0 +1,2 @@
echo
echo "y"

1
ssl_mgmt/tests/2/fini Symbolic link
View File

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

3
ssl_mgmt/tests/2/init Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
ln -s /dev/null workdir/csr/foo-req.pem

1
ssl_mgmt/tests/3/cmdline Normal file
View File

@ -0,0 +1 @@
! cnfFilePath=./ssl_mgmt.conf ../ssl_mgmt renew foo

4
ssl_mgmt/tests/3/driver Executable file
View File

@ -0,0 +1,4 @@
echo
ln -sf /dev/null ./workdir/newcerts/foo-cert.pem
ln -sf /dev/null ./workdir/newkeys/foo-key.pem
echo "y"

1
ssl_mgmt/tests/3/fini Symbolic link
View File

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

1
ssl_mgmt/tests/3/init Symbolic link
View File

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