about summary refs log tree commit diff stats
path: root/subx/build
Commit message (Collapse)AuthorAgeFilesLines
* 4403Kartik Agaram2018-07-251-0/+2
| | | | | | Couple of improvements for the tangle/ directory: a) Start running tangle unit tests at build time again. b) Option to print out test names as they run, just like in top-level.
* 4288Kartik Agaram2018-06-281-0/+1
| | | | Give subx too the recent support for running a single test.
* 4013Kartik K. Agaram2017-10-111-3/+3
|
* 3930 - experimental bytecode interpreterKartik K. Agaram2017-06-191-0/+106
ss='oid'>fd91f7f6 ^
85cc81a5 ^

edac54a3 ^
749d455a ^
eada7e30 ^
edac54a3 ^


5ac07866 ^
01b6cfe4 ^
ab107e18 ^
0bcfe6e5 ^
d260b017 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
                  
                                                                               
                                                                      

                                                                              


                       
                                                                                 
                                                              

                                   
    
                                  
    


                            
 
      
 
                                                                       

                                            
#!/usr/bin/env zsh
# Either run the test with the given name, or rerun the most recently run test.
# Intended to be called from within Vim. Check out the vimrc.vim file.
# Unfortunately this only works with Linux at the moment. Some compiler passes
# take too long to run in emulated mode.

if [[ $2 == 'test-'* ]]
then
  TEST_NAME=$2 envsubst '$TEST_NAME' < run_one_test.subx > /tmp/run_one_test.subx
  FILES=$(ls [0-9]*.subx apps/subx-params.subx $1 |sort |uniq)
  echo $FILES > /tmp/last_run_files
elif [[ -e /tmp/last_run_files ]]
then
  FILES=$(cat /tmp/last_run_files)
else
  echo "no test found"
  exit 0  # don't open trace
fi

set -e

./translate_subx_debug init.linux $(echo $FILES) /tmp/run_one_test.subx
echo running
CFLAGS=$CFLAGS ./bootstrap --trace run a.elf