From 567b7d5a6a7fe426355b496b22b7ec573929b2d3 Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Fri, 4 Sep 2015 23:11:11 +0200 Subject: [PATCH] tests: Trim .txt files trailing whitespace via OSX: find . -name '*.txt' -exec sed -i '' -E 's/[[:space:]]+$//' {} + --- tests/readme.txt | 26 +++++++++++------------ tests/realtimeGC/readme.txt | 42 ++++++++++++++++++------------------- tests/testdata/string.txt | 2 +- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/tests/readme.txt b/tests/readme.txt index 2cfc79f9ad..0ff9e11c68 100644 --- a/tests/readme.txt +++ b/tests/readme.txt @@ -1,13 +1,13 @@ -This directory contains the test cases. -Each test must have a filename of the form: ``t*.nim`` - -Each test can contain a spec in a ``discard """"""`` block. - -The folder ``rodfiles`` contains special tests that test incremental -compilation via symbol files. - -The folder ``dll`` contains simple DLL tests. - -The folder ``realtimeGC`` contains a test for validating that the realtime GC -can run properly without linking against the nimrtl.dll/so. It includes a C -client and platform specific build files for manual compilation. +This directory contains the test cases. +Each test must have a filename of the form: ``t*.nim`` + +Each test can contain a spec in a ``discard """"""`` block. + +The folder ``rodfiles`` contains special tests that test incremental +compilation via symbol files. + +The folder ``dll`` contains simple DLL tests. + +The folder ``realtimeGC`` contains a test for validating that the realtime GC +can run properly without linking against the nimrtl.dll/so. It includes a C +client and platform specific build files for manual compilation. diff --git a/tests/realtimeGC/readme.txt b/tests/realtimeGC/readme.txt index 035a00001a..17e18a5e5b 100644 --- a/tests/realtimeGC/readme.txt +++ b/tests/realtimeGC/readme.txt @@ -1,21 +1,21 @@ -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 main.nim and main.c. - -You can build shared.nim, main.nim, and main.c by running make (nix systems) -or maike.bat (Windows systems). They both assume GCC and that it's in your -path. Output: shared.(dll/so), camin(.exe), nmain(.exe). - -To run the test: execute either nmain or cmain in a shell window. - -To build buy hand: - - - build the shared object (shared.nim): - - $ nim c shared.nim - - - build the client executables: - - $ nim c -o:nmain main.nim - $ gcc -o cmain main.c -ldl +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 main.nim and main.c. + +You can build shared.nim, main.nim, and main.c by running make (nix systems) +or maike.bat (Windows systems). They both assume GCC and that it's in your +path. Output: shared.(dll/so), camin(.exe), nmain(.exe). + +To run the test: execute either nmain or cmain in a shell window. + +To build buy hand: + + - build the shared object (shared.nim): + + $ nim c shared.nim + + - build the client executables: + + $ nim c -o:nmain main.nim + $ gcc -o cmain main.c -ldl diff --git a/tests/testdata/string.txt b/tests/testdata/string.txt index 41bfe81b82..102374bdb1 100644 --- a/tests/testdata/string.txt +++ b/tests/testdata/string.txt @@ -1 +1 @@ -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \ No newline at end of file +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.