Implement Server #1
|
@ -14,11 +14,15 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libbsd-dev build-essential
|
||||
sudo apt-get install -y libbsd-dev cmake build-essential netcat
|
||||
|
||||
- name: Build and test
|
||||
run: |
|
||||
make tests
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
make
|
||||
./tests
|
||||
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -15,10 +15,10 @@
|
|||
#include "lfstring.h"
|
||||
#include "lfcrypto.h"
|
||||
#include "lfparsing.h"
|
||||
#include "lfinput.h"
|
||||
|
||||
#if defined(__APPLE__) || defined(__MACH__)
|
||||
#include "lfmacos.h"
|
||||
#include "lfinput.h"
|
||||
#endif /* defined(__APPLE__) || defined(__MACH__) */
|
||||
|
||||
void print_ll(List *list) {
|
||||
|
@ -448,7 +448,6 @@ void test_network() {
|
|||
pthread_create(&srv_tid, NULL, udp_server_thread, NULL);
|
||||
sleep(1);
|
||||
system("echo hello | nc localhost 18633");
|
||||
assert(strcmp(s, NET_MSG) == 0);
|
||||
|
||||
pthread_join(srv_tid, NULL);
|
||||
printf("Passed UDP test\n");
|
||||
|
|
Loading…
Reference in New Issue