Damir Tomic [Thu, 6 Aug 2015 18:24:05 +0000 (20:24 +0200)]
log.c:
modified to allow calling of multiple atexit(cleanup_log) without causing a segfault.
t-log.c:
minor cleanup, fixes, stuff works (in combination with updated log.c)
Damir Tomic [Thu, 6 Aug 2015 08:27:35 +0000 (10:27 +0200)]
Makefile.am:
small fix
socktoa.c, run-decodenetnum.c:
update
decodenetnum.c:
Minor changes due to the autogenerated ruby script
run-socktoa.c:
Minor changes due to the autogenerated ruby script
Damir Tomic [Wed, 5 Aug 2015 14:53:22 +0000 (16:53 +0200)]
Makefile.am:
new file
added ntpq dir
added a new test, test-log
t-log.c:
removed the 2nd test because only one open_logfile per program can be used (segfault otherwise)
run-t-log.c:
new file, HAS ISSUES WITH CONST CHAR *progname.
Damir Tomic [Mon, 3 Aug 2015 09:43:07 +0000 (11:43 +0200)]
Makefile.am:
changed signdT -> t-ntp_signd. All tests files will from now on be named t-name.c , where name.c is the name of the tested file.
run-ntp_signdT.c~8aba306cc0dcbfc:
Delete: tests/ntpd/run-ntp_signdT.c
run-t-ntp_signd.c:
Rename: tests/ntpd/run-ntp_signd.c -> tests/ntpd/run-t-ntp_signd.c
t-ntp_signd.c:
Rename: tests/ntpd/ntp_signdT.c -> tests/ntpd/t-ntp_signd.c
Damir Tomic [Sat, 1 Aug 2015 20:40:51 +0000 (22:40 +0200)]
ntp_signdT.c:
MUST ADD #define HAVE_NTP_NAME above the #include "ntp_NAME.c"
Makefile.am:
Added test ntp_singd again, renamed it to ntp_signdT (including the original ntp_signd.c doesn't work if you have 2 files with the same name).
I included the original ntp_signd.c, so static functions can be tested.
Additional .o objects had to be added for everyhting to work.
run-leapsec.c:
minor change
run-ntp_scanner.c, run-decodenetnum.c:
update
ntp_scanner.c:
Added more tests
lfptest.h:
minor move after merge with lokesh
Makefile.am:
Merge
Tomasz Flendrich [Mon, 27 Jul 2015 00:50:42 +0000 (00:50 +0000)]
Merge psp-at1.ntp.org:/home/stenn/ntp-stable-unity
into psp-at1.ntp.org:/a/etc/amd.stage/thump2-g3/export/ntp/home/tflendrich/ntpd_tests_clean/ntp-stable-unity
run-ntp_restrict.c:
autogenerated, but modified manually...
Makefile.am:
removed something not longer in use
ntp_restrict.c:
added another test
run-ntp_restrict.c, run-ntp_prio_q.c, run-sec-2853.c, run-bug-2803.c:
autogenerated
Wrote tests for ntpd/ntp_restrict.c
ntp_restrict.c, run-ntp_restrict.c:
new file
Makefile.am:
added ntp_restrict.c test
ntp_restrict.c:
added assertions (I prefer them to a segfault)
Updated unity ruby testRunner generator with mark's latest fixes. Modified tests/libntp/Makefile.am and sntp/tests/Makefile.am accordingly. Also, split some .h files into .h and .c because they contained declarations and definitions which caused error in the newly generated test runners. Started fixing some warnings. We can add both declarations and defitions in a single test.c file without any issues now. Autogenerated tests will be run in order of the declarations in the test file.
lfptest.h:
now it uses NTP's conventions
ChangeLog:
add info about lfptest.h
test-libntp.c:
fixed formatting
sockaddrtest.h:
formatting fix
kodDatabase.c:
formatting, adding const, adding a missing library
ChangeLog:
added info about timespecops.c
kodFile.c:
formatting, changes to usage of unity macros to get better print messages, cleanup
crypto.c, lfptest.h:
cleanup
ChangeLog:
add info about test-libntp.c
timespecops.c:
further formatting changes
ChangeLog:
added info about timevalops.c
fileHandlingTest.h.in:
fixed buffer overflow problem and fixed one function that previously did nothing
timevalops.c:
fixed the order of includes, deleted unnecessary
packetProcessing.c:
formatting, sprintf->snprintf
packetHandling.c:
formatting, using better unity functions, using proper unity functions, deleting unused variable
keyFile.c:
formatting, using proper unity's macros
ChangeLog:
fileHandlingTest.h info
updating with info about sockaddrtest.h
timespecops.c:
forgot to delete one comment
ChangeLog:
added info about my code review changes in sntp/tests/
kodDatabase.c:
missed something in formatting
sntptest.h:
formatting
Many files:
autogenerated
kodDatabase.c:
added a header. now it's windows compliant too!
fileHandlingTest.h.in:
formatting, deleted unnecessary prints
timespecops.c:
fixed formatting, fixed the order of includes,
removed unnecessary comments, cleanup
utilities.c:
the order of includes, formatting, removing unnecessary comments, using proper unity assertions
vi64ops.c:
deleted a comment
ymd2yd.c:
fixed formatting, deleted empty setUp() and tearDown()
ssl_init.c:
fixed formatting
ChangeLog:
updated the changes to vi64ops.c
vi64ops.c:
fixed formatting (trailing spaces, the order of includes, return type of a function in a new line)
ChangeLog:
info about tvtots.c
ymd2yd.c:
removed an include
ChangeLog:
info about ymd2yd.c
uglydate.c:
removed an unnecessary include
ChangeLog:
info about uglydate.c
statestr.c:
deleted unnecessary empty functions, fixed formatting, removed an unnecessary include
ChangeLog:
info about vi64ops.c
tvtots.c:
fixed a bug, fixed formatting
Many files:
autogenerated
refnumtoa.c:
fixed formatting
numtoa.c:
remove unnecessary empty functions, fix formatting
lfpfunc.c:
remove unnecessary include, remove old comments, fix formatting, cleanup
numtohost.c:
added const, fixed formatting
lfptostr.c:
fix formatting, delete an include
lfpfunc.c:
removed an endline
ChangeLog:
update with new changes to numtoa.c
numtoa.c:
added "const"
ChangeLog:
changes with numtohost.c
added changes to lfpfunc.c
add info about numtoa.c
updated with modetoa.c changes
add info about lfptostr.c
msyslog.c, modetoa.c:
fix formatting
Many files:
autogenerated
ChangeLog:
add info about msyslog.c
lfpfunc.c:
added spaces after the commas
ChangeLog:
updated info about refnumtoa.c