-
Notifications
You must be signed in to change notification settings - Fork 2
/
mktests
executable file
·9 lines (9 loc) · 1004 Bytes
/
mktests
1
2
3
4
5
6
7
8
9
#!/bin/sh
mkdir -p tests
gcc -g -DMAIN_COMMON_LOG src/common/log.c -o tests/log
gcc -g -DMAIN_COMMON_SIZESTR src/common/sizestr.c src/common/log.c -o tests/sizestr
gcc -g -DMAIN_COMMON_ERRNAME src/common/errname.c src/common/log.c -o tests/errname
gcc -g -DMAIN_COMMON_PROCUTIL src/common/procutil.c src/common/sizestr.c src/common/errname.c src/common/log.c -o tests/procutil
g++ -g -std=c++17 -DMAIN_PROCESS -Isrc -Wno-error=deprecated src/common/procutil.c src/common/sizestr.c src/common/errname.c src/common/log.c src/process/sockets.cpp src/process/process.cpp -o tests/process
g++ -g -std=c++17 -DMAIN_PROCESSES -Isrc -Wno-error=deprecated src/common/procutil.c src/common/sizestr.c src/common/errname.c src/common/log.c src/process/sockets.cpp src/process/process.cpp src/process/processes.cpp -o tests/processes
g++ -g -std=c++17 -DMAIN_SOCKETS -Isrc -Wno-error=deprecated src/common/procutil.c src/common/sizestr.c src/common/errname.c src/common/log.c src/process/sockets.cpp -o tests/sockets