forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a monolith_test that includes all toxcore sources.
This requires that every symbol, even if static (file-scope), is unique. The idea is that we can easily run "whole" program static analysis on programs that include monolith.h ("whole" is in quotes, as we don't include dependencies like libsodium in this static analysis).
- Loading branch information
Showing
12 changed files
with
172 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* Auto Tests: One instance. | ||
*/ | ||
|
||
#ifdef HAVE_CONFIG_H | ||
#include "config.h" | ||
#endif | ||
|
||
#define _DARWIN_C_SOURCE | ||
#define _XOPEN_SOURCE 600 | ||
#include "../other/monolith.h" | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "../toxcore/tox.c" | ||
|
||
#include "../toxcore/crypto_core.c" | ||
#include "../toxcore/crypto_core_mem.c" | ||
#include "../toxcore/DHT.c" | ||
#include "../toxcore/friend_connection.c" | ||
#include "../toxcore/friend_requests.c" | ||
#include "../toxcore/group.c" | ||
#include "../toxcore/LAN_discovery.c" | ||
#include "../toxcore/list.c" | ||
#include "../toxcore/logger.c" | ||
#include "../toxcore/Messenger.c" | ||
#include "../toxcore/net_crypto.c" | ||
#include "../toxcore/network.c" | ||
#include "../toxcore/onion_announce.c" | ||
#include "../toxcore/onion.c" | ||
#include "../toxcore/onion_client.c" | ||
#include "../toxcore/ping_array.c" | ||
#include "../toxcore/ping.c" | ||
#include "../toxcore/TCP_client.c" | ||
#include "../toxcore/TCP_connection.c" | ||
#include "../toxcore/TCP_server.c" | ||
#include "../toxcore/tox_api.c" | ||
#include "../toxcore/util.c" | ||
|
||
#include "../toxav/audio.c" | ||
#include "../toxav/bwcontroller.c" | ||
#include "../toxav/groupav.c" | ||
#include "../toxav/msi.c" | ||
#include "../toxav/ring_buffer.c" | ||
#include "../toxav/rtp.c" | ||
#include "../toxav/toxav.c" | ||
#include "../toxav/toxav_old.c" | ||
#include "../toxav/video.c" | ||
|
||
#include "../toxencryptsave/toxencryptsave.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.