pkgsrc/pkgtools/cwrappers/files/test/test-lib_expand.sh
joerg 8ee704def0 Add cwrappers-20100308 with minimal compat changes. Developed as part of
GSoC 2007, initial test suite parts from schmonz@, nagging by jperkin,
approval for addition during freeze by agc@.
2014-09-17 12:40:56 +00:00

20 lines
541 B
Bash

# $NetBSD: test-lib_expand.sh,v 1.1 2014/09/17 12:40:56 joerg Exp $
#
atf_test_case lib_expand
lib_expand_head() {
atf_set 'descr' 'Checks that one -llib can be expanded into several'
}
lib_expand_body() {
wrapper_test_setup cc \
l:readline:edit:termcap:m
input="-lreadline -lreadline"
echo "-ledit -ltermcap -lm" > expout
atf-check -s eq:0 -o file:expout -e ignore ${WRAPPER} ${input} \
|| atf_fail 'XXX no reason'
}
atf_init_test_cases() {
. $(atf_get_srcdir)/setup_common.sh
atf_add_test_case lib_expand
}