diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/DHT_test.c | 31 | ||||
-rw-r--r-- | testing/Messenger_test.c | 31 | ||||
-rw-r--r-- | testing/av_test.c | 39 | ||||
-rw-r--r-- | testing/dns3_test.c | 2 | ||||
-rw-r--r-- | testing/misc_tools.c | 34 | ||||
-rw-r--r-- | testing/nTox.c | 33 | ||||
-rw-r--r-- | testing/nTox.h | 36 | ||||
-rw-r--r-- | testing/tox_shell.c | 32 | ||||
-rw-r--r-- | testing/tox_sync.c | 32 |
9 files changed, 136 insertions, 134 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 6d20d550..1fbe6def 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -7,26 +7,27 @@ | |||
7 | * EX: ./test 127.0.0.1 33445 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | 7 | * EX: ./test 127.0.0.1 33445 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
8 | * | 8 | * |
9 | * The test will then ask you for the id (in hex format) of the friend you wish to add | 9 | * The test will then ask you for the id (in hex format) of the friend you wish to add |
10 | */ | ||
11 | |||
12 | /* | ||
13 | * Copyright © 2016-2017 The TokTok team. | ||
14 | * Copyright © 2013 Tox project. | ||
10 | * | 15 | * |
11 | * Copyright (C) 2013 Tox project All Rights Reserved. | 16 | * This file is part of Tox, the free peer to peer instant messenger. |
12 | * | ||
13 | * This file is part of Tox. | ||
14 | * | ||
15 | * Tox is free software: you can redistribute it and/or modify | ||
16 | * it under the terms of the GNU General Public License as published by | ||
17 | * the Free Software Foundation, either version 3 of the License, or | ||
18 | * (at your option) any later version. | ||
19 | * | 17 | * |
20 | * Tox is distributed in the hope that it will be useful, | 18 | * Tox is free software: you can redistribute it and/or modify |
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 19 | * it under the terms of the GNU General Public License as published by |
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 20 | * the Free Software Foundation, either version 3 of the License, or |
23 | * GNU General Public License for more details. | 21 | * (at your option) any later version. |
24 | * | 22 | * |
25 | * You should have received a copy of the GNU General Public License | 23 | * Tox is distributed in the hope that it will be useful, |
26 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
26 | * GNU General Public License for more details. | ||
27 | * | 27 | * |
28 | * You should have received a copy of the GNU General Public License | ||
29 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | ||
28 | */ | 30 | */ |
29 | |||
30 | #define _XOPEN_SOURCE 600 | 31 | #define _XOPEN_SOURCE 600 |
31 | 32 | ||
32 | #ifdef HAVE_CONFIG_H | 33 | #ifdef HAVE_CONFIG_H |
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c index 695c50ae..467d7988 100644 --- a/testing/Messenger_test.c +++ b/testing/Messenger_test.c | |||
@@ -17,26 +17,27 @@ | |||
17 | * Or the argument can be the path to the save file. | 17 | * Or the argument can be the path to the save file. |
18 | * | 18 | * |
19 | * EX: ./test Save.bak | 19 | * EX: ./test Save.bak |
20 | */ | ||
21 | |||
22 | /* | ||
23 | * Copyright © 2016-2017 The TokTok team. | ||
24 | * Copyright © 2013 Tox project. | ||
20 | * | 25 | * |
21 | * Copyright (C) 2013 Tox project All Rights Reserved. | 26 | * This file is part of Tox, the free peer to peer instant messenger. |
22 | * | ||
23 | * This file is part of Tox. | ||
24 | * | ||
25 | * Tox is free software: you can redistribute it and/or modify | ||
26 | * it under the terms of the GNU General Public License as published by | ||
27 | * the Free Software Foundation, either version 3 of the License, or | ||
28 | * (at your option) any later version. | ||
29 | * | 27 | * |
30 | * Tox is distributed in the hope that it will be useful, | 28 | * Tox is free software: you can redistribute it and/or modify |
31 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 29 | * it under the terms of the GNU General Public License as published by |
32 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 30 | * the Free Software Foundation, either version 3 of the License, or |
33 | * GNU General Public License for more details. | 31 | * (at your option) any later version. |
34 | * | 32 | * |
35 | * You should have received a copy of the GNU General Public License | 33 | * Tox is distributed in the hope that it will be useful, |
36 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 34 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
35 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
36 | * GNU General Public License for more details. | ||
37 | * | 37 | * |
38 | * You should have received a copy of the GNU General Public License | ||
39 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | ||
38 | */ | 40 | */ |
39 | |||
40 | #define _XOPEN_SOURCE 600 | 41 | #define _XOPEN_SOURCE 600 |
41 | 42 | ||
42 | #ifdef HAVE_CONFIG_H | 43 | #ifdef HAVE_CONFIG_H |
diff --git a/testing/av_test.c b/testing/av_test.c index aeb661be..8aaebfe7 100644 --- a/testing/av_test.c +++ b/testing/av_test.c | |||
@@ -1,27 +1,28 @@ | |||
1 | /** av_test.c | 1 | /* |
2 | * | 2 | * Compile with (Linux only; in newly created directory toxcore/dir_name): |
3 | * Copyright (C) 2013-2015 Tox project All Rights Reserved. | 3 | * gcc -o av_test ../toxav/av_test.c ../build/.libs/libtox*.a -lopencv_core \ |
4 | * | 4 | * -lopencv_highgui -lopencv_imgproc -lsndfile -pthread -lvpx -lopus -lsodium -lportaudio |
5 | * This file is part of Tox. | 5 | */ |
6 | |||
7 | /* | ||
8 | * Copyright © 2016-2017 The TokTok team. | ||
9 | * Copyright © 2013-2015 Tox project. | ||
6 | * | 10 | * |
7 | * Tox is free software: you can redistribute it and/or modify | 11 | * This file is part of Tox, the free peer to peer instant messenger. |
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation, either version 3 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | 12 | * |
12 | * Tox is distributed in the hope that it will be useful, | 13 | * Tox is free software: you can redistribute it and/or modify |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * it under the terms of the GNU General Public License as published by |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | * the Free Software Foundation, either version 3 of the License, or |
15 | * GNU General Public License for more details. | 16 | * (at your option) any later version. |
16 | * | 17 | * |
17 | * You should have received a copy of the GNU General Public License | 18 | * Tox is distributed in the hope that it will be useful, |
18 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
21 | * GNU General Public License for more details. | ||
19 | * | 22 | * |
20 | * Compile with (Linux only; in newly created directory toxcore/dir_name): | 23 | * You should have received a copy of the GNU General Public License |
21 | * gcc -o av_test ../toxav/av_test.c ../build/.libs/libtox*.a -lopencv_core \ | 24 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. |
22 | * -lopencv_highgui -lopencv_imgproc -lsndfile -pthread -lvpx -lopus -lsodium -lportaudio | ||
23 | */ | 25 | */ |
24 | |||
25 | #define _XOPEN_SOURCE 600 | 26 | #define _XOPEN_SOURCE 600 |
26 | 27 | ||
27 | #ifdef __cplusplus | 28 | #ifdef __cplusplus |
diff --git a/testing/dns3_test.c b/testing/dns3_test.c index 7356bc00..a2c0ea5b 100644 --- a/testing/dns3_test.c +++ b/testing/dns3_test.c | |||
@@ -1,5 +1,3 @@ | |||
1 | |||
2 | |||
3 | #include "../toxcore/network.h" | 1 | #include "../toxcore/network.h" |
4 | #include "../toxcore/tox.h" | 2 | #include "../toxcore/tox.h" |
5 | #include "../toxdns/toxdns.h" | 3 | #include "../toxdns/toxdns.h" |
diff --git a/testing/misc_tools.c b/testing/misc_tools.c index 8798c6dd..5a110b51 100644 --- a/testing/misc_tools.c +++ b/testing/misc_tools.c | |||
@@ -1,26 +1,26 @@ | |||
1 | /* misc_tools.c | 1 | /* |
2 | * | ||
3 | * Miscellaneous functions and data structures for doing random things. | 2 | * Miscellaneous functions and data structures for doing random things. |
3 | */ | ||
4 | |||
5 | /* | ||
6 | * Copyright © 2016-2017 The TokTok team. | ||
7 | * Copyright © 2013 Tox project. | ||
4 | * | 8 | * |
5 | * Copyright (C) 2013 Tox project All Rights Reserved. | 9 | * This file is part of Tox, the free peer to peer instant messenger. |
6 | * | ||
7 | * This file is part of Tox. | ||
8 | * | ||
9 | * Tox is free software: you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation, either version 3 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | 10 | * |
14 | * Tox is distributed in the hope that it will be useful, | 11 | * Tox is free software: you can redistribute it and/or modify |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * it under the terms of the GNU General Public License as published by |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | * the Free Software Foundation, either version 3 of the License, or |
17 | * GNU General Public License for more details. | 14 | * (at your option) any later version. |
18 | * | 15 | * |
19 | * You should have received a copy of the GNU General Public License | 16 | * Tox is distributed in the hope that it will be useful, |
20 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
21 | * | 20 | * |
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | ||
22 | */ | 23 | */ |
23 | |||
24 | #ifdef HAVE_CONFIG_H | 24 | #ifdef HAVE_CONFIG_H |
25 | #include "config.h" | 25 | #include "config.h" |
26 | #endif | 26 | #endif |
diff --git a/testing/nTox.c b/testing/nTox.c index 88a80dac..160aef29 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -1,24 +1,25 @@ | |||
1 | /* nTox.c | 1 | /* |
2 | * | ||
3 | * Textual frontend for Tox. | 2 | * Textual frontend for Tox. |
3 | */ | ||
4 | |||
5 | /* | ||
6 | * Copyright © 2016-2017 The TokTok team. | ||
7 | * Copyright © 2013 Tox project. | ||
4 | * | 8 | * |
5 | * Copyright (C) 2013 Tox project All Rights Reserved. | 9 | * This file is part of Tox, the free peer to peer instant messenger. |
6 | * | ||
7 | * This file is part of Tox. | ||
8 | * | ||
9 | * Tox is free software: you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation, either version 3 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | 10 | * |
14 | * Tox is distributed in the hope that it will be useful, | 11 | * Tox is free software: you can redistribute it and/or modify |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * it under the terms of the GNU General Public License as published by |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | * the Free Software Foundation, either version 3 of the License, or |
17 | * GNU General Public License for more details. | 14 | * (at your option) any later version. |
18 | * | 15 | * |
19 | * You should have received a copy of the GNU General Public License | 16 | * Tox is distributed in the hope that it will be useful, |
20 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
21 | * | 20 | * |
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | ||
22 | */ | 23 | */ |
23 | #ifdef HAVE_CONFIG_H | 24 | #ifdef HAVE_CONFIG_H |
24 | #include "config.h" | 25 | #include "config.h" |
diff --git a/testing/nTox.h b/testing/nTox.h index 61f86a9b..b1c93895 100644 --- a/testing/nTox.h +++ b/testing/nTox.h | |||
@@ -1,26 +1,26 @@ | |||
1 | /* nTox.h | 1 | /* |
2 | * | 2 | * Textual frontend for Tox. |
3 | *Textual frontend for Tox. | 3 | */ |
4 | * | 4 | |
5 | * Copyright (C) 2013 Tox project All Rights Reserved. | 5 | /* |
6 | * | 6 | * Copyright © 2016-2017 The TokTok team. |
7 | * This file is part of Tox. | 7 | * Copyright © 2013 Tox project. |
8 | * | 8 | * |
9 | * Tox is free software: you can redistribute it and/or modify | 9 | * This file is part of Tox, the free peer to peer instant messenger. |
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation, either version 3 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | 10 | * |
14 | * Tox is distributed in the hope that it will be useful, | 11 | * Tox is free software: you can redistribute it and/or modify |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * it under the terms of the GNU General Public License as published by |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | * the Free Software Foundation, either version 3 of the License, or |
17 | * GNU General Public License for more details. | 14 | * (at your option) any later version. |
18 | * | 15 | * |
19 | * You should have received a copy of the GNU General Public License | 16 | * Tox is distributed in the hope that it will be useful, |
20 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
21 | * | 20 | * |
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | ||
22 | */ | 23 | */ |
23 | |||
24 | #ifndef NTOX_H | 24 | #ifndef NTOX_H |
25 | #define NTOX_H | 25 | #define NTOX_H |
26 | 26 | ||
diff --git a/testing/tox_shell.c b/testing/tox_shell.c index d5de3e67..f983f4e9 100644 --- a/testing/tox_shell.c +++ b/testing/tox_shell.c | |||
@@ -5,27 +5,27 @@ | |||
5 | * Command line arguments are the ip, port and public_key of a node (for bootstrapping). | 5 | * Command line arguments are the ip, port and public_key of a node (for bootstrapping). |
6 | * | 6 | * |
7 | * EX: ./test 127.0.0.1 33445 CDCFD319CE3460824B33BE58FD86B8941C9585181D8FBD7C79C5721D7C2E9F7C | 7 | * EX: ./test 127.0.0.1 33445 CDCFD319CE3460824B33BE58FD86B8941C9585181D8FBD7C79C5721D7C2E9F7C |
8 | */ | ||
9 | |||
10 | /* | ||
11 | * Copyright © 2016-2017 The TokTok team. | ||
12 | * Copyright © 2014 Tox project. | ||
8 | * | 13 | * |
14 | * This file is part of Tox, the free peer to peer instant messenger. | ||
9 | * | 15 | * |
10 | * Copyright (C) 2014 Tox project All Rights Reserved. | 16 | * Tox is free software: you can redistribute it and/or modify |
11 | * | 17 | * it under the terms of the GNU General Public License as published by |
12 | * This file is part of Tox. | 18 | * the Free Software Foundation, either version 3 of the License, or |
13 | * | 19 | * (at your option) any later version. |
14 | * Tox is free software: you can redistribute it and/or modify | ||
15 | * it under the terms of the GNU General Public License as published by | ||
16 | * the Free Software Foundation, either version 3 of the License, or | ||
17 | * (at your option) any later version. | ||
18 | * | ||
19 | * Tox is distributed in the hope that it will be useful, | ||
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
22 | * GNU General Public License for more details. | ||
23 | * | 20 | * |
24 | * You should have received a copy of the GNU General Public License | 21 | * Tox is distributed in the hope that it will be useful, |
25 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
24 | * GNU General Public License for more details. | ||
26 | * | 25 | * |
26 | * You should have received a copy of the GNU General Public License | ||
27 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | ||
27 | */ | 28 | */ |
28 | |||
29 | #define _XOPEN_SOURCE 600 | 29 | #define _XOPEN_SOURCE 600 |
30 | 30 | ||
31 | #ifdef HAVE_CONFIG_H | 31 | #ifdef HAVE_CONFIG_H |
diff --git a/testing/tox_sync.c b/testing/tox_sync.c index 6ac3dcf0..c719b3ec 100644 --- a/testing/tox_sync.c +++ b/testing/tox_sync.c | |||
@@ -7,27 +7,27 @@ | |||
7 | * EX: ./test 127.0.0.1 33445 CDCFD319CE3460824B33BE58FD86B8941C9585181D8FBD7C79C5721D7C2E9F7C ./sync_folder/ | 7 | * EX: ./test 127.0.0.1 33445 CDCFD319CE3460824B33BE58FD86B8941C9585181D8FBD7C79C5721D7C2E9F7C ./sync_folder/ |
8 | * | 8 | * |
9 | * NOTE: for security purposes, both tox sync instances must manually add each other as friend for it to work. | 9 | * NOTE: for security purposes, both tox sync instances must manually add each other as friend for it to work. |
10 | */ | ||
11 | |||
12 | /* | ||
13 | * Copyright © 2016-2017 The TokTok team. | ||
14 | * Copyright © 2013 Tox project. | ||
10 | * | 15 | * |
16 | * This file is part of Tox, the free peer to peer instant messenger. | ||
11 | * | 17 | * |
12 | * Copyright (C) 2013 Tox project All Rights Reserved. | 18 | * Tox is free software: you can redistribute it and/or modify |
13 | * | 19 | * it under the terms of the GNU General Public License as published by |
14 | * This file is part of Tox. | 20 | * the Free Software Foundation, either version 3 of the License, or |
15 | * | 21 | * (at your option) any later version. |
16 | * Tox is free software: you can redistribute it and/or modify | ||
17 | * it under the terms of the GNU General Public License as published by | ||
18 | * the Free Software Foundation, either version 3 of the License, or | ||
19 | * (at your option) any later version. | ||
20 | * | ||
21 | * Tox is distributed in the hope that it will be useful, | ||
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
24 | * GNU General Public License for more details. | ||
25 | * | 22 | * |
26 | * You should have received a copy of the GNU General Public License | 23 | * Tox is distributed in the hope that it will be useful, |
27 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
26 | * GNU General Public License for more details. | ||
28 | * | 27 | * |
28 | * You should have received a copy of the GNU General Public License | ||
29 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | ||
29 | */ | 30 | */ |
30 | |||
31 | #define _XOPEN_SOURCE 600 | 31 | #define _XOPEN_SOURCE 600 |
32 | 32 | ||
33 | #ifdef HAVE_CONFIG_H | 33 | #ifdef HAVE_CONFIG_H |