about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
...
* 6810 - tile: adaptive column widthsKartik Agaram2020-09-192-2/+8
* 6809Kartik Agaram2020-09-192-1/+118
* 6808Kartik Agaram2020-09-192-2/+2
* 6807 - tile: render intermediate stack stateKartik Agaram2020-09-198-62/+267
* 6806 - tile: place-holder for bottom of stackKartik Agaram2020-09-192-16/+25
* 6805Kartik Agaram2020-09-191-13/+13
* 6804 - tile: render all wordsKartik Agaram2020-09-192-8/+37
* 6803 - RPN: typing a single word now worksKartik Agaram2020-09-192-30/+9
* 6802 - plug a gaping hole in the Mu translatorKartik Agaram2020-09-192-0/+125
* 6801 - snapshot: RPN structured editorKartik Agaram2020-09-195-92/+583
* 6800Kartik Agaram2020-09-191-2/+2
* 6799Kartik Agaram2020-09-181-1/+1
* 6798Kartik Agaram2020-09-171-43/+7
* 6797Kartik Agaram2020-09-171-12/+10
* 6796Kartik Agaram2020-09-164-53/+195
* 6795Kartik Agaram2020-09-161-0/+0
* 6794 - cleaner interface for keyboardKartik Agaram2020-09-1637-53/+61
* 6793Kartik Agaram2020-09-168-516/+83
* 6792Kartik Agaram2020-09-164-44/+26
* 6791Kartik Agaram2020-09-162-1/+8
* 6790 experiment: explicit flushKartik Agaram2020-09-164-26/+37
* 6789 - tile: print keystrokes to screenKartik Agaram2020-09-163-0/+225
* 6788Kartik Agaram2020-09-162-0/+13
* 6787Kartik Agaram2020-09-161-2/+33
* 6786Kartik Agaram2020-09-161-5/+5
* 6785Kartik Agaram2020-09-162-2/+2
* 6784Kartik Agaram2020-09-161-2/+2
* 6783Kartik Agaram2020-09-1614-0/+49
* 6782Kartik Agaram2020-09-152-0/+15
* 6781 - new app: RPN (postfix) calculatorKartik Agaram2020-09-1523-12/+451
* 6780Kartik Agaram2020-09-141-0/+0
* 6779Kartik Agaram2020-09-142-1/+1
* 6778Kartik Agaram2020-09-143-4/+4
* 6777Kartik Agaram2020-09-145-9/+56
* 6776 - new app: a programming environmentKartik Agaram2020-09-133-0/+426
* 6775Kartik Agaram2020-09-111-0/+11
* 6774Kartik Agaram2020-09-1126-1228/+2627
* 6773 - markdown browser now seems fully testedKartik Agaram2020-09-111-0/+56
* 6772 - test for markdown headersKartik Agaram2020-09-111-4/+24
* 6771 - first passing test for the browser itselfKartik Agaram2020-09-112-21/+160
* 6770Kartik Agaram2020-09-101-70/+140
* 6769 - support for creating fake files in Mu testsKartik Agaram2020-09-105-3/+118
* 6768 - better error messages when checking screen stateKartik Agaram2020-09-101-94/+332
* 6767Kartik Agaram2020-09-101-3/+49
* 6766Kartik Agaram2020-09-101-24/+24
* 6765Kartik Agaram2020-09-101-0/+22
* 6764Kartik Agaram2020-09-101-168/+0
* 6763Kartik Agaram2020-09-101-0/+83
* 6762Kartik Agaram2020-09-101-8/+210
* 6761Kartik Agaram2020-09-081-1/+1
1'>^
3cc643be ^
61c021fd ^
3cc643be ^





61c021fd ^
3cc643be ^
61c021fd ^
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
86
87
88
           

                                                                            
 










                                                
      
 
                                    
 

                      
          



                         
                           

               
                                     
                                         
               
                                                                       
                               
                           
                                                                                          


                                                                              

    
                                     
       
        
 
                                 

                       
                                       

  

                               
    





                                       
  
                            
    





                                       
  
                            
    





                                       
  
                            
    



                                               

                                                
  
#!/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
set -e

test "$BUILD" || export BUILD=build3

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"
  ./clean top-level  # preserve 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