Joachim Nilsson
|
9ab70ebbcd
|
Build all unit tests static, for easier debugging
- Add -static to LDFLAGS
- Remove CFLAGS override, respect input from configure script
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2017-01-07 13:00:08 +01:00 |
|
Joachim Nilsson
|
bad363883d
|
Fix leaky makepath() unit test
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2017-01-07 12:59:27 +01:00 |
|
Joachim Nilsson
|
7f3215b3e6
|
Update pidfile unit test to cover new use-case
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2017-01-07 12:59:02 +01:00 |
|
Joachim Nilsson
|
b716776863
|
tests/pidfile: Cleanup test files from /tmp
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2017-01-07 06:53:21 +01:00 |
|
Joachim Nilsson
|
94d547c9ec
|
Unit test: fix search path for library header
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-09-05 00:19:52 +02:00 |
|
Joachim Nilsson
|
b6a55fcc46
|
Add err.h include to tests
lite.h no longer includes err.h it has to be included in each test.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-09-05 00:07:24 +02:00 |
|
Joachim Nilsson
|
7c2ed556b9
|
Replace \e GNUism w/ ISO \033 for escape sequences
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-08-22 01:31:49 +02:00 |
|
Joachim Nilsson
|
6dec4e3858
|
Extend lfile test with fstab parser
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-08-02 00:29:52 +02:00 |
|
Joachim Nilsson
|
23703c75da
|
tests/dir.c: Remove nested checker function
Move nested check function is_startup_config() outside main().
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 18:15:47 +02:00 |
|
Joachim Nilsson
|
682b662bd5
|
Add unit test for chomp()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 18:09:29 +02:00 |
|
Joachim Nilsson
|
75d4edb424
|
check.h: Add stdlib.h for exit()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 18:08:54 +02:00 |
|
Joachim Nilsson
|
141d4f6936
|
Add unit test for copyfile()/fcopyfile()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:59:52 +02:00 |
|
Joachim Nilsson
|
63aa6c5d07
|
Add unit test for dir()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:56:13 +02:00 |
|
Joachim Nilsson
|
92d81280a9
|
Add unit test for fexist()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:45:19 +02:00 |
|
Joachim Nilsson
|
267465f3d2
|
Add unit test for fisdir()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:42:31 +02:00 |
|
Joachim Nilsson
|
c22a6e64d9
|
Add unit test for progress bars
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:39:31 +02:00 |
|
Joachim Nilsson
|
6e558e98f0
|
Add unit test for rsync
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:28:41 +02:00 |
|
Joachim Nilsson
|
69291d3e74
|
Add unit test for fsendfile()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:20:58 +02:00 |
|
Joachim Nilsson
|
3c350b8862
|
Add unit test for LITE file API
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:11:22 +02:00 |
|
Joachim Nilsson
|
5b786ce221
|
Add unit test for tempfile()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 17:07:14 +02:00 |
|
Joachim Nilsson
|
2d6e8850a2
|
Add unit test for tree
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 15:32:35 +02:00 |
|
Joachim Nilsson
|
d8cb477861
|
Ignore *.log and *.trs files in unit test dir
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 15:31:24 +02:00 |
|
Joachim Nilsson
|
27644677dd
|
Clean *.trs and *.log files from unit test dir
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 15:31:24 +02:00 |
|
Joachim Nilsson
|
3588c9b01f
|
Rename unit tests, drop _func suffix
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 15:31:24 +02:00 |
|
Joachim Nilsson
|
ca3ea5ae92
|
Add unit test for mkpath() and makepath() funcs
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 15:31:23 +02:00 |
|
Joachim Nilsson
|
8e2c58501c
|
Build all unit tests with -W -Wall -Wextra
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 14:02:36 +02:00 |
|
Joachim Nilsson
|
1da317ce1e
|
Add missing signal.h include
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 14:02:27 +02:00 |
|
Joachim Nilsson
|
61fb7aeca2
|
New unit test framework, first test pidfile funcs
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2016-06-06 12:30:35 +02:00 |
|