tests/pkgos_func/inifile_set/test_inifile_set
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | . ../../../pkgos_func |
| 6 | . ../../../tests/osstt |
| 7 | |
| 8 | cp example.ini example-result.ini |
| 9 | |
| 10 | pkgos_inifile set example-result.ini DEFAULT lock_dir /var/lock |
| 11 | osstt_assertFilesAreSame example-result.ini example-after-fix-lock_dir.ini |
| 12 | rm example-result.ini |
| 13 | if [ "${RET}" = "yes" ] ; then |
| 14 | exit 0 |
| 15 | else |
| 16 | echo "example-result.ini is not the same as example-after-fix-lock_dir.ini" |
| 17 | exit 1 |
| 18 | fi |