summary refs log tree commit diff stats
path: root/tests/stdlib/trepr.nim
Commit message (Expand)AuthorAgeFilesLines
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
* renamed writeln to writeLine in testspatrick dw2015-06-191-1/+1
* new tester; all tests categorizedAraq2014-01-131-0/+29
kkartik.com> 2016-05-08 23:37:07 -0700 2946' href='/akkartik/mu/commit/build_until?h=hlt&id=355db3bf04e46fa62eb73079c9461493c25759f3'>355db3bf ^
3e4658e7 ^








3e4658e7 ^
355db3bf ^
75f9f0c0 ^
355db3bf ^
3e4658e7 ^

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
27
28
29
30
31
32



                                                                              









                                                                             

      
 








                                                                                            
                                                                                     
 
                                                                                                                      
 

                                                                               
#!/bin/bash
# Load all files sorting before the given argument.
# You can pass in a prefix, but files matching the prefix *won't* be included.

# We'll avoid using cleave/ here and use the old flow for building everything
# every single time:
#
#   layers -> mu.cc -> mu_bin
#           |        |
#         tangle    g++
#
# This has the nice side-effect of acting like an earlier/simpler 'layer' for
# the build system.

set -e
set -v

( cd enumerate && make; )
( cd tangle && make; )

# build mu_bin
./tangle/tangle $(./enumerate/enumerate --until ${1:-zzz} |grep -v '.mu$') > mu.cc

( cd termbox && make; )

grep -h "^[^[:space:]#].*) {$" mu.cc |grep -v ":.*(" |perl -pwe 's/ \{.*/;/' > function_list
grep -h "^\s*void test_" mu.cc |perl -pwe 's/^\s*void (.*)\(\) \{.*/$1,/' > test_list

eval ${CXX:-c++} ${CXXFLAGS:-"-g -O3"} -Wall -Wextra -ftrapv -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu_bin

# build core.mu
cat /dev/null $(./enumerate/enumerate --until ${1:-zzz} |grep '.mu$') > core.mu