about summary refs log tree commit diff stats
path: root/html/020run.cc.html
Commit message (Expand)AuthorAgeFilesLines
* 3927Kartik K. Agaram2017-06-191-291/+292
* 3900Kartik K. Agaram2017-06-021-17/+17
* 3897 - various updates to documentationKartik K. Agaram2017-05-291-17/+17
* 3895Kartik K. Agaram2017-05-291-395/+430
* 3877Kartik K. Agaram2017-05-261-3/+3
* 3872Kartik K. Agaram2017-05-201-260/+261
* 3845Kartik K. Agaram2017-05-061-3/+3
* 3823Kartik K. Agaram2017-04-141-336/+337
* 3820Kartik K. Agaram2017-04-131-369/+373
* 3811Kartik K. Agaram2017-04-041-1/+1
* 3764 - better colors for cross-linksKartik K. Agaram2017-03-081-4/+5
* 3761Kartik K. Agaram2017-03-071-89/+90
* 3758Kartik K. Agaram2017-03-061-204/+205
* 3756 - start of some improvements to the trace browserKartik K. Agaram2017-03-051-1/+1
* 3750Kartik K. Agaram2017-03-021-19/+19
* 3749Kartik K. Agaram2017-03-021-19/+19
* 3746Kartik K. Agaram2017-02-071-1/+1
* 3716Kartik K. Agaram2016-12-261-0/+2
* 3713 - cross-link calls with definitions in htmlKartik K. Agaram2016-12-261-57/+57
* 3710Kartik K. Agaram2016-12-261-443/+443
* 3709 - line numbers in htmlKartik K. Agaram2016-12-261-445/+469
* 3707Kartik K. Agaram2016-12-121-3/+9
* 3703Kartik K. Agaram2016-12-061-0/+1
* 3682Kartik K. Agaram2016-11-221-3/+5
* 3679Kartik K. Agaram2016-11-171-2/+2
* 3667Kartik K. Agaram2016-11-111-3/+16
* 3642Kartik K. Agaram2016-11-061-3/+3
* 3604Kartik K. Agaram2016-10-271-0/+3
* 3561Kartik K. Agaram2016-10-221-4/+4
* 3558Kartik K. Agaram2016-10-221-1/+1
* 3544Kartik K. Agaram2016-10-221-1/+1
* 3543Kartik K. Agaram2016-10-221-1/+1
* 3524Kartik K. Agaram2016-10-201-9/+9
* 3456Kartik K. Agaram2016-10-061-1/+6
* 3431Kartik K. Agaram2016-09-301-17/+18
* 3395Kartik K. Agaram2016-09-171-11/+11
* 3371Kartik K. Agaram2016-09-161-0/+4
* 3355Kartik K. Agaram2016-09-151-4/+7
* 3315Kartik K. Agaram2016-09-101-12/+14
* 3266Kartik K. Agaram2016-08-271-4/+5
* 3227Kartik K. Agaram2016-08-181-1/+4
* 3219Kartik K. Agaram2016-08-171-5/+8
* 3174Kartik K. Agaram2016-08-121-2/+11
* 3158Kartik K. Agaram2016-07-271-2/+2
* 3117Kartik K. Agaram2016-07-201-1/+1
* 3102Kartik K. Agaram2016-07-051-9/+11
* 2996Kartik K. Agaram2016-05-211-11/+13
* 2866Kartik K. Agaram2016-04-251-2/+2
* 2812Kartik K. Agaram2016-03-271-62/+75
* 2745Kartik K. Agaram2016-03-091-1/+1
935308f7d05418fc45e2'>^
3cc643be ^





61c021fd ^
3cc643be ^
61c021fd ^
3cc643be ^



445bc53e ^

61c021fd ^
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
           

                                                                            
 










                                                
 

                      
         



                         
                           

               
                                     
                                         
               
                                                                                                                         
                              
                           
                                                                                          


                                                                              

    
                                     

       
 
                                 

                       
                                       

  

                               
    





                                       
  
                            
    





                                       
  
                            
    





                                       
  
                            
    



                                               

                                                
  
#!/bin/bash
# Repeatedly stop building until successive layers, and run all tests built,
# while checking for undefined behavior using both UBSan and Valgrind.
#
# Requires Linux.
#
# Usage:
#   Test all layers:
#     test_layers
#   Test non-app layers after x:
#     test_layers x
#   Test layers after x and until y (inclusive):
#     test_layers x y
#   Test all layers for a specific app:
#     test_layers app

if [[ $1 == one-off ]]
then
  ./build
  ./mu_bin test || exit 1
  exit 0
fi

# Core layers atop Valgrind
for f in [0-9]*
do
  if [[ $f < $1 ]]; then continue; fi
  if [[ $2 && $f > $2 ]]; then exit 0; fi
  echo "=== $f"
  rm -rf .build mu.cc mu_bin core.mu  # force full rebuild for top-level, but not subsidiary tools like tangle and cleave
  ./build --until $f || exit 1
  # valgrind requires Linux
  valgrind --leak-check=yes --num-callers=40 -q --error-exitcode=1 ./mu_bin test || exit 1
  # run on Mac OS without valgrind, and with a hacky fix for the coarser clock
#?   ./mu_bin test || exit 1
#?   sleep 1
done

# Layers for Mu apps without Valgrind
./clean
./build

if [[ ! $1 || $1 == chessboard ]]
then
  echo "=== chessboard"
  ./mu_bin test chessboard.mu || exit 1
fi

# slices of edit/ for Travis CI
if [[ ! $1 || $1 == edit ]]
then
  echo "=== edit: until 001"
  ./mu_bin test edit/001* || exit 1
  echo "=== edit: until 002"
  ./mu_bin test edit/00[1-2]* || exit 1
  echo "=== edit: until 003"
  ./mu_bin test edit/00[1-3]* || exit 1
fi
if [[ ! $1 || $1 == edit2 ]]
then
  echo "=== edit: until 004"
  ./mu_bin test edit/00[1-4]* || exit 1
  echo "=== edit: until 005"
  ./mu_bin test edit/00[1-5]* || exit 1
  echo "=== edit: until 006"
  ./mu_bin test edit/00[1-6]* || exit 1
fi
if [[ ! $1 || $1 == edit3 ]]
then
  echo "=== edit: until 007"
  ./mu_bin test edit/00[1-7]* || exit 1
  echo "=== edit: until 008"
  ./mu_bin test edit/00[1-8]* || exit 1
  echo "=== edit: until 009"
  ./mu_bin test edit/00* || exit 1
fi
if [[ ! $1 || $1 == edit4 ]]
then
  echo "=== edit: until 010"
  ./mu_bin test edit/00* edit/010* || exit 1
  echo "=== edit: until 011"
  ./mu_bin test edit/00* edit/01[01]* || exit 1
  echo "=== edit: until 012"
  ./mu_bin test edit/00* edit/01[0-2]* || exit 1
fi