Blame tests/p_rsync/10-rsync-test.sh
|
Christoph Galuschka |
dc5f9b |
#!/bin/sh
|
|
Christoph Galuschka |
dc5f9b |
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
Christoph Galuschka |
dc5f9b |
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
|
|
Christoph Galuschka |
dc5f9b |
|
|
Christoph Galuschka |
dc5f9b |
t_Log "Running $0 - rsync function test."
|
|
Christoph Galuschka |
dc5f9b |
|
|
Christoph Galuschka |
dc5f9b |
# Comparing hostname with output of phpinfo()
|
|
Christoph Galuschka |
dc5f9b |
FILE='/var/tmp/rsync-test'
|
|
Christoph Galuschka |
dc5f9b |
|
|
Christoph Galuschka |
dc5f9b |
cat > $FILE <
|
|
Christoph Galuschka |
dc5f9b |
Testing rsync
|
|
Christoph Galuschka |
dc5f9b |
EOF
|
|
Christoph Galuschka |
dc5f9b |
|
|
Christoph Galuschka |
dc5f9b |
php $FILE | grep -q 'Zend Engine'
|
|
Christoph Galuschka |
dc5f9b |
|
|
Christoph Galuschka |
dc5f9b |
t_CheckExitStatus $?
|
|
Christoph Galuschka |
dc5f9b |
|
|
Christoph Galuschka |
dc5f9b |
#reversing changes
|
|
Christoph Galuschka |
dc5f9b |
/bin/rm $FILE
|
|
Christoph Galuschka |
dc5f9b |
sed -i 's/\date\.timezone\ \=\ \"Europe\/Berlin\"/\;date\.timezone\ \=/' /etc/php.ini
|