## Process this file with automake to produce Makefile.in
## ##################################################
-SUBDIRS = tests
+# Do NOT list devel.* in subdirs. It's developers playgound and
+# must not prevent anything from building.
+SUBDIRS =
-PACKAGE=zypp
-#AUTOMAKE_OPTIONS = dejagnu
+## ##################################################
+
+TESTS = Arch Url \
+ RWPtr \
+ Edition \
+ Capabilities \
+ PtrTypes \
+ TranslatedText \
+ CheckSum \
+ PublicKey \
+ PathInfo \
+ Digest \
+ Signature
+
+check_PROGRAMS = Arch Url \
+ RWPtr \
+ Edition \
+ Capabilities \
+ PtrTypes \
+ TranslatedText \
+ CheckSum \
+ PublicKey \
+ PathInfo \
+ Digest \
+ Signature
## ##################################################
-#LDADD = $(top_srcdir)/zypp/lib@PACKAGE@.la
+LDADD = $(top_srcdir)/zypp/lib@PACKAGE@.la
## ##################################################
-EXTRA_DIST = config/*.exp lib/*exp $(PACKAGE).test/*.exp
+Arch_SOURCES = Arch.cc
+Arch_LDADD = $(LDADD) -lboost_unit_test_framework
+
+TranslatedText_SOURCES = TranslatedText.cc
+
+PublicKey_SOURCES = PublicKey.cc
+PublicKey_LDADD = $(LDADD) -lboost_unit_test_framework
+
+CheckSum_SOURCES = CheckSum.cc
+CheckSum_LDADD = $(LDADD) -lboost_unit_test_framework
+
+RWPtr_SOURCES = RWPtr.cc
+
+Edition_SOURCES = Edition.cc
+Edition_LDADD = $(LDADD) -lboost_unit_test_framework
+
+Capabilities_SOURCES = Capabilities.cc
+Capabilities_LDADD = $(LDADD) -lboost_unit_test_framework
+
+PtrTypes_SOURCES = PtrTypes.cc
+
+PathInfo_SOURCES = PathInfo.cc
+PathInfo_LDADD = $(LDADD) -lboost_unit_test_framework
+Digest_SOURCES = Digest.cc
+Digest_LDADD = $(LDADD) -lboost_unit_test_framework
+
+Signature_SOURCES = Signature.cc
+Signature_LDADD = $(LDADD) -lboost_unit_test_framework
+
+Url_SOURCES = Url.cc
+Url_LDADD = $(LDADD) -lboost_unit_test_framework
+
+
+## ##################################################
+
+.PHONY: always
+
+$(noinst_PROGRAMS): $(top_srcdir)/zypp/lib@PACKAGE@.la
+
+#$(top_srcdir)/zypp/lib@PACKAGE@.la: always
+# $(MAKE) -C $(top_srcdir)/zypp
+
+## ##################################################
+++ /dev/null
-# default.exp -- empty
-
+++ /dev/null
-load_lib "libzypp_init.exp"
-
-proc libzypp_exit {} {}
-proc libzypp_version {} {}
-
+++ /dev/null
-perror "No setup for current configuration"
-exit 1
+++ /dev/null
-# libzypp_init.exp
-
-#
-# run binary $path/$prog
-# and expect $expected_result as a result
-# (expected_result == 0 ==> program should pass)
-# (expected_result == 1 ==> program should fail)
-#
-
-proc runBinary { prog {path ""} {expected_result 0} } {
-
- if { $path == "" } { set path "tests" }
-
- set result 0
- set oops [catch { set result [exec "$path/$prog" ">" "/dev/null" "2>/dev/null"] } catched]
-
- # check if the program crashed
-
- if {$oops != 0 && $result != 0} {
- puts ""
- fail "$prog crashed ($oops) with: $catched"
- return -1
- }
-
- # check return code from $prog
-
- if {$result != ""} {
- if {$expected_result != 0} {
- xfail $prog # expected failure
- return 0
- }
- puts ""
- warning "Running of $prog results in '$result'"
- return -1
- }
-
- pass $prog
-
- return 0
-}
-
-# expect prog to pass
-
-proc shouldPass { prog {path ""} } {
- setenv "ZYPP_TEST_BASE" $path
- return [runBinary $prog $path 0]
-}
-
-# expect prog to fail
-
-proc shouldFail { prog {path ""} } {
- setenv "ZYPP_TEST_BASE" $path
- return [runBinary $prog $path 1]
-}
-
+++ /dev/null
-Makefile.in
-Makefile
-.libs
-.deps
-Arch
-Capabilities
-Edition
-PtrTypes
-Url1
-Url2
-Url3
-Url4
+++ /dev/null
-## Process this file with automake to produce Makefile.in
-## ##################################################
-
-# Do NOT list devel.* in subdirs. It's developers playgound and
-# must not prevent anything from building.
-SUBDIRS =
-
-## ##################################################
-
-TESTS = Arch Url \
- RWPtr \
- Edition \
- Capabilities \
- PtrTypes \
- TranslatedText \
- CheckSum \
- PublicKey \
- PathInfo \
- Digest \
- Signature
-
-check_PROGRAMS = Arch Url \
- RWPtr \
- Edition \
- Capabilities \
- PtrTypes \
- TranslatedText \
- CheckSum \
- PublicKey \
- PathInfo \
- Digest \
- Signature
-
-## ##################################################
-
-LDADD = $(top_srcdir)/zypp/lib@PACKAGE@.la
-
-## ##################################################
-
-Arch_SOURCES = Arch.cc
-Arch_LDADD = $(LDADD) -lboost_unit_test_framework
-
-TranslatedText_SOURCES = TranslatedText.cc
-
-PublicKey_SOURCES = PublicKey.cc
-PublicKey_LDADD = $(LDADD) -lboost_unit_test_framework
-
-CheckSum_SOURCES = CheckSum.cc
-CheckSum_LDADD = $(LDADD) -lboost_unit_test_framework
-
-RWPtr_SOURCES = RWPtr.cc
-
-Edition_SOURCES = Edition.cc
-Edition_LDADD = $(LDADD) -lboost_unit_test_framework
-
-Capabilities_SOURCES = Capabilities.cc
-Capabilities_LDADD = $(LDADD) -lboost_unit_test_framework
-
-PtrTypes_SOURCES = PtrTypes.cc
-
-PathInfo_SOURCES = PathInfo.cc
-PathInfo_LDADD = $(LDADD) -lboost_unit_test_framework
-
-Digest_SOURCES = Digest.cc
-Digest_LDADD = $(LDADD) -lboost_unit_test_framework
-
-Signature_SOURCES = Signature.cc
-Signature_LDADD = $(LDADD) -lboost_unit_test_framework
-
-Url_SOURCES = Url.cc
-Url_LDADD = $(LDADD) -lboost_unit_test_framework
-
-
-## ##################################################
-
-.PHONY: always
-
-$(noinst_PROGRAMS): $(top_srcdir)/zypp/lib@PACKAGE@.la
-
-#$(top_srcdir)/zypp/lib@PACKAGE@.la: always
-# $(MAKE) -C $(top_srcdir)/zypp
-
-## ##################################################
+++ /dev/null
-# Arch.exp
-# run tests for Arch
-
- shouldPass "Arch"
+++ /dev/null
-# Arch.exp
-# run tests for Arch
-
-shouldPass "Capabilities"
+++ /dev/null
-shouldPass "CheckSum"
+++ /dev/null
-# Edition.exp
-# run tests for Edition
-
- shouldPass "Edition"
+++ /dev/null
-shouldPass "PathInfo"
+++ /dev/null
-# PtrTypes.exp
-# run tests for PtrTypes
-
- shouldPass "PtrTypes"
+++ /dev/null
- shouldPass "PublicKey"
+++ /dev/null
-# RWPtr.exp
-# run tests for RWPtr
-
- shouldPass "RWPtr"
+++ /dev/null
-shouldPass "Signature"
-
+++ /dev/null
-# TranslatedText.exp
-# run tests for TranslatedText
-
- shouldPass "TranslatedText"
+++ /dev/null
-# Url.exp
-# run tests for Url
-
- shouldPass "Url"