Skip to content

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tst

Tst

This is a collection of bash, vim, and gdb scripts that help you easily write, compile, and debug lines of code without having to create new files and directories. For compiled code, it adds debuging symbols. Everything is integrated with neovim. This is NOT for testing code in compiled languages that have multiple non-standard libraries. This is just for testing simple short lines of code.

Installation

To install for the current user do

sudo make install USER=$USER

Otherwise you can change $USER to whatever user you want to use the scripts as

Uninstall

sudo make uninstall

Running

This command will open up neovim into the default template for you language

$ tst <language exention> <template>

if no template is specified then the default template will be used

You can edit /usr/local/bin/runtst to modify how your program runs. This might be a good place to check if your program is not running correctly.

Vim mappings

Command action

<leader>rt

runs the program in split terminal

<leader>rg

runs gdb in split terminal

If you do not like these command mappings you can change them in the /usr/local/share/tst/mappings.vim file.

Templates

Templates are located in /usr/local/share/tst/templates/. Just look for your language and then and then the default file. This file will be the default template when you run tst. Otherwise you can look for or make a specific template in this directory.

GDB

You can specifiy a specific gdb configuration for you language by changing /usr/local/share/tst/gdb/<language>.gdb. Where language is the language you wish to add a configuration for. If you want to change the gdb configuration for all languages then edit the /usr/local/share/tst/gdb/global.gdb file.

Supported languages

  • c

  • javascript

  • lua

  • nasm

  • perl

  • python

  • c++

  • bash

  • sh

  • sed

Dependencies

  • nasm

  • gcc

  • g++

  • Interpreter for your language

About

bash scripts for testing code that integrate with vim

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages