about summary refs log tree commit diff stats
path: root/subx/003trace.cc
Commit message (Expand)AuthorAgeFilesLines
* 5089Kartik Agaram2019-04-131-4/+4
* Add support for escape sequences in string literals fixed traces so they can ...nc2019-04-131-4/+20
* 5001 - drop the :(scenario) DSLKartik Agaram2019-03-121-24/+22
* 4994Kartik Agaram2019-03-031-14/+36
* 4992Kartik Agaram2019-02-271-0/+3
* 4987 - support `browse_trace` tool in SubXKartik Agaram2019-02-251-179/+250
* 4857Kartik Agaram2018-12-061-26/+2
* 4656Kartik Agaram2018-10-021-2/+1
* 4515Kartik K. Agaram2018-09-241-1/+9
* 4573Kartik Agaram2018-09-211-1/+1
* 4517Kartik Agaram2018-08-131-0/+1
* 4507Kartik Agaram2018-08-121-0/+4
* 4495 - nail down a few more error statesKartik Agaram2018-08-081-0/+1
* 4490Kartik Agaram2018-08-051-14/+0
* 4489Kartik Agaram2018-08-051-0/+3
* 4488Kartik Agaram2018-08-051-2/+1
* 4487Kartik Agaram2018-08-051-1/+4
* 4486Kartik Agaram2018-08-051-9/+9
* 4484 - warn when programming in raw hexKartik Agaram2018-08-041-1/+1
* 4477Kartik Agaram2018-08-041-1/+3
* 4427 - support for '--trace' argvKartik Agaram2018-07-261-11/+34
* 4413Kartik Agaram2018-07-251-1/+1
* 4411Kartik Agaram2018-07-251-1/+1
* 4381Kartik Agaram2018-07-201-2/+0
* 4033Kartik K. Agaram2017-10-121-1/+0
* 4011 - start of sub-x86 VMKartik K. Agaram2017-10-091-1/+1
* 3930 - experimental bytecode interpreterKartik K. Agaram2017-06-191-0/+399
lines'>
                  
                                                                               
                                                                      

                                                                              


                       
                                                                                 
                                                              

                                   
    
                                  
    


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

./debug_translate init.linux $(echo $FILES) /tmp/run_one_test.subx
ONLY_CPP=1 CFLAGS=$CFLAGS ./subx --debug --trace run a.elf