summary refs log tree commit diff stats
path: root/tests/usingstmt
Commit message (Expand)AuthorAgeFilesLines
* Clean up macros (#14959)Juan Carlos2020-07-141-1/+1
* Testament: refactoring; makes the test joiner greenAraq2018-12-111-0/+2
* require errormsg to be specified before file.Arne Döring2018-12-111-1/+0
* Remove expr/stmt (#5857)Arne Döring2017-07-251-3/+1
* fixes #4177Andreas Rumpf2016-05-281-0/+15
* Rename PNimrodNode to NimNodedef2015-03-171-11/+11
* further adaptationsAraq2014-08-291-1/+1
* new tester; all tests categorizedAraq2014-01-131-0/+89
6eee6615c'>fd6640fcd ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26




                                                        
                                               




                                         
                                       












                                                                          
        
import std/[strutils, os, osproc, parseutils, strformat]


proc main() =
  var msg = ""
  const cmd = "./koch boot --mm:orc -d:release"

  let (output, exitCode) = execCmdEx(cmd)

  doAssert exitCode == 0, output

  let start = rfind(output, "Hint: mm")
  doAssert parseUntil(output, msg, "; proj", start) > 0, output

  let (commitHash, _) = execCmdEx("""git log --format="%H" -n 1""")

  let welcomeMessage = fmt"""Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from {commitHash}

{msg}
"""
  createDir "ci/nimcache"
  writeFile "ci/nimcache/results.txt", welcomeMessage

when isMainModule:
  main()