forked from acouzens/open5gs
change test configuration directory to /tmp
This commit is contained in:
parent
81a8b00d78
commit
6eb05495aa
|
@ -122,8 +122,8 @@ int logger_start(const char *path)
|
|||
ret = unlink(D_LOGD_IPC_PATH);
|
||||
if (ret != 0)
|
||||
{
|
||||
fprintf(stderr, "unlink() failed. (%d:%s)\n",
|
||||
errno, strerror(errno));
|
||||
fprintf(stderr, "unlink(`%s`) failed. (%d:%s)\n",
|
||||
D_LOGD_IPC_PATH, errno, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
ret = bind(us, (struct sockaddr *)&svaddr, sizeof(svaddr));
|
||||
|
@ -212,5 +212,7 @@ int logger_start(const char *path)
|
|||
|
||||
close(us);
|
||||
|
||||
unlink(D_LOGD_IPC_PATH);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p `pwd`/../test/etc/freeDiameter `pwd`/../test/var/log
|
||||
sed 's?@SYSCONF_DIR@?'`pwd`'/etc?g;s?@LOCALSTATE_DIR@?'`pwd`'/var?g' `pwd`/../support/nextepc.conf.in > `pwd`/etc/nextepc.conf
|
||||
mkdir -p /tmp/nextepc/etc/freeDiameter /tmp/nextepc/var/log
|
||||
sed 's?@SYSCONF_DIR@?/tmp/nextepc/etc?g;s?@LOCALSTATE_DIR@?/tmp/nextepc/var?g' `pwd`/../support/nextepc.conf.in > /tmp/nextepc/etc/nextepc.conf
|
||||
for i in `cd ../support/freeDiameter && find . -name '*.conf.in' ! -name 'dict_legacy_xml.conf.in' -printf "%f\n" | sed 's/.in$//g'`
|
||||
do
|
||||
sed 's?@SYSCONF_DIR@?'`pwd`'/../support?g;s?@LIB_DIR@/nextepc/\([_a-z0-9]*\)\.so?'`pwd`'/../lib/fd/extensions/\1/.libs/\1.so?g' `pwd`/../support/freeDiameter/$i.in > `pwd`/etc/freeDiameter/$i
|
||||
sed 's?@SYSCONF_DIR@?'`pwd`'/../support?g;s?@LIB_DIR@/nextepc/\([_a-z0-9]*\)\.so?'`pwd`'/../lib/fd/extensions/\1/.libs/\1.so?g' `pwd`/../support/freeDiameter/$i.in > /tmp/nextepc/etc/freeDiameter/$i
|
||||
done
|
||||
|
||||
./testepc -f ./etc/nextepc.conf || exit;
|
||||
./testepc -f /tmp/nextepc/etc/nextepc.conf || exit;
|
||||
|
|
Loading…
Reference in New Issue