[Dctrl-tools-devel] [SCM] Debian control file query tools branch, master, updated. 2.19-5-g9740319

Antti-Juhani Kaijanaho ajk at debian.org
Sat Oct 22 12:20:36 UTC 2011


The following commit has been merged in the master branch:
commit f91ebc7932df8b762300fb2cf17e21f00a6264fd
Author: Antti-Juhani Kaijanaho <ajk at debian.org>
Date:   Sat Oct 22 15:19:57 2011 +0300

    Add some passing tests
    
    Signed-off-by: Antti-Juhani Kaijanaho <ajk at debian.org>

diff --git a/tests/0012.in b/tests/0012.in
new file mode 100644
index 0000000..f2ce449
--- /dev/null
+++ b/tests/0012.in
@@ -0,0 +1,5 @@
+Package: aabbaba
+
+Package: bba
+
+Package: aba
diff --git a/tests/0012.out b/tests/0012.out
new file mode 100644
index 0000000..866ccc6
--- /dev/null
+++ b/tests/0012.out
@@ -0,0 +1,4 @@
+Package: aabbaba
+
+Package: aba
+
diff --git a/tests/0011.sh b/tests/0012.sh
similarity index 70%
copy from tests/0011.sh
copy to tests/0012.sh
index 1fed9f1..1e94829 100644
--- a/tests/0011.sh
+++ b/tests/0012.sh
@@ -5,4 +5,4 @@ set -e
 LC_ALL=C
 export LC_ALL
 
-$GREP_DCTRL ''
+$GREP_DCTRL -P ab
diff --git a/tests/0013.in b/tests/0013.in
new file mode 100644
index 0000000..7561ff2
--- /dev/null
+++ b/tests/0013.in
@@ -0,0 +1,5 @@
+Package: a+b
+
+Package: aaab
+
+
diff --git a/tests/0013.out b/tests/0013.out
new file mode 100644
index 0000000..e580d09
--- /dev/null
+++ b/tests/0013.out
@@ -0,0 +1,2 @@
+Package: a+b
+
diff --git a/tests/0011.sh b/tests/0013.sh
similarity index 67%
copy from tests/0011.sh
copy to tests/0013.sh
index 1fed9f1..fe5e691 100644
--- a/tests/0011.sh
+++ b/tests/0013.sh
@@ -5,4 +5,4 @@ set -e
 LC_ALL=C
 export LC_ALL
 
-$GREP_DCTRL ''
+$GREP_DCTRL -Pr 'a+b'
\ No newline at end of file
diff --git a/tests/0014.in b/tests/0014.in
new file mode 100644
index 0000000..7561ff2
--- /dev/null
+++ b/tests/0014.in
@@ -0,0 +1,5 @@
+Package: a+b
+
+Package: aaab
+
+
diff --git a/tests/0014.out b/tests/0014.out
new file mode 100644
index 0000000..a041af6
--- /dev/null
+++ b/tests/0014.out
@@ -0,0 +1,2 @@
+Package: aaab
+
diff --git a/tests/0011.sh b/tests/0014.sh
similarity index 66%
copy from tests/0011.sh
copy to tests/0014.sh
index 1fed9f1..0636987 100644
--- a/tests/0011.sh
+++ b/tests/0014.sh
@@ -5,4 +5,4 @@ set -e
 LC_ALL=C
 export LC_ALL
 
-$GREP_DCTRL ''
+$GREP_DCTRL -Pe 'a+b'
diff --git a/tests/0015.in b/tests/0015.in
new file mode 100644
index 0000000..7116d3c
--- /dev/null
+++ b/tests/0015.in
@@ -0,0 +1,16 @@
+A: foo
+
+B: foo
+
+A: foo
+B: foo
+
+A: bar
+B: foo
+
+A: foo
+B: bar
+
+A: bar
+B: bar
+
diff --git a/tests/0015.out b/tests/0015.out
new file mode 100644
index 0000000..29abb85
--- /dev/null
+++ b/tests/0015.out
@@ -0,0 +1,13 @@
+A: foo
+
+B: foo
+
+A: foo
+B: foo
+
+A: bar
+B: foo
+
+A: foo
+B: bar
+
diff --git a/tests/0010.sh b/tests/0015.sh
similarity index 65%
copy from tests/0010.sh
copy to tests/0015.sh
index 1fed9f1..21679f6 100644
--- a/tests/0010.sh
+++ b/tests/0015.sh
@@ -5,4 +5,5 @@ set -e
 LC_ALL=C
 export LC_ALL
 
-$GREP_DCTRL ''
+$GREP_DCTRL -FA,B foo
+
diff --git a/tests/0016.in b/tests/0016.in
new file mode 100644
index 0000000..23340bf
--- /dev/null
+++ b/tests/0016.in
@@ -0,0 +1,6 @@
+Source: foo
+
+Source: bar
+Package: foo
+
+Package: foo
diff --git a/tests/0016.out b/tests/0016.out
new file mode 100644
index 0000000..b0bcef9
--- /dev/null
+++ b/tests/0016.out
@@ -0,0 +1,4 @@
+Source: foo
+
+Package: foo
+
diff --git a/tests/0011.sh b/tests/0016.sh
similarity index 67%
copy from tests/0011.sh
copy to tests/0016.sh
index 1fed9f1..d30d59e 100644
--- a/tests/0011.sh
+++ b/tests/0016.sh
@@ -5,4 +5,6 @@ set -e
 LC_ALL=C
 export LC_ALL
 
-$GREP_DCTRL ''
+$GREP_DCTRL -S foo
+
+
diff --git a/tests/0017.in b/tests/0017.in
new file mode 100644
index 0000000..2ad75fd
--- /dev/null
+++ b/tests/0017.in
@@ -0,0 +1,6 @@
+Package: FOO
+
+Package: Foo
+
+Package: foo
+
diff --git a/tests/0017.out b/tests/0017.out
new file mode 100644
index 0000000..36dbc61
--- /dev/null
+++ b/tests/0017.out
@@ -0,0 +1,2 @@
+Package: foo
+
diff --git a/tests/0011.sh b/tests/0017.sh
similarity index 67%
copy from tests/0011.sh
copy to tests/0017.sh
index 1fed9f1..c8463a5 100644
--- a/tests/0011.sh
+++ b/tests/0017.sh
@@ -5,4 +5,6 @@ set -e
 LC_ALL=C
 export LC_ALL
 
-$GREP_DCTRL ''
+$GREP_DCTRL -P foo
+
+
diff --git a/tests/0018.in b/tests/0018.in
new file mode 100644
index 0000000..2ad75fd
--- /dev/null
+++ b/tests/0018.in
@@ -0,0 +1,6 @@
+Package: FOO
+
+Package: Foo
+
+Package: foo
+
diff --git a/tests/0018.out b/tests/0018.out
new file mode 100644
index 0000000..2ad75fd
--- /dev/null
+++ b/tests/0018.out
@@ -0,0 +1,6 @@
+Package: FOO
+
+Package: Foo
+
+Package: foo
+
diff --git a/tests/0011.sh b/tests/0018.sh
similarity index 66%
copy from tests/0011.sh
copy to tests/0018.sh
index 1fed9f1..2639378 100644
--- a/tests/0011.sh
+++ b/tests/0018.sh
@@ -5,4 +5,6 @@ set -e
 LC_ALL=C
 export LC_ALL
 
-$GREP_DCTRL ''
+$GREP_DCTRL -Pi foo
+
+
diff --git a/tests/0019.in b/tests/0019.in
new file mode 100644
index 0000000..fc7c5de
--- /dev/null
+++ b/tests/0019.in
@@ -0,0 +1,6 @@
+Package: foo
+
+Package: foobar
+
+Package: barfoo
+
diff --git a/tests/0019.out b/tests/0019.out
new file mode 100644
index 0000000..36dbc61
--- /dev/null
+++ b/tests/0019.out
@@ -0,0 +1,2 @@
+Package: foo
+
diff --git a/tests/0011.sh b/tests/0019.sh
similarity index 66%
copy from tests/0011.sh
copy to tests/0019.sh
index 1fed9f1..8425938 100644
--- a/tests/0011.sh
+++ b/tests/0019.sh
@@ -5,4 +5,6 @@ set -e
 LC_ALL=C
 export LC_ALL
 
-$GREP_DCTRL ''
+$GREP_DCTRL -PX foo
+
+

-- 
Debian control file query tools



More information about the Dctrl-tools-devel mailing list