mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Analysis workflow, output failure cases.
This commit is contained in:
parent
658db66c3f
commit
7d16b2c268
2 changed files with 22 additions and 6 deletions
6
.github/workflows/analysis_ports.yml
vendored
6
.github/workflows/analysis_ports.yml
vendored
|
|
@ -232,7 +232,11 @@ jobs:
|
||||||
echo "./configure --enable-debug --enable-static-exe --disable-flto \"--with-ssl=$prepath/openssl\" --with-libexpat=\"$prepath/expat\""
|
echo "./configure --enable-debug --enable-static-exe --disable-flto \"--with-ssl=$prepath/openssl\" --with-libexpat=\"$prepath/expat\""
|
||||||
./configure --enable-debug --enable-static-exe --disable-flto "--with-ssl=$prepath/openssl" --with-libexpat="$prepath/expat"
|
./configure --enable-debug --enable-static-exe --disable-flto "--with-ssl=$prepath/openssl" --with-libexpat="$prepath/expat"
|
||||||
make
|
make
|
||||||
make test || ./testbound.exe -p testdata/acl.rpl -o -vvvv
|
# specific test output
|
||||||
|
make testbound; ./testbound -s
|
||||||
|
# make testbound; ./testbound.exe -p testdata/acl.rpl -o -vvvv
|
||||||
|
make testbound; ./testbound.exe -p testdata/auth_nsec3_ent.rpl -o -vvvv
|
||||||
|
make test
|
||||||
- name: test_android
|
- name: test_android
|
||||||
if: ${{ matrix.test_android == 'yes' }}
|
if: ${{ matrix.test_android == 'yes' }}
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -999,21 +999,33 @@ void testbound_selftest(void)
|
||||||
tb_assert( v && strcmp(v, "1ww2ww3") == 0);
|
tb_assert( v && strcmp(v, "1ww2ww3") == 0);
|
||||||
free(v);
|
free(v);
|
||||||
|
|
||||||
#ifndef USE_WINSOCK
|
//#ifndef USE_WINSOCK
|
||||||
|
printf("start of ctime tests\n");
|
||||||
v = macro_process(store, NULL, "it is ${ctime 123456}");
|
v = macro_process(store, NULL, "it is ${ctime 123456}");
|
||||||
tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
|
printf("test for ctime 123456\n");
|
||||||
|
printf("should be 'it is Fri Jan 2 10:17:36 1970'\n");
|
||||||
|
printf("got '%s'\n", v);
|
||||||
|
//tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
|
||||||
free(v);
|
free(v);
|
||||||
|
|
||||||
r = macro_assign(store, "t1", "123456");
|
r = macro_assign(store, "t1", "123456");
|
||||||
tb_assert(r);
|
tb_assert(r);
|
||||||
v = macro_process(store, NULL, "it is ${ctime ${$t1}}");
|
v = macro_process(store, NULL, "it is ${ctime ${$t1}}");
|
||||||
tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
|
printf("test2 for ctime 123456\n");
|
||||||
|
printf("should be 'it is Fri Jan 2 10:17:36 1970'\n");
|
||||||
|
printf("got '%s'\n", v);
|
||||||
|
//tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
|
||||||
free(v);
|
free(v);
|
||||||
|
|
||||||
v = macro_process(store, NULL, "it is ${ctime $t1}");
|
v = macro_process(store, NULL, "it is ${ctime $t1}");
|
||||||
tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
|
printf("test3 for ctime 123456\n");
|
||||||
|
printf("should be 'it is Fri Jan 2 10:17:36 1970'\n");
|
||||||
|
printf("got '%s'\n", v);
|
||||||
|
//tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
|
||||||
free(v);
|
free(v);
|
||||||
#endif /* WINSOCK */
|
printf("end of ctime tests\n");
|
||||||
|
//#endif
|
||||||
|
/* WINSOCK */
|
||||||
|
|
||||||
r = macro_assign(store, "x", "1");
|
r = macro_assign(store, "x", "1");
|
||||||
tb_assert(r);
|
tb_assert(r);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue