Debian Codegraph @

tests/pkgos_func/deprecate_directive/test_new_commented_old_existing

raw
1 #!/bin/sh
2
3 set -e
4
5 . ../../../pkgos_func
6 . ../../../tests/osstt
7
8 cp example.ini example-result.ini
9 pkgos_deprecate_directive example-result.ini old_section old_directive new_section new_directive
10 osstt_assertFilesAreSame example-result.ini example-after-old-existing.ini
11 rm example-result.ini
12 if [ "${RET}" = "yes" ] ; then
13 exit 0
14 else
15 echo "pkgos_deprecate_directive didn't deprecate correcly"
16 exit 1
17 fi