mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 09:26:37 +00:00
Merge branch 'master' into rhizomedirect
This commit is contained in:
commit
420add0f4b
8
Makefile.in
Normal file → Executable file
8
Makefile.in
Normal file → Executable file
@ -51,7 +51,7 @@ SRCS= \
|
||||
sha2.c \
|
||||
sighandlers.c \
|
||||
simulate.c \
|
||||
sqlite3.c \
|
||||
sqlite-amalgamation-3070900/sqlite3.c \
|
||||
srandomdev.c \
|
||||
str.c \
|
||||
strbuf.c \
|
||||
@ -96,7 +96,7 @@ HDRS= fifo.h \
|
||||
|
||||
LDFLAGS=@LDFLAGS@ @PORTAUDIO_LIBS@ @SRC_LIBS@ @SPANDSP_LIBS@ @CODEC2_LIBS@ @PTHREAD_LIBS@
|
||||
|
||||
CFLAGS= @CPPFLAGS@ @CFLAGS@ @PORTAUDIO_CFLAGS@ @SRC_CFLAGS@ @SPANDSP_CFLAGS@ @PTHREAD_CFLAGS@ $(VOIPTEST_CFLAGS)
|
||||
CFLAGS= -Isqlite-amalgamation-3070900 @CPPFLAGS@ @CFLAGS@ @PORTAUDIO_CFLAGS@ @SRC_CFLAGS@ @SPANDSP_CFLAGS@ @PTHREAD_CFLAGS@ $(VOIPTEST_CFLAGS)
|
||||
CFLAGS+=-fPIC
|
||||
CFLAGS+=-Wall -Wno-unused-value
|
||||
-include Makefile.dbg
|
||||
@ -105,9 +105,9 @@ DEFS= @DEFS@
|
||||
|
||||
all: servald libmonitorclient.so libmonitorclient.a
|
||||
|
||||
sqlite3.o: sqlite3.c
|
||||
sqlite-amalgamation-3070900/sqlite3.o: sqlite-amalgamation-3070900/sqlite3.c
|
||||
@echo CC $<
|
||||
@$(CC) $(CFLAGS) $(DEFS) -c $<
|
||||
@$(CC) $(CFLAGS) $(DEFS) -c $< -o sqlite-amalgamation-3070900/sqlite3.o
|
||||
|
||||
%.o: %.c $(HDRS)
|
||||
@echo CC $<
|
||||
|
@ -844,7 +844,13 @@ _tfw_parse_times_to_milliseconds() {
|
||||
}
|
||||
|
||||
_tfw_assert() {
|
||||
if ! "$@"; then
|
||||
local sense=
|
||||
while [ "$1" = '!' ]; do
|
||||
sense="$sense !"
|
||||
shift
|
||||
done
|
||||
"$@"
|
||||
if [ $sense $? -ne 0 ]; then
|
||||
_tfw_failmsg "assertion failed: ${_tfw_message:-$*}"
|
||||
_tfw_backtrace
|
||||
return 1
|
||||
|
@ -28,7 +28,7 @@ setup() {
|
||||
doc_GetCreateInstanceDir="Get creates instance directory"
|
||||
setup_GetCreateInstanceDir() {
|
||||
setup
|
||||
assert [ ! -d "$SERVALINSTANCE_PATH" ]
|
||||
assert ! [ -d "$SERVALINSTANCE_PATH" ]
|
||||
}
|
||||
test_GetCreateInstanceDir() {
|
||||
executeOk_servald config get
|
||||
@ -38,7 +38,7 @@ test_GetCreateInstanceDir() {
|
||||
doc_SetCreateInstanceDir="Set creates instance directory"
|
||||
setup_SetCreateInstanceDir() {
|
||||
setup
|
||||
assert [ ! -d "$SERVALINSTANCE_PATH" ]
|
||||
assert ! [ -d "$SERVALINSTANCE_PATH" ]
|
||||
}
|
||||
test_SetCreateInstanceDir() {
|
||||
executeOk_servald config set foo bar
|
||||
|
Loading…
x
Reference in New Issue
Block a user