]> granicus.if.org Git - curl/commit
build and tests: curl_10char_object_name() shell function
authorYang Tse <yangsita@gmail.com>
Wed, 2 Jan 2013 19:12:15 +0000 (20:12 +0100)
committerYang Tse <yangsita@gmail.com>
Wed, 2 Jan 2013 19:15:50 +0000 (20:15 +0100)
commitdfe476915711628478be22fb39452c8eddc607ae
tree89af34ed16a9bbb23bd8a695734ce0e7d467810a
parent404a95b588663002c240d422adc4d21f52d74a4e
build and tests: curl_10char_object_name() shell function

lib/objnames.inc provides definition of curl_10char_object_name() shell
function. The intended purpose of this function is to transliterate a
(*.c) source file name that may be longer than 10 characters, or not,
into a string with at most 10 characters which may be used as an OS/400
object name.

Test case 1221 does unit testng of this function and also verifies
that it is possible to generate distinct short object names for all
curl and libcurl *.c source file names.

lib/objnames-test.sh is the shell script used for test case 1221.

tests/runtests.pl modified to accept shell script test cases.

More details inside lib/objnames.inc and lib/objnames-test.sh
lib/Makefile.am
lib/objnames-test.sh [new file with mode: 0755]
lib/objnames.inc [new file with mode: 0644]
tests/data/Makefile.am
tests/data/test1221 [new file with mode: 0644]
tests/runtests.pl