Arnaud Bailly
fe4fb532cd
export Network.Socket functions fix #152
2019-11-11 08:38:10 +01:00
Edwin Brady
65b3ddb81b
Add --libdir option
...
This makes it easier for more complicated packages (e.g. network, which
needs to install a C shared library) to know where to put things without
having to work out the prefix themselves.
2019-09-19 13:04:39 +01:00
Edwin Brady
33780dd5e1
Merge branch 'master' of github.com:edwinb/Idris2
2019-09-14 11:34:32 +01:00
Arnaud Bailly
4194409682
remove another message to make network tests more reliable
2019-09-13 18:43:35 +02:00
Edwin Brady
412930522e
Put idris version number in package install path
...
Since they'll be incompatible between different Idris2 versions, this
helps protect against importing the wrong thing by mistake. Also, it
means the canonical place for the version number is now the top level
Makefile.
You'll need to delete src/YafflePaths.idr before rebuilding, since it's
now generated slightly differently.
2019-09-04 16:20:26 +01:00
Edwin Brady
65db4fbf96
Put built ttcs in build/ttc, rather than build
...
This is so that we can put other build artefacts (e.g. executables) in
properly organised subdirectories of build, e.g. build/bin/chez,
build/bin/js, etc.
2019-09-04 12:41:16 +01:00
Edwin Brady
68b0d64879
Add parameterised pointer type
...
For at least a bit of safety in foreign APIs. AnyPtr has the old Ptr
behaviour.
2019-09-04 10:25:45 +01:00
Edwin Brady
f123fcaf84
Display output on network test fail
...
This still seems to be failing on travis, so let's see what it looks
like!
2019-08-29 12:56:13 +01:00
Edwin Brady
6a0cfa125a
Update network build test
...
Since it's just to check that it's built successful and we can send a
message back and forth, remove the diagnostic message that might come
out in a different order depending on scheduling.
2019-08-29 11:50:14 +01:00
Kamil Shakirov
a6f9fb5e18
Ignore build artifacts
2019-08-07 09:40:30 +06:00
Arnaud Bailly
f66d681893
linked libraries should be after the source file referencing them
...
http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
2019-07-31 14:13:32 +02:00
Arnaud Bailly
d600a3980c
added back missing file extension
2019-07-29 13:15:52 +02:00
Arnaud Bailly
ec402c3c4a
reference idris_net library as idris_net.so for all OSes
2019-07-29 12:46:23 +02:00
Arnaud Bailly
75459e7fca
fix execution of network test to correctly load library
2019-07-28 22:53:05 +02:00
Arnaud Bailly
f6b746e7ac
set LD_LIBRARY_PATH for network tests to run
2019-07-28 09:53:33 +02:00
Arnaud Bailly
a87639d53a
refactor code to be more compact
...
uses alternative branches for failed pattern matches in do-notation
2019-07-26 09:51:49 +02:00
Arnaud Bailly
87b754de45
fix execution of tests to actually fail if there's an error
2019-07-25 19:49:15 +02:00
Arnaud Bailly
055a5f2449
got a first basic test passing
2019-07-25 09:43:33 +02:00
Arnaud Bailly
b5cc727f3b
[wip] test basic server
2019-07-24 10:08:59 +02:00
Arnaud Bailly
dc219a07ec
provide a way to retrieve port of (server) socket bound to 0
2019-07-24 09:17:29 +02:00
Arnaud Bailly
7c1b1bc98d
got code to compile
...
* removed Cgi
* add a couple of utility functions to the C source
* converted all foreign calls to use cCall
2019-07-23 22:39:54 +02:00
Arnaud Bailly
2b11b7cc32
add test target and basic test 'harness'
...
test harness is a grand word for just a basic C main file that uses
plain <assert.h> macro to run tests
2019-07-23 09:38:28 +02:00
Arnaud Bailly
18d83420da
initial import of idris 1 network lib
2019-07-22 17:24:55 +02:00