File: text.sh

package info (click to toggle)
ctioga2 0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 1,524 kB
  • sloc: ruby: 17,592; sh: 720; lisp: 88; makefile: 27
file content (28 lines) | stat: -rwxr-xr-x 644 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# text.sh: test for the text backend
# Copyright 2009 by Vincent Fourmond 
# This file is provided as an example of how to use ctioga2. As such,
# you can do whatever you wish with this file.

# Include the definition of ct
. ./test-include.sh


t1=tmp-1.dat
echo "Writing temporary data to $t1"
echo "1 2" > $t1
echo "2 5" >> $t1
echo "bidule machin" >> $t1
echo "3 8" >> $t1
echo "4 3" >> $t1

$ct -t "All 4 dots should be joined by lines" \
    --text --margin 0.03 --marker auto $t1

$ct -t "Dots should be joined 2 by 2" \
    --text --margin 0.03 --marker auto \
    $t1 /split-on-nan true



# echo "Removing temporary files"
# rm -f $t1