I've assigned a number to each test (sequentially from 101 to 158) and
added the TEST variable. In this way you can select a single test to
be executed. For example:

# make PLATFORM=macosx PREFIX=/tmp/chicken check TEST=102
make -f ./Makefile.macosx CONFIG= check
cd tests; sh runtests.sh
======================================== [102] compiler inlining tests  ...
../chicken inlining-tests.scm -output-file a.c -verbose -include-path
.. -optimize-level 3
gcc a.c -o a.o -c  -no-cpp-precomp -fno-strict-aliasing -fwrapv
-fno-common -DHAVE_CHICKEN_CONFIG_H -m64 -DC_ENABLE_PTABLES -Os
-fomit-frame-pointer -I.. -I"/tmp/chicken/include/chicken"
rm a.c
gcc a.o -o a.out -m64 -L.. -L"/tmp/chicken/lib" -lchicken -lm
install_name_tool -change libchicken.dylib
/tmp/chicken/lib/libchicken.dylib a.out
rm a.o
======================================== done.


You can also specify a range. For example:


# make PLATFORM=macosx PREFIX=/tmp/chicken check TEST=126-127
make -f ./Makefile.macosx CONFIG= check
cd tests; sh runtests.sh
======================================== [126] syntax tests (loopy-loop) ...
(PASS) stepping
(PASS) basic in-list
(PASS) in-list with result
(PASS) in-list with collecting
(PASS) uneven length in-list's
(PASS) in-lists
(PASS) flatten (recursion test)
(PASS) in-string
(PASS) in-string with start
(PASS) in-string with start and end
(PASS) in-string with start, end and step
(PASS) in-string-reverse
(PASS) in-vector
(PASS) in-permutations
(PASS) in-permutations with length
(PASS) in-combinations
(PASS) in-hash-table
  17 tests completed in 0.703 seconds
  17 (100.00%) tests passed
  0 (0.00%) tests failed
======================================== [127] r4rstest ...
(expect mult-float-print-test to fail)
======================================== done.


More complex use cases (e.g. TEST=101,126-127) should be possible if
needed (not implemented). Just a proof-of-concept as usual. Feel free
to improve. Feel free to discard if useless.

Regards,
Michele

Attachment: 0001-numbered-tests-and-TEST-variable.patch
Description: Binary data

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to