Timothee Cour
b8f761b7e2
even lighter version of #17938 : fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511 , #17510 , #14246 (without realModule) ( #18362 )
...
* {.used: symbol}
* add tests
* fix tests with --import
* --import works without giving spurious unused warnings
* new warning warnDuplicateModuleImport for `import foo; import foo`
* fix test, add resolveModuleAlias, use proper line info for module aliases
* fix spurious warnings
* fix deprecation msg for deprecated modules even with `import foo as bar`
* disable a test for i386 pending sorting XDeclaredButNotUsed errors
* UnusedImport now works with re-exported symbols
* fix typo [skip ci]
* ic support
* add genPNode to allow writing PNode-based compiler code similarly to `genAst`
* fix DuplicateModuleImport warning
* adjust test
* fixup
* fixup
* fixup
* fix after rebase
* fix for IC
* keep the proc inline, move the const out
* [skip ci] fix changelog
* experiment: remove calls to resolveModuleAlias
* followup
* fixup
* fix tests/modules/tselfimport.nim
* workaround tests/deprecated/tmodule1.nim
* fix properly
* simplify
2021-06-26 15:21:46 +02:00
Antonis Geralis
eb0b323f45
Revert "disable pkg manu ( #18292 )" ( #18307 )
...
This reverts commit fc76565574 .
2021-06-20 20:51:13 +08:00
Timothee Cour
ad5063aed1
testutils.assertAll: show correct location on assert failure ( #18299 )
2021-06-19 14:41:43 -07:00
Timothee Cour
fc76565574
disable pkg manu ( #18292 )
2021-06-17 16:38:15 -07:00
Timothee Cour
49e945ed08
increase backoffDuration to avoid timeouts ( #18281 )
2021-06-16 23:07:40 -07:00
Timothee Cour
e1e8af535e
merge BuildMode into SuccessX, remove code duplication w drnim, add useful info to successx, add gc to compilesettings ( #18252 )
...
* merge BuildMode into SuccessX, add more info
* refactor duplicated with drnim
* fixup
* address comment
2021-06-14 08:51:40 +02:00
Miran
57609902c4
use more meaningful name than "workaround14447" ( #18237 )
2021-06-11 10:07:23 +02:00
Timothee Cour
a36efb59b5
fix #16256 : nimout: <empty> should give error (vacuously true); improve a few tests ( #18089 )
...
* fix #16256 : nimout: <empty> should give error (vacuously true); improve some tests
* renamed: tests/stdlib/t9710.nim -> tests/misc/t9710.nim
* improve tests
* fix non-DRY tests
* improve $nim_prs_D/tests/stdlib/t9091.nim
* renamed: tests/stdlib/t9091.nim -> tests/misc/t9091.nim
* fixup
* address comment: doAssert => result.parseErrors
2021-05-31 13:39:19 +02:00
Timothee Cour
1e0165186b
testament: remove deadcode related to realtimeGC, testC, callCCompiler ( #18087 )
2021-05-26 11:49:01 -07:00
Timothee Cour
3b1aabdcff
change --hint[X] => --hint:X in nim repo (avoids shell quoting issues) ( #18085 )
2021-05-26 09:51:48 +02:00
Timothee Cour
0b2bbcaa23
fix #18077 testament now parses cmd properly ( #18086 )
2021-05-26 09:46:53 +02:00
Timothee Cour
b59dc3b255
remove some custom logic in testament around flags, testExec ( #18090 )
...
* remove some custom logic in testament around flags, testExec
* remove testExec, custom logic around flags from testament
* fixup
2021-05-26 09:41:50 +02:00
Timothee Cour
1421a3bf26
pkg/pixie: use latest ( #18069 )
2021-05-23 12:28:26 -07:00
Andreas Rumpf
558644725d
fixes #17943 ( #18045 )
...
* fixes #17943
* IC: test 'nim check --ic:on' for the full Nim compiler
* Update testament/testament.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-05-19 16:00:14 +02:00
Timothee Cour
31143c68fc
disable pkg/fidget refs https://github.com/treeform/fidget/issues/155 ( #18043 )
2021-05-18 10:48:13 -07:00
Clyybber
fac5bae7b7
Fix running testament c nimble-packages without batch arg ( #18023 )
...
* Fix running testament c nimble-packages without batch arg
* Fix
2021-05-17 13:48:10 +02:00
Timothee Cour
45490497e3
fix #17467 1st call to rand is now non-skewed; allow seed == 0 ( #17468 )
...
* fix #17467 1st call to rand is now non-skewed; allow passing 0 as seed
* changelog + fallback
* document behavior for seed == 0
* address comments
* _
* fix tests, disable kdtree
* re-enable kdtree with -d:nimLegacyRandomInitRand
2021-05-11 11:04:59 +02:00
Timothee Cour
f68f28d157
make testament isSuccess more robust and allow tests with --hints:off to succeed ( #17968 )
...
* fix testament isSuccess
* show givenSpec in addResult
* simplify tstatictypes.nim
2021-05-11 06:54:52 +02:00
Timothee Cour
69710e4548
fix #17960 : honor matrix also for action: compile, action: reject ( #17980 )
...
* fix #17960 : honor `matrix` for all action
2021-05-09 09:50:08 +02:00
Timothee Cour
4e0f38fbb1
testament :show duration also for failed tests; improve tshould_not_work; mitigate #17946 tchannels timeouts ( #17947 )
...
* refs #17946 ; refactor testament test summary, show test duration for failures; increase timeout tchannels
* revert workarounds from https://github.com/nim-lang/Nim/pull/16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines
* add test
* workaround for yet another testament bug
2021-05-08 17:13:47 +02:00
Timothee Cour
d4850b524f
fix tsortoutput (it was failing for the wrong reasons, irrespective of sortoutput ( #17969 )
2021-05-07 20:07:54 -07:00
Timothee Cour
fb677bf5c9
fix #17952 : fix both false positives and false negatives for reInvalidSpec ( #17956 )
...
* fix #17952 : fix both false positives and false negatives for reInvalidSpec
* handle megatest properly
* fix for tests/stdlib/tbase64.nim
2021-05-08 00:22:21 +02:00
Timothee Cour
15d9566952
re-enable nimquery ( #17936 )
2021-05-04 12:20:05 -07:00
Timothee Cour
20248a68fd
gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten ( #17892 )
...
* gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten
* refactor with createTempDir
* cleanup
* refacotr
* PRTEMP fake test spec changes to show effect of diffStrings
* add runnableExamples for experimental/diff + cross-reference with gitutils
* Revert "PRTEMP fake test spec changes to show effect of diffStrings"
This reverts commit 57dc8d642d .
2021-04-30 11:00:33 +02:00
c-blake
601c050fcb
Implement https://forum.nim-lang.org/t/7848#50018 ( #17874 )
...
* Implement https://forum.nim-lang.org/t/7848#50018 with just the same
`SuccessX` hint category, build mode on a separate, final line, and
no change to how the mode is spelled for -d:release/-d:danger.
* Change to add a new BuildMode hint category and keep testament in sync
as per comment.
* Add "--hint:buildmode:off" to `defaultHintsOff`.
* Remove as requested.
* As requested for tests clean up.
* Address code review.
* Address code review.
* Mirror db45642311
2021-04-29 08:55:43 +02:00
Timothee Cour
a236002e54
testament: add nimoutFull: bool spec ( #17867 )
...
* testament: add `nimoutFull: bool` spec
* PRTEMP
* works
* cleanup
* add test for #12741
* PRTEMP failing test
* remove unrelated changes
* changelog
2021-04-27 11:11:28 +02:00
Timothee Cour
01267292d8
disable telebot, refs https://github.com/ba0f3/telebot.nim/issues/59 ( #17860 )
2021-04-26 11:17:51 -07:00
flywind
9e6f2d7d18
bring back jstin after forking a new one ( #17844 )
...
ref https://github.com/nim-lang/Nim/pull/17765#issuecomment-822019094
2021-04-25 10:16:20 -07:00
Timothee Cour
b667e288e2
move travis, appveyor, ci.yml.disabled to unmaintained/ ( #17828 )
...
* move travis, appveyor, ci.yml.disabled to unmaintained
* update some mentions of travis, appevyor
* fix test
2021-04-24 07:54:31 +02:00
Timothee Cour
2abc936d51
typeof(voidStmt) now works (#17807 )
...
* `typeof(voidStmt)` now works
* remove typeOrVoid
* add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193
* fixup
* changelog [skip ci]
* fixup
2021-04-23 14:36:38 +02:00
Timothee Cour
e4a3feeb92
add --processing:dots|filenames|off to customize hintProcessing ( #17817 )
2021-04-23 08:07:22 +02:00
Andreas Rumpf
0b116310bf
unit separator ( #17730 )
...
* use the ASCII Unit Separator so that error messages can be handled precisely by the tooling
* updated testament
2021-04-20 16:30:17 +02:00
Timothee Cour
68e7ed9c57
important_packages: allowed_failures batch ( #17757 )
...
* important_packages: reserve batch 0 for allowed failures
* custom batch name: allowed_failures
2021-04-20 09:02:35 +02:00
Timothee Cour
ad67bcf379
fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice ( #16714 )
2021-04-19 19:02:52 -07:00
Andreas Rumpf
3b80f0dc8e
IC navigator: added support for include files ( #17784 )
...
* ic fixed navigator crash when track wrong/missed
Also fixed an issue with getNimcacheDir not observing the outDir.
* closer, but not sure how to test[skip ci][ci skip]
* IC navigator: added support for include files
* update
* make posix happy via expandFilename
* update
Co-authored-by: Saem Ghani <saemghani+github@gmail.com >
2021-04-19 22:37:09 +02:00
flywind
bae7b5b779
fix #17732(forward args... to megatest) ( #17780 )
2021-04-19 11:48:26 +02:00
Timothee Cour
0a10af5a2c
privateAccess now works with ref | ptr ( #17760 )
2021-04-19 00:15:58 +02:00
flywind
ca3fe63bab
remove jstin from important packages ( #17765 )
...
Ref https://github.com/nim-lang/Nim/pull/17759
https://github.com/LemonBoy/jstin/blob/master/src/jstin.nim is already archived and cannot pass CI anymore.
2021-04-18 15:30:30 +02:00
Timothee Cour
d19e4310dc
std/hashes: hash(ref|ptr|pointer) + other improvements ( #17731 )
2021-04-16 14:21:26 +02:00
Andreas Rumpf
606288974f
ic navigator tests ( #17735 )
...
* IC navigator: first basic test
2021-04-16 12:20:43 +02:00
Timothee Cour
8161b02897
import foo {.all.} reboot (#17706 )
2021-04-16 09:16:39 +02:00
Timothee Cour
25b4a0ab0a
testament --verbose: prints commands; gitignore ic artifacts ( #17716 )
2021-04-14 09:44:07 +02:00
Timothee Cour
fe77c3c72f
megatest: allow duplicate file names, show compilation progress ( #17713 )
...
* megatest: allow duplicate file names
* megatest: show compilation progress
2021-04-13 23:16:19 +02:00
Andreas Rumpf
4780b08b9d
IC: integrity checking ( #17695 )
...
* IC: integrity checking: the plumbing code
* progress
* progress + bugfix (yes, the code already found a bug)
* implemented integrity checking
2021-04-11 17:37:32 +02:00
Timothee Cour
ceadf54d76
iterable[T] ( #17196 )
...
* fix failing test toSeq in manual which now works
* changelog
* reject proc fn(a: iterable)
* add iterable to spec
* remove MCS/UFCS limitation that now works
2021-04-11 14:25:41 +02:00
flywind
70a30317f7
fix #16693 : testament spec nimout too lax ( #16698 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-04-04 13:47:28 -07:00
flywind
66890c3ad4
enable some packages ( #17629 )
2021-04-03 10:31:33 -07:00
Timothee Cour
270964c487
implement RFCs/294 ; disallow enum <=> enum conversion ( #16351 )
...
* fix https://github.com/nim-lang/RFCs/issues/294 ; disallow enum <=> enum conversion
* fix the runnableExamples that was the instigator of this RFC
* legacy -d:nimLegacyConvEnumEnum
* use -d:nimLegacyConvEnumEnum in important_package nimgame2
* add test for enum cast
* improve changelog
* add changelog: Changes affecting backward compatibility
* cleanup changelog
* fix changelog
2021-04-03 07:15:21 +02:00
Timothee Cour
72988509ba
add getPort to resolve Port(0) ( #17559 )
...
* add getPort to resolve Port(0)
* fixup
* use getPort in examples + tests
* address comments: do not re-export Port
2021-03-30 20:14:39 +02:00
Timothee Cour
6a355a4db0
nim: unbreak CI; testament: add allowedFailure logic for tests that may fail but should still run ( #17513 )
2021-03-28 00:29:06 -07:00