Nim/tests/realtimeGC
Sergey Avseyev 73af427f23 Fix longgc category tests (#7095)
testC command already has "gcc" as command, second "gcc" as option
generates "file not found error", and terminates the compiler with
error code
2018-01-22 15:08:27 +01:00
..
cmain.c Fix longgc category tests (#7095) 2018-01-22 15:08:27 +01:00
main.nim.cfg Test the realtime GC, via long running process in a shared object, without linking nimrtl.dll/so. 2015-01-06 12:42:36 -06:00
nmain.nim integrated realtimegc stuff into testament 2015-04-13 22:36:35 -05:00
readme.txt Fix longgc category tests (#7095) 2018-01-22 15:08:27 +01:00
shared.nim integrated realtimegc stuff into testament 2015-04-13 22:36:35 -05:00
shared.nim.cfg integrated realtimegc stuff into testament 2015-04-13 22:36:35 -05:00

Test the realtime GC without linking nimrtl.dll/so.

Note, this is a long running test, default is 35 minutes. To change the
the run time see RUNTIME in nmain.nim and cmain.c.

You can build shared.nim, nmain.nim, and cmain.c by running make (nix systems)
or make.bat (Windows systems). They both assume GCC and that it's in your
path. Output: shared.(dll/so), cmain(.exe), nmain(.exe).

To run the test: execute either nmain or cmain in a shell window.

To build by hand:

  - build the shared object (shared.nim):

    $ nim c tests/realtimeGC/shared.nim

  - build the client executables:

    $ nim c --threads:on tests/realtimeGC/nmain.nim
    $ gcc -o tests/realtimeGC/cmain tests/realtimeGC/cmain.c -ldl