提交 033114b6 编写于 作者: R Roberto Sassu

Execute tests with make check

上级 3f2c82e5
if CMOCKA
TESTS_ENVIRONMENT = \
LD_LIBRARY_PATH=$(top_srcdir)/lib/.libs:$(top_srcdir)/parsers/.libs:$(top_srcdir)/generators/.libs;
export LD_LIBRARY_PATH;
check_PROGRAMS=lib gen compact_tlv
TESTS = $(check_PROGRAMS)
lib_LDFLAGS=-no-undefined -avoid-version
lib_LDADD=$(top_srcdir)/lib/libdigestlist-base-test.la -lcmocka
......
......@@ -27,9 +27,9 @@ static void test_gen(void **state)
int ret;
if (fork() == 0) {
execlp("src/gen_digest_lists", "gen_digest_lists",
execlp("../src/gen_digest_lists", "gen_digest_lists",
"-t", "parser", "-o", "append", "-f", "compact",
"-i", "I:src/upload_digest_lists", "-d", "test", NULL);
"-i", "I:../src/upload_digest_lists", "-d", "test", NULL);
}
wait(NULL);
......@@ -38,9 +38,9 @@ static void test_gen(void **state)
assert_return_code(ret, 0);
if (fork() == 0) {
execlp("src/gen_digest_lists", "gen_digest_lists",
execlp("../src/gen_digest_lists", "gen_digest_lists",
"-t", "parser", "-o", "add", "-f", "compact", "-p", "0",
"-i", "I:src/upload_digest_lists", "-d", "test", NULL);
"-i", "I:../src/upload_digest_lists", "-d", "test", NULL);
}
wait(NULL);
......@@ -49,7 +49,7 @@ static void test_gen(void **state)
assert_return_code(ret, 0);
if (fork() == 0) {
execlp("src/gen_digest_lists", "gen_digest_lists",
execlp("../src/gen_digest_lists", "gen_digest_lists",
"-t", "parser", "-o", "remove", "-p", "0", "-d", "test",
NULL);
}
......@@ -57,7 +57,7 @@ static void test_gen(void **state)
wait(NULL);
if (fork() == 0) {
execlp("src/gen_digest_lists", "gen_digest_lists",
execlp("../src/gen_digest_lists", "gen_digest_lists",
"-t", "parser", "-o", "remove", "-p", "0", "-d", "test",
NULL);
}
......
......@@ -26,7 +26,7 @@
#include "lib.h"
#include "compact_list.h"
#define RPM_HEADER "tests/1-digestlist-rpm-libxslt-1.1.29-4.fc27-x86_64"
#define RPM_HEADER "1-digestlist-rpm-libxslt-1.1.29-4.fc27-x86_64"
#define NEW_COMPACT_LIST "test_compact_list"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册