diff options
Diffstat (limited to 'tests/lexers/console')
| -rw-r--r-- | tests/lexers/console/example.txt | 84 | ||||
| -rw-r--r-- | tests/lexers/console/example2.txt | 281 |
2 files changed, 365 insertions, 0 deletions
diff --git a/tests/lexers/console/example.txt b/tests/lexers/console/example.txt new file mode 100644 index 00000000..4ae10286 --- /dev/null +++ b/tests/lexers/console/example.txt @@ -0,0 +1,84 @@ +---input--- +user@host:~/path$ ls -a +. .. a b c +user@host:~/path$ diff -u a b +--- a 2008-07-26 17:10:07.000000000 -0700 ++++ b 2008-07-26 17:10:10.000000000 -0700 +@@ -1,3 +1,3 @@ + a +-b ++x + c +user@host:~/path$ echo \ +> a +a +user@host:~/path$ su +root@host:~# +sh-3.1$ # on hardy +sh$ # on etch +(virtualenv-name)user@host:~$ ls -a + + +---tokens--- +'user@host:~/path$ ' Generic.Prompt +'ls' Text +' ' Text +'-a' Text +'\n' Text + +'. .. a b c\n' Generic.Output + +'user@host:~/path$ ' Generic.Prompt +'diff' Text +' ' Text +'-u' Text +' ' Text +'a' Text +' ' Text +'b' Text +'\n' Text + +'--- a 2008-07-26 17:10:07.000000000 -0700\n' Generic.Output + +'+++ b 2008-07-26 17:10:10.000000000 -0700\n' Generic.Output + +'@@ -1,3 +1,3 @@\n' Generic.Output + +' a\n' Generic.Output + +'-b\n' Generic.Output + +'+x\n' Generic.Output + +' c\n' Generic.Output + +'user@host:~/path$ ' Generic.Prompt +'echo' Name.Builtin +' ' Text +'\\\n' Literal.String.Escape + +'>' Text +' ' Text +'a' Text +'\n' Text + +'a\n' Generic.Output + +'user@host:~/path$ ' Generic.Prompt +'su' Text +'\n' Text + +'root@host:~#\n' Generic.Prompt + +'sh-3.1$ ' Generic.Prompt +'# on hardy\n' Comment.Single + +'sh$ ' Generic.Prompt +'# on etch\n' Comment.Single + +'(virtualenv-name)' Generic.Prompt.VirtualEnv +'user@host:~$ ' Generic.Prompt +'ls' Text +' ' Text +'-a' Text +'\n' Text diff --git a/tests/lexers/console/example2.txt b/tests/lexers/console/example2.txt new file mode 100644 index 00000000..7638861a --- /dev/null +++ b/tests/lexers/console/example2.txt @@ -0,0 +1,281 @@ +---input--- +[user@linuxbox imx-bootlets-src-10.05.02]$ make CROSS_COMPILE=arm-none-eabi- clean +rm -rf *.sb +rm -f sd_mmc_bootstream.raw +rm -f linux_prep/board/*.o +... +Files: +rm -f power_prep.o eabi.o +Build output: +make[1]: Leaving directory `/home/...' +[user@linuxbox imx-bootlets-src-10.05.02]$ make CROSS_COMPILE=arm-none-eabi- +make[1]: Entering directory `/home/...' +... +#@echo "generating U-Boot boot stream image" +#elftosb2 -z -c ./uboot_prebuilt.db -o imx23_uboot.sb +echo "generating kernel bootstream file sd_mmc_bootstream.raw" +generating kernel bootstream file sd_mmc_bootstream.raw +#Please use cfimager to burn xxx_linux.sb. The below way will no +#work at imx28 platform. +> test +$ test +rm -f sd_mmc_bootstream.raw +[user@linuxbox imx-bootlets-src-10.05.02]$ +pi@raspberrypi ~ $ sudo sh -c "echo 17 > /sys/class/gpio/export" +pi@raspberrypi ~ $ sudo sh -c "echo out > /sys/class/gpio/gpio17/direction" +pi@raspberrypi ~ $ sudo sh -c "echo 1 > /sys/class/gpio/gpio17/value" +pi@raspberrypi ~ $ sudo sh -c "echo 0 > /sys/class/gpio/gpio17/value" +pi@raspberrypi ~ $ +[user@linuxbox ~]$ # copy other stuff to the SD card +root@imx233-olinuxino-micro:~# lsmod + Not tainted +[user@linuxbox ~]$ tail -n 2 /mnt/rpi/etc/inittab +#Spawn a getty on Raspberry Pi serial line +T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100 +pi@raspberrypi:~/Adafruit-WebIDE$ mkdir tmp +pi@raspberrypi:~/Adafruit-WebIDE$ npm config set tmp tmp +pi@raspberrypi:~/Adafruit-WebIDE$ npm install +pi@raspberrypi ~/Adafruit-WebIDE $ ifconfig eth0 +eth0 Link encap:Ethernet HWaddr b5:33:ff:33:ee:aq + inet addr:10.42.0.60 Bcast:10.42.0.255 Mask:255.255.255.0 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:21867 errors:0 dropped:0 overruns:0 frame:0 + TX packets:8684 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:27338495 (26.0 MiB) TX bytes:1268356 (1.2 MiB) + + +---tokens--- +'[user@linuxbox imx-bootlets-src-10.05.02]$ ' Generic.Prompt +'make' Text +' ' Text +'CROSS_COMPILE' Name.Variable +'=' Operator +'arm-none-eabi-' Text +' ' Text +'clean' Text +'\n' Text + +'rm -rf *.sb\n' Generic.Output + +'rm -f sd_mmc_bootstream.raw\n' Generic.Output + +'rm -f linux_prep/board/*.o\n' Generic.Output + +'...\n' Generic.Output + +'Files:\n' Generic.Output + +'rm -f power_prep.o eabi.o\n' Generic.Output + +'Build output:\n' Generic.Output + +"make[1]: Leaving directory `/home/...'\n" Generic.Output + +'[user@linuxbox imx-bootlets-src-10.05.02]$ ' Generic.Prompt +'make' Text +' ' Text +'CROSS_COMPILE' Name.Variable +'=' Operator +'arm-none-eabi-' Text +'\n' Text + +"make[1]: Entering directory `/home/...'\n" Generic.Output + +'...\n' Generic.Output + +'#' Generic.Prompt +'@echo' Text +' ' Text +'"generating U-Boot boot stream image"' Literal.String.Double +'\n' Text + +'#' Generic.Prompt +'elftosb2' Text +' ' Text +'-z' Text +' ' Text +'-c' Text +' ' Text +'./uboot_prebuilt.db' Text +' ' Text +'-o' Text +' ' Text +'imx23_uboot.sb' Text +'\n' Text + +'echo "generating kernel bootstream file sd_mmc_bootstream.raw"\n' Generic.Output + +'generating kernel bootstream file sd_mmc_bootstream.raw\n' Generic.Output + +'#' Generic.Prompt +'Please' Text +' ' Text +'use' Text +' ' Text +'cfimager' Text +' ' Text +'to' Text +' ' Text +'burn' Text +' ' Text +'xxx_linux.sb.' Text +' ' Text +'The' Text +' ' Text +'below' Text +' ' Text +'way' Text +' ' Text +'will' Text +' ' Text +'no' Text +'\n' Text + +'#' Generic.Prompt +'work' Text +' ' Text +'at' Text +' ' Text +'imx28' Text +' ' Text +'platform.' Text +'\n' Text + +'>' Generic.Prompt +' ' Text +'test' Name.Builtin +'\n' Text + +'$ ' Generic.Prompt +'test' Name.Builtin +'\n' Text + +'rm -f sd_mmc_bootstream.raw\n' Generic.Output + +'[user@linuxbox imx-bootlets-src-10.05.02]$\n' Generic.Prompt + +'pi@raspberrypi ~ $ ' Generic.Prompt +'sudo' Text +' ' Text +'sh' Text +' ' Text +'-c' Text +' ' Text +'"echo 17 > /sys/class/gpio/export"' Literal.String.Double +'\n' Text + +'pi@raspberrypi ~ $ ' Generic.Prompt +'sudo' Text +' ' Text +'sh' Text +' ' Text +'-c' Text +' ' Text +'"echo out > /sys/class/gpio/gpio17/direction"' Literal.String.Double +'\n' Text + +'pi@raspberrypi ~ $ ' Generic.Prompt +'sudo' Text +' ' Text +'sh' Text +' ' Text +'-c' Text +' ' Text +'"echo 1 > /sys/class/gpio/gpio17/value"' Literal.String.Double +'\n' Text + +'pi@raspberrypi ~ $ ' Generic.Prompt +'sudo' Text +' ' Text +'sh' Text +' ' Text +'-c' Text +' ' Text +'"echo 0 > /sys/class/gpio/gpio17/value"' Literal.String.Double +'\n' Text + +'pi@raspberrypi ~ $\n' Generic.Prompt + +'[user@linuxbox ~]$ ' Generic.Prompt +'# copy other stuff to the SD card\n' Comment.Single + +'root@imx233-olinuxino-micro:~# ' Generic.Prompt +'lsmod' Text +'\n' Text + +' Not tainted\n' Generic.Output + +'[user@linuxbox ~]$ ' Generic.Prompt +'tail' Text +' ' Text +'-n' Text +' ' Text +'2' Literal.Number +' ' Text +'/mnt/rpi/etc/inittab' Text +'\n' Text + +'#' Generic.Prompt +'Spawn' Text +' ' Text +'a' Text +' ' Text +'getty' Text +' ' Text +'on' Text +' ' Text +'Raspberry' Text +' ' Text +'Pi' Text +' ' Text +'serial' Text +' ' Text +'line' Text +'\n' Text + +'T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100\n' Generic.Output + +'pi@raspberrypi:~/Adafruit-WebIDE$ ' Generic.Prompt +'mkdir' Text +' ' Text +'tmp' Text +'\n' Text + +'pi@raspberrypi:~/Adafruit-WebIDE$ ' Generic.Prompt +'npm' Text +' ' Text +'config' Text +' ' Text +'set' Name.Builtin +' ' Text +'tmp' Text +' ' Text +'tmp' Text +'\n' Text + +'pi@raspberrypi:~/Adafruit-WebIDE$ ' Generic.Prompt +'npm' Text +' ' Text +'install' Text +'\n' Text + +'pi@raspberrypi ~/Adafruit-WebIDE $ ' Generic.Prompt +'ifconfig' Text +' ' Text +'eth0' Text +'\n' Text + +'eth0 Link encap:Ethernet HWaddr b5:33:ff:33:ee:aq\n' Generic.Output + +' inet addr:10.42.0.60 Bcast:10.42.0.255 Mask:255.255.255.0\n' Generic.Output + +' UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\n' Generic.Output + +' RX packets:21867 errors:0 dropped:0 overruns:0 frame:0\n' Generic.Output + +' TX packets:8684 errors:0 dropped:0 overruns:0 carrier:0\n' Generic.Output + +' collisions:0 txqueuelen:1000\n' Generic.Output + +' RX bytes:27338495 (26.0 MiB) TX bytes:1268356 (1.2 MiB)\n' Generic.Output |
