summary refs log tree commit diff stats
path: root/tests/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-03-05 09:58:55 +0100
committerGitHub <noreply@github.com>2021-03-05 09:58:55 +0100
commit8f1fa3e5b014c4301477f2f1872afde0640906b3 (patch)
tree4d320551a698d16849fbbd8149db3c4f34819c09 /tests/compiler
parentf8cfe330b3c23bd538ec50a674b2b578bd431d21 (diff)
downloadNim-8f1fa3e5b014c4301477f2f1872afde0640906b3.tar.gz
IC: further progress (#17150)
* IC: respect the -f switch

* IC: better rod file inspection

* progress
Diffstat (limited to 'tests/compiler')
0 files changed, 0 insertions, 0 deletions
ik.com> 2019-06-29 21:02:11 -0700 committer Kartik Agaram <vc@akkartik.com> 2019-07-01 23:09:58 -0700 .' href='/akkartik/mu/commit/subx/run_one_test.sh?h=hlt&id=eada7e30a048caffdbcd2bc992efee511ffd5e09'>eada7e30 ^
edac54a3 ^


5ac07866 ^
01b6cfe4 ^
85cc81a5 ^

ab107e18 ^
87ef8586 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
                  
                                                                               
                                                                      


                       



                                                                                 
    

                                 


                            
 
      

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

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-common.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
                                      # turn newlines into spaces
CFLAGS=$CFLAGS ./subx --debug translate $(echo $FILES) /tmp/run_one_test.subx -o /tmp/a.elf

./subx --debug --trace run /tmp/a.elf